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

"Your key storage is out of sync" comes up each time element is opened #29164

Closed
blockisec opened this issue Feb 4, 2025 · 17 comments
Closed
Labels
A-E2EE 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 X-Needs-Info This issue is blocked awaiting information from the reporter

Comments

@blockisec
Copy link

Steps to reproduce

  1. updating element desktop to latest version
  2. open it and see popup with "your key storage is out of sync"
  3. click "Forgot ..." or "Enter recovery key"
  4. close element and open it again
  5. popup again

Outcome

What did you expect?

work as previous versions

What happened instead?

see above

Operating system

Debian

Application version

Element version: 1.11.91 Crypto version: Rust SDK 0.8.0 (21f7cc7), Vodozemac 0.8.1

How did you install the app?

Official Repo

Homeserver

No response

Will you send logs?

No

@dosubot dosubot bot added A-E2EE 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 Feb 4, 2025
@austinbutler

This comment has been minimized.

@t3chguy t3chguy closed this as completed Feb 5, 2025
@richvdh
Copy link
Member

richvdh commented Feb 5, 2025

what? no, it's a completely different issue to #29118. That was just that the "forgot recovery key" doesn't work.

@richvdh richvdh reopened this Feb 5, 2025
@richvdh
Copy link
Member

richvdh commented Feb 5, 2025

@blockisec to confirm: did you actually enter your recovery key? what happened next?

@richvdh richvdh changed the title Updating Element Desktop results in "Your key storage is out of sync" popups "Your key storage is out of sync" comes up each time element is opened Feb 5, 2025
@lieuwex
Copy link

lieuwex commented Feb 5, 2025

I have the same problem, when I enter my recovery I get a spinner and then the modal closes and nothing happens. The popup is still there.

In the console I get errors which seem related to #27808?
See the logs: develop.element.io-1738766925992.log

FWIW: My Synapse is a bit old, I am running 1.118.0rc1

@lieuwex
Copy link

lieuwex commented Feb 5, 2025

It seems that this is not specific to Element, with Fractal I get the following error too:

2025-02-05T15:14:38.433124Z ERROR fractal::components::crypto::recovery_setup_view::imp: Could not recover account: The public key of the imported private key doesn't match to the public key that was uploaded to the server

@blockisec
Copy link
Author

@richvdh I tried both options, popup is still there.

@richvdh
Copy link
Member

richvdh commented Feb 6, 2025

@blockisec please can you send debug logs from within the application?

@richvdh richvdh closed this as completed Feb 6, 2025
@richvdh richvdh reopened this Feb 6, 2025
@romuald
Copy link

romuald commented Feb 7, 2025

Can confirm this issue with multiple clients (macOS and Linux) on multiple accounts

Element was auto-updated this morning while trying to find a way to retrieve the Recovery Key, and now it was updated and I cannot access security settings anymore (edit: mixed up security settings and encryption tabs)

@richvdh
Copy link
Member

richvdh commented Feb 7, 2025

Again, if you're seeing this problem, please send debug logs from within the application. We can't do much to investigate it otherwise.

@tmssngr
Copy link

tmssngr commented Feb 7, 2025

What if I don't remember the recovery key (assuming the normal password still works when installing on a new machine)?

@richvdh
Copy link
Member

richvdh commented Feb 10, 2025

@tmssngr there is a "Forgot recovery key?" button, though in the currently-released version it doesn't actually work (#29118). Should be fixed in tomorrow's release.

@richvdh
Copy link
Member

richvdh commented Feb 10, 2025

Those of you who have sent debug logs: thank you. I might be misreading the logs, but as far as I can see, you haven't actually entered the recovery key?

To confirm my understanding of this issue, the symptoms are:

  1. Open Element
  2. Observe "your key storage is out of sync" toast
  3. Click "Enter recovery key"
  4. Enter the recovery key
  5. Click "Continue"
  6. Toast disappears
  7. Re-open Element
  8. Toast re-appears

If those are not your symptoms, please open a new issue.

If those are your symptoms, please send debug logs from within the application, referencing this issue, after doing the above steps.

@lieuwex
Copy link

lieuwex commented Feb 10, 2025

@richvdh I just submitted a debug log from within Element after doing the following steps with the exception that step 6 never occurs, the toast always stays open. I restarted Element regardless.

@richvdh
Copy link
Member

richvdh commented Feb 10, 2025

@lieuwex thanks. It looks like there is indeed a problem with the keys in secret storage for your account:

2025-02-10T19:31:57.263Z E SecurityManager: accessSecretStorage: error during operation The public key of the imported private key doesn't match to the public key that was uploaded to the server

Improving the user experience is tracked at #29229. In the meantime, I suggest you wait for tomorrow's EW release, and then "Reset cryptographic identity".

@tmssngr
Copy link

tmssngr commented Feb 11, 2025

@tmssngr there is a "Forgot recovery key?" button, though in the currently-released version it doesn't actually work (#29118). Should be fixed in tomorrow's release.

What exactly is this button expected to do?

Generally, what is a recovery key? I'm using Element since 5 (?) years, in the last 2 years only occasionally, and can't remember a recovery key - just account and password and the confirmation with another already logged-in device.

@richvdh
Copy link
Member

richvdh commented Feb 11, 2025

@tmssngr this is off-topic here. I recommend waiting for today's release and seeing if the UI makes sense to you. If not, you can seek support in the #element-web:matrix.org room.

@richvdh richvdh added the X-Needs-Info This issue is blocked awaiting information from the reporter label Feb 11, 2025
@richvdh
Copy link
Member

richvdh commented Feb 14, 2025

I'm closing this due to lack of info on how to reproduce it.

@richvdh richvdh closed this as completed Feb 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-E2EE 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 X-Needs-Info This issue is blocked awaiting information from the reporter
Projects
None yet
Development

No branches or pull requests

7 participants