Skip to content

Failed to recover all keys #27046

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

Closed
Hywan opened this issue Feb 21, 2024 · 2 comments
Closed

Failed to recover all keys #27046

Hywan opened this issue Feb 21, 2024 · 2 comments
Labels
A-Element-R Issues affecting the port of Element's crypto layer to Rust 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 Z-Labs

Comments

@Hywan
Copy link
Member

Hywan commented Feb 21, 2024

Steps to reproduce

When trying to recover my keys, it stops at 18'600 or so, so a thousand are missing.

Outcome

What did you expect?

To recover all my keys.

What happened instead?

A thousand keys are missing

Operating system

macOS

Browser information

Firefox nightly

URL for webapp

develop.element.io

Application version

Version de Element : 3ac0966-react-6e73d6579e32-js-b4744392563b Version crypto : Rust SDK 0.7.0 (fac36bc), Vodozemac 0.5.1

Homeserver

matrix.org

Will you send logs?

Yes

@Hywan Hywan added the T-Defect label Feb 21, 2024
@florianduros florianduros added the A-Element-R Issues affecting the port of Element's crypto layer to Rust label Feb 23, 2024
@florianduros florianduros added S-Major Severely degrades major functionality or product features, with no satisfactory workaround O-Uncommon Most users are unlikely to come across this or unexpected workflow and removed Z-Labs labels Feb 23, 2024
@richvdh
Copy link
Member

richvdh commented Feb 26, 2024

The rageshake contains errors such as:

2024-02-21T10:24:58.758Z D Failed to decrypt megolm session from backup Failed decrypting, invalid padding: Unpad Error
./matrix-js-sdk/node_modules/@matrix-org/matrix-sdk-crypto-wasm/pkg/matrix_sdk_crypto_wasm.js/module.exports.__wbindgen_error_new@https://develop.element.io/bundles/8ff6d5baeaa50709ee4e/9568.js:8532:17
backupdecryptionkey_decryptV1@https://develop.element.io/bundles/8ff6d5baeaa50709ee4e/9568.js line 9686 > WebAssembly.instantiate:wasm-function[887]:0x177a23
decryptV1@https://develop.element.io/bundles/8ff6d5baeaa50709ee4e/9568.js:914:18
decryptSessions@https://develop.element.io/bundles/8ff6d5baeaa50709ee4e/8644.js:2144:57
handleChunkCallback@https://develop.element.io/bundles/8ff6d5baeaa50709ee4e/bundle.js:109049:57
handleDecryptionOfAFullBackup@https://develop.element.io/bundles/8ff6d5baeaa50709ee4e/bundle.js:109067:17
 {"first_message_index":0,"forwarded_count":0,"is_verified":false,"session_data":{"ephemeral":"f3IgWr06v1QYw8uoSRNst57XAD6PPAuqTLTPus210ls","ciphertext":"fBQlODpLMizI7eu+yd0DgPpxgrhrlZoplqe0sTNKr4r4kxVhRvgERkTt7x5yAjoaUl10qG8Wh3kKc6GHlseKEk3OLx2L+ekGwfGBG7ztPJUxX2WWDgL64FbbXYmoZSbzpLQEj9DmK3fHUSAbpAkQn3uyZCtGVKwIm5W7tZiNi0F8oyYenm8TlpYKlMyWNdM6/cOGpaNG7HQKP4HtEidYVuXVYtoqQXKgqagR8sm1ZcZXDZlLrWpXh3ks+5fjKCdXraHQ55nRsLR7zG1wdWl2SkbZnwCugCR6AW/Dga+pdjR1EHgtxzJB4aZg26VqziB44wW2C0WAJ3OOwwO9/HZ7xGecUU2x9cgB+znT219IL4KuEgR9mpBH5xS5N2JHS3gFmur9cgYbqFtuAXnRz2pBY2daGU/+pi5oOQ20LwyT3B12e5Dvd4uGWbDRPxPnQoodbiAUReQLFKT8owpJM8gbHjnlPvg5jVYw5+e8rW0VhSNCTsH0mckAW7/vcoUk3s1zlll8TBc1MUA8oFKXvag9Fzzpf7GISpvb3uQyFUgWLEdGmNMZ/G/fFlLJNgg62hTp2m7Hj0b63PACtLi4q2t00RkubZBpkFXMpmGlw08oKMo","mac":"w5ivQQDCCdo"}}

We should figure out what an UnpadError is, and what could cause it.

@kegsay
Copy link
Contributor

kegsay commented May 15, 2024

This was most likely the backup bug in EX.

@kegsay kegsay closed this as completed May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Element-R Issues affecting the port of Element's crypto layer to Rust 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 Z-Labs
Projects
None yet
Development

No branches or pull requests

4 participants