element-web icon indicating copy to clipboard operation
element-web copied to clipboard

Failed to recover all keys

Open Hywan opened this issue 1 year ago • 1 comments

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 : 3ac096619b38-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 avatar Feb 21 '24 11:02 Hywan

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.

richvdh avatar Feb 26 '24 14:02 richvdh

This was most likely the backup bug in EX.

kegsay avatar May 15 '24 09:05 kegsay