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

Element-R: migration to rust failed with "Unable to load session" error #27423

Closed
richvdh opened this issue May 2, 2024 · 3 comments
Closed
Labels
A-Element-R Issues affecting the port of Element's crypto layer to Rust S-Critical Prevents work, causes data loss and/or has no workaround T-Defect Z-Element-R-Blocker A blocker for enabling Element R by default

Comments

@richvdh
Copy link
Member

richvdh commented May 2, 2024

From the logs:

2024-04-26T07:38:33.368Z I Migrating data from legacy crypto store. 3033 olm sessions and 30760 megolm sessions to migrate.
2024-04-26T07:38:33.371Z I Migrating data from legacy crypto store. Step 1: base data
2024-04-26T07:38:33.385Z D FetchHttpApi: --> GET https://matrix.org/_matrix/client/v3/room_keys/version
2024-04-26T07:38:33.608Z D FetchHttpApi: <-- GET https://matrix.org/_matrix/client/v3/room_keys/version [223ms 200]
2024-04-26T07:38:33.618Z E Unable to load session The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type undefined
TypeError: The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type undefined
    at c (vector://vector/webapp/bundles/ad882b5866028f8f562c/bundle.js:2:3206555)
    at l.from (vector://vector/webapp/bundles/ad882b5866028f8f562c/bundle.js:2:3212961)
    at a (vector://vector/webapp/bundles/ad882b5866028f8f562c/bundle.js:2:471696)
    at a (vector://vector/webapp/bundles/ad882b5866028f8f562c/bundle.js:2:612401)
    at async kA (vector://vector/webapp/bundles/ad882b5866028f8f562c/5484.js:1:8044606)
    at async vector://vector/webapp/bundles/ad882b5866028f8f562c/5484.js:1:8042627
    at async MA (vector://vector/webapp/bundles/ad882b5866028f8f562c/5484.js:1:8041586)
    at async Module.yA (vector://vector/webapp/bundles/ad882b5866028f8f562c/5484.js:1:8045905)
    at async De.initRustCrypto (vector://vector/webapp/bundles/ad882b5866028f8f562c/bundle.js:2:507070)
    at async Object.initClientCrypto (vector://vector/webapp/bundles/ad882b5866028f8f562c/bundle.js:2:1623288)
@richvdh richvdh added A-Element-R Issues affecting the port of Element's crypto layer to Rust Z-Element-R-Blocker A blocker for enabling Element R by default labels May 2, 2024
@dosubot dosubot bot added S-Critical Prevents work, causes data loss and/or has no workaround T-Defect labels May 2, 2024
@kegsay
Copy link
Contributor

kegsay commented May 3, 2024

@BillCarsonFr says this is fixed by matrix-org/matrix-js-sdk#4168

@t3chguy
Copy link
Member

t3chguy commented May 3, 2024

matrix-org/matrix-js-sdk@65d858f was not included in the release the above logs are from. Closing as presumed fixed in next release.

@t3chguy t3chguy closed this as not planned Won't fix, can't repro, duplicate, stale May 3, 2024
@richvdh
Copy link
Member Author

richvdh commented May 3, 2024

oh, so this is a duplicate of element-hq/element-desktop#1603

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 S-Critical Prevents work, causes data loss and/or has no workaround T-Defect Z-Element-R-Blocker A blocker for enabling Element R by default
Projects
None yet
Development

No branches or pull requests

3 participants