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

Using --profile triggers an "Unable to restore session" error #1538

Open
luilegeant opened this issue Feb 23, 2024 · 1 comment
Open

Using --profile triggers an "Unable to restore session" error #1538

luilegeant opened this issue Feb 23, 2024 · 1 comment
Labels

Comments

@luilegeant
Copy link

luilegeant commented Feb 23, 2024

Steps to reproduce

  1. Opening element desktop on ubuntu 22.04 with the terminal with --profile parameters:
element-secondary-profile(){
  element-desktop --profile myprofile2 1>&- 2>&- &
  disown
}
  1. the app starts, then load and reaches a state it can't recover from
Unable to restore session
We encountered an error trying to restore your previous session.

If you have previously used a more recent version of Element, your session may be incompatible with this version. Close this window and return to the more recent version.

Clearing your browser's storage may fix the problem, but will sign you out and cause any encrypted chat history to become unreadable.
Button1: Clear Storage & Sign Out
Button2: Send logs
  1. Press "clear storage and sign out"
  2. Restart the application (using the same secondary profile parameter), re-log, re-trust device
  3. Close the application
  4. Back to step 1

Outcome

What did you expect?

  • Not have this issue as it worked in the past
  • After doing the full flow: logging in & trusting the device the next start up of the application should not present the same issue.

What happened instead?

  • All previous message are in state: "unable to decrypt"
  • Closing the application (either after a full re-login+trusting flow or just closing on error) brings back to the same error message "Unable to restore session"

Operating system

Ubuntu 22.04 (fully updated a couple of hours prior to this)

Application version

Element version: 1.11.58
Crypto version: Rust SDK 0.7.0 (691ec63), Vodozemac 0.5.0

How did you install the app?

https://element.io/download#linux

Homeserver

Synapse 1.98.0

Will you send logs?

Yes

@lapete
Copy link

lapete commented Mar 1, 2024

Getting the same non-recoverable state when starting Element while not being connected to the internet.

When I connect to the internet in that state, I can see behind the warning and in the system tray that new messages are loaded, but I can't close the error popup which is annoying.

It works when I restart the app while being connected to the internet.

Kernel: 6.7.4-arch1-1 
DE: Plasma 5.27.10
Element version: 1.11.57
Crypto version: Olm 3.2.15

Also sent logs referring to this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants