Skip to content

Key storage out of sync persistent toast silent failing #30964

@MarcWadai

Description

@MarcWadai

Steps to reproduce

  1. Where are you starting? What can you see?

I have read the parent issue #30444
A user in Tchap reported to have a persistent toast "key storage out of sync" and was persistent even after going through the process.
From the rageshake, we have those info :

cross_signing_master_privkey_cached: "true"
cross_signing_privkey_in_secret_storage: "true"
cross_signing_ready: "true"
cross_signing_self_signing_privkey_cached: "true"
cross_signing_user_signing_privkey_cached: "true" 
secret_storage_key_in_account: "true"
secret_storage_ready: "false"
session_backup_key_cached: "false"
session_backup_key_in_secret_storage: "true"
session_backup_key_well_formed: "false"
storageManager_persisted: "true"

I can see in the log that it is silently failing because of "Not saving backup key to secret storage: no backup key"
Image

Outcome

What did you expect?

I expected the function saveBackupKeyToStorage() called by bootstrapSecretStorage() to throw an error so that it can be catch on the upper level SetupEncryptioToast, and display an error or other setps to follow accordingly

What happened instead?

Nothing happen, the method saveBackupKeyToStorage only return without throwing

Operating system

windows 10

Browser information

Firefox 128.0

URL for webapp

No response

Application version

Element 1.11.100 , Rust SDK 0.13.0 (f64839e), Vodozemac 0.9.0

Homeserver

No response

Will you send logs?

No

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-E2EEA-E2EE-Key-BackupO-UncommonMost users are unlikely to come across this or unexpected workflowS-MinorImpairs non-critical functionality or suitable workarounds existT-DefectTeam: Crypto

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions