-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Unable to restore session" on upgrade to element-web built on matrix-sdk-crypto-wasm 3.6.0 #26837
Comments
I had the issue yesterday too. I can share a RS if needed. |
Yes please @florianduros , and could you also manually inspect your indexeddb? In the indexeddb table which should never happen (it should always be either |
The RS (in zip to make github accep it) rageshake.tar.zip @andybalaam I don't see any |
I'm getting a lot of
|
From Florian's rageshake:
So my first guess is that Florian is not seeing the problem I saw. Instead, he successfully upgraded to version 8 of |
@florianduros please can you confirm that you have an 8 here?: |
If I'm right about what happened to @florianduros , it will be still broken for him. Meanwhile, it was unbroken for me by the revert we merged. |
@andybalaam no, I have a 7. |
And is it unbroken now @florianduros ? (Because we reverted the change, so it should not attempt an upgrade to v8) |
@andybalaam When it happened, I clicked on |
Ah, then I think my original theory is right: you upgraded to version 8, and that went wrong when we reverted the code making it expect version 7. When you cleared storage, the code recreated it at version 7. |
I got the same issue, but weirdly enough not yesterday but today. |
From @lieuwex 's rageshake:
Again, this is caused by the revert, not the original problem. |
After looking through my local Firefox console logs, I discovered a snippet of code I ran (and forgot!) that modified my indexeddb, setting That was the cause of this problem, and I am sorry for the noise. I opened matrix-org/matrix-js-sdk#4001 to re-apply the upgrade, which should fix the problem found by @florianduros and @lieuwex when it is merged. |
When @andybalaam upgraded to a version of element-web which included matrix-org/matrix-js-sdk#3989, he got the following:
We rolled back the update (matrix-org/matrix-js-sdk#3991) which solved the problem.
The logs include lines like:
Closer inspection reveals that his indexeddb includes rows in
inbound_group_sessions2
withneeds_backup: false
. This should never happen:needs_backup
should be either1
or absent. (If it were false, then (a) it should be serialized as 0 (b) it should be omitted altogether anyway, due toserialize_bool_for_indexeddb
andskip_serializing_if = "std::ops::Not::not"
respectively).So the question is: how did these rows end up like this, and does it affect anyone except @andybalaam?
The text was updated successfully, but these errors were encountered: