element-hq / element-web

A glossy Matrix collaboration client for the web.
https://element.io
GNU Affero General Public License v3.0
11.23k stars 2k forks source link

"Unable to initialise e2e" makes app die on load #13197

Open benparsons opened 4 years ago

benparsons commented 4 years ago

Description

In the console on startup:

Error performing indexeddb txn
{
  "isTrusted": true
}
...
Unable to initialise e2e DOMException: "The operation failed for reasons unrelated to the database itself and not covered by any other error code."
Got reply from saved sync, exists? false

Nothing else interesting in the console until it tries to join an encrypted room:

Error: "End-to-end encryption disabled"

Steps to reproduce

Load riot.im/app

Version information

Firefox on Mac, /app and /develop

(can't get the version)

jryans commented 4 years ago

@benparsons What version of Firefox? Could you try sending a rageshake from the browser console with mxSendRageshake("https://github.com/vector-im/riot-web/issues/13197")?

benparsons commented 4 years ago

@jryans I'm unable to - when I try in either the UI or the console I get Error: "End-to-end encryption disabled"

Is there a way to extract the report that would have been sent?

benparsons commented 4 years ago

Firefox version 74.0.1, but I'll test with a newer version now

benparsons commented 4 years ago

Same results with 75.0

t3chguy commented 4 years ago

/develop should have a fix for sending rageshakes with e2ee failing, is that error above from /app?

jryans commented 4 years ago

Suggested in Matrix that @benparsons trying clearing IDB, seems corrupted in some new way.

jryans commented 4 years ago

@benparsons was able to get past this by clearing storage and logging in again, so he's able to get moving again.

We could try to make Riot more resilient against such storage failures, so tracking a lower-priority storage improvement.