Skip to content
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

"Missing session data" (and a login screen) due to indexeddb errors #1709

Closed
gerhardbeck opened this issue Mar 6, 2022 · 17 comments
Closed
Labels
A-E2EE A-Logout Logout, sign out, etc. A-Storage Storage layer of the app, including IndexedDB, local storage, etc. O-Uncommon Most users are unlikely to come across this or unexpected workflow S-Major Severely degrades major functionality or product features, with no satisfactory workaround T-Defect

Comments

@gerhardbeck
Copy link

Steps to reproduce

Element logs me automatically out

Outcome

What did you expect?

What happened instead?

Operating system

Ubuntu 21.04 LTS

Application version

Element

How did you install the app?

Flatpack

Homeserver

synod.im

Will you send logs?

Yes

@gerhardbeck
Copy link
Author

Wanted to send logs, but: unable to connect to database

@germain-gg
Copy link
Contributor

This looks like a duplicate of element-hq/element-web#21098 but would need some more information to say for sure.

@germain-gg germain-gg added A-Soft-Logout https://github.com/element-hq/element-web/issues/10224 O-Uncommon Most users are unlikely to come across this or unexpected workflow S-Major Severely degrades major functionality or product features, with no satisfactory workaround labels Mar 7, 2022
@t3chguy
Copy link
Member

t3chguy commented Mar 8, 2022

@gsouquet doubt that IDB would be missing in the Element Flatpak, seems like an install/packaging fail. Logs would be very helpful here, you can open the console using Ctrl + Shift + I

@gerhardbeck
Copy link
Author

@gsouquet Which information do you need? Just doublechecked: It's a flatpak installation, Version 1.10.4
@t3chguy What information of the console are you going to need?

@t3chguy
Copy link
Member

t3chguy commented Mar 8, 2022

Anything in the console that may be relevant to why you're being logged out, the logs you're unable to send (unable to connect to database) would have contained the console for your last few sessions.

@gerhardbeck
Copy link
Author

gerhardbeck commented Mar 8, 2022 via email

@gerhardbeck

This comment was marked as off-topic.

@gerhardbeck
Copy link
Author

and after a closing and a start:
image

console errors:
image

and concerning the logs:
image

@germain-gg
Copy link
Contributor

germain-gg commented Mar 14, 2022

For searchability, this seems to be another case of IndexedDB failing with the error message, no connected database

@erikjohnston
Copy link
Member

rageshake.ts:72 Failed to prepare to encrypt events for !SGNQGPGUwtcPBUotTL:matrix.org DOMException: Failed to execute 'transaction' on 'IDBDatabase': The database connection is closing.
    at Backend.filterOutNotifiedErrorDevices (https://develop.element.io/bundles/c9eb09f5297decfb9c0f/init.js:202997:25)
    at IndexedDBCryptoStore.filterOutNotifiedErrorDevices (https://develop.element.io/bundles/c9eb09f5297decfb9c0f/init.js:45414:25)
    at OlmDevice.filterOutNotifiedErrorDevices (https://develop.element.io/bundles/c9eb09f5297decfb9c0f/init.js:130972:35)
    at MegolmEncryption.notifyFailedOlmDevices (https://develop.element.io/bundles/c9eb09f5297decfb9c0f/init.js:132239:58)
    at https://develop.element.io/bundles/c9eb09f5297decfb9c0f/init.js:131810:22
    at async Promise.all (index 1)
    at async prepareSession (https://develop.element.io/bundles/c9eb09f5297decfb9c0f/init.js:131749:7)
consoleObj.<computed> @ rageshake.ts:72
rageshake.ts:81

This just happened to me on develop.element.io. My account stopped updating and had that in the logs (I couldn't rageshake due to it either). When I refreshed it logged me in as a guest, which was confusing.

@germain-gg germain-gg added A-E2EE A-Storage Storage layer of the app, including IndexedDB, local storage, etc. labels Mar 29, 2022
@klardotsh
Copy link

klardotsh commented Apr 1, 2022

This (or some flavor of this) has been happening to me for at least a month across both app.element.io in Firefox and the standalone Electron app (no Flatpak - Void Linux's native package). I can usually stay logged in for 4-6 hours at a time and then will inevitably miss notifications because I'm automatically logged out for reasons unknown, but only insofar as needing a password to log back in (don't have to reselect homeserv/user). To say this is irritating would be the understatement of the month; I'd love to provide whatever logs I can to help next time I see this (sadly I just logged myself back in on app.element.io so don't have said logs handy right now, I don't think?)

@erikjohnston
Copy link
Member

Just happened again with me. This is particularly annoying as it forgets all your preferences.

@k79e
Copy link

k79e commented Aug 15, 2022

Happened to me just now.
And my settings are lost too like element-hq/element-web#21843.

@t3chguy
Copy link
Member

t3chguy commented Nov 16, 2022

image

Soft logout looks like this

@t3chguy t3chguy removed the A-Soft-Logout https://github.com/element-hq/element-web/issues/10224 label Nov 16, 2022
@richvdh richvdh changed the title logging me automatically out "Missing session data" (and a login screen) due to indexeddb errors Jan 12, 2023
@subscribernamegoeshere

This comment was marked as off-topic.

@richvdh
Copy link
Member

richvdh commented Oct 4, 2023

Sadness:

image

@richvdh richvdh transferred this issue from element-hq/element-web Jun 6, 2024
@richvdh
Copy link
Member

richvdh commented Jun 6, 2024

Duplicate of #1707

@richvdh richvdh marked this as a duplicate of #1707 Jun 6, 2024
@richvdh richvdh closed this as completed Jun 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-E2EE A-Logout Logout, sign out, etc. A-Storage Storage layer of the app, including IndexedDB, local storage, etc. O-Uncommon Most users are unlikely to come across this or unexpected workflow S-Major Severely degrades major functionality or product features, with no satisfactory workaround T-Defect
Projects
None yet
Development

No branches or pull requests

9 participants