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

Unable to restore session due to missing session data #1568

Open
johannes-krude opened this issue Mar 12, 2024 · 4 comments
Open

Unable to restore session due to missing session data #1568

johannes-krude opened this issue Mar 12, 2024 · 4 comments
Labels
A-E2EE-Key-Backup O-Occasional Affects or can be seen by some users regularly or most users rarely S-Critical Prevents work, causes data loss and/or has no workaround T-Defect

Comments

@johannes-krude
Copy link

johannes-krude commented Mar 12, 2024

Steps to reproduce

  1. Login into Element Desktop
  2. Close Element Desktop
  3. Start Element Desktop
  4. "Unable to restore session" appears
  5. Click "Clear Storage and Sign out"
  6. Signing in waits forever, but never succeeds
  7. rm -r .config/Element to get Element Desktop into a usable state
  8. Now, login into Element Desktop succeds

Additionally, Element Desktop fails to recover encryption keys from server key backup, but successfully imports encryption keys from a file which are saved in element-web from firefox.

Operating system

Ubuntu 22.04.4 LTS

Application version

1.11.59

How did you install the app?

deb https://packages.element.io/debian/ default main

Homeserver

comsys.rwth-aachen.de

Will you send logs?

Yes

@t3chguy t3chguy transferred this issue from element-hq/element-web Mar 13, 2024
@MidhunSureshR MidhunSureshR added O-Occasional Affects or can be seen by some users regularly or most users rarely S-Critical Prevents work, causes data loss and/or has no workaround A-E2EE-Key-Backup labels Apr 1, 2024
@johannes-krude
Copy link
Author

With 1.11.63, element-desktop now shows a different error message on startup:

Missing session data
Some session data, including encrypted message keys, is missing. Sign out and sign in to fix this, restoring keys from backup.

Your browser likely removed this data when running low on disk space. To help us prevent this in future, please send us logs.

@ahangarha
Copy link

I built element desktop from source and I face the same issue.

When I run element-desktop in terminal, I get the following result:

Keytar isn't installed; secure key storage is disabled.
Seshat isn't installed, event indexing is disabled.
/home/USERNAME/.config/Element exists: yes
/home/USERNAME/.config/Riot exists: no
Starting auto update with base URL: https://packages.element.io/desktop/update/
Auto update not supported on this platform
Fetching translation json for locale: en_EN
Changing application language to en
Fetching translation json for locale: en
Resetting the UI components after locale change
Resetting the UI components after locale change
Changing application language to en
Fetching translation json for locale: en
Resetting the UI components after locale change
[32056:0613/173459.253777:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 1 times!

I get this error after I removed ~/.config/Element, and restarting Element after once successful login.

The first two lines seems to be related to the issue:

Keytar isn't installed; secure key storage is disabled.
Seshat isn't installed, event indexing is disabled.

@t3chguy
Copy link
Member

t3chguy commented Jun 13, 2024

@ahangarha your issue is different then. You should follow the instructions to install the native modules. https://github.com/element-hq/element-desktop/blob/develop/docs/native-node-modules.md

@richvdh richvdh changed the title Unable to restore session on every startup Unable to restore session due to missing session data Aug 6, 2024
@richvdh
Copy link
Member

richvdh commented Aug 6, 2024

Logs contain:

2024-04-10T09:15:04.921Z E StorageManager: Data exists in local storage and crypto is marked as initialised  but no data found in crypto store. IndexedDB storage has likely been evicted by the browser!
2024-04-10T09:15:04.921Z E StorageManager: Storage consistency checks failed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-E2EE-Key-Backup O-Occasional Affects or can be seen by some users regularly or most users rarely S-Critical Prevents work, causes data loss and/or has no workaround T-Defect
Projects
None yet
Development

No branches or pull requests

5 participants