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

Unable to query secret storage status #1863

Open
spirillen opened this issue Sep 4, 2024 · 3 comments
Open

Unable to query secret storage status #1863

spirillen opened this issue Sep 4, 2024 · 3 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

Comments

@spirillen
Copy link

Steps to reproduce

  1. Reset everything (reset lost key)

image
image

Outcome

What did you expect?

What happened instead?

image
image

Operating system

Ubuntu 24.04.1 LTS

Application version

Element version: 1.11.76 Crypto version: Rust SDK 0.7.1 (c8c9d15), Vodozemac 0.6.0

How did you install the app?

repo

Homeserver

private.coffee (Cloudflare free and ee2e conntion

Will you send logs?

No

@dosubot dosubot bot added 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 Sep 4, 2024
@MidhunSureshR MidhunSureshR added the A-Element-R Issues affecting the port of Element's crypto layer to Rust label Sep 18, 2024
@MidhunSureshR
Copy link
Member

Can you please try with the latest release? If you still see this issue, can you paste any errors you see in the console (Ctrl+Shift+I -> Console)?

@spirillen
Copy link
Author

@MidhunSureshR That might only be on a virtual machine later, as of now it is working, and I don't wanna risk anything as for now.

Will be back later with my results

@spirillen
Copy link
Author

image

Log

Markdown.ts:395 Uncaught (in promise) ReferenceError: Cannot access 'U' before initialization
at Object.J (Markdown.ts:395:5)
at _.start (ReadyWatchingStore.ts:38:30)
at get instance (WidgetLayoutStore.ts:71:35)
at ./node_modules/matrix-react-sdk/src/stores/widgets/WidgetLayoutStore.ts (WidgetLayoutStore.ts:526:48)
at u (bootstrap:19:32)
at ./node_modules/matrix-react-sdk/src/utils/WidgetUtils.ts (Whenable.ts:86:5)
at u (bootstrap:19:32)
at ./node_modules/matrix-react-sdk/src/stores/ActiveWidgetStore.ts (shouldHideEvent.ts:83:1)
at u (bootstrap:19:32)
at ./node_modules/matrix-react-sdk/src/stores/WidgetStore.ts (WidgetEchoStore.ts:118:1)
Markdown.ts:395 Uncaught (in promise) ReferenceError: Cannot access 'U' before initialization
at Object.J (Markdown.ts:395:5)
at l.start (ReadyWatchingStore.ts:38:30)
at d.start (AsyncStoreWithClient.ts:48:31)
at WidgetMessagingStore.ts:38:18
at ./node_modules/matrix-react-sdk/src/stores/widgets/WidgetMessagingStore.ts (WidgetMessagingStore.ts:36:48)
at u (bootstrap:19:32)
at ./node_modules/matrix-react-sdk/src/stores/ActiveWidgetStore.ts (shouldHideEvent.ts:83:1)
at u (bootstrap:19:32)
at ./node_modules/matrix-react-sdk/src/stores/WidgetStore.ts (WidgetEchoStore.ts:118:1)
at u (bootstrap:19:32)
Markdown.ts:395 Uncaught (in promise) ReferenceError: Cannot access 'U' before initialization
at Object.J (Markdown.ts:395:5)
at l.start (ReadyWatchingStore.ts:38:30)
at p.start (AsyncStoreWithClient.ts:48:31)
at WidgetStore.ts:56:18
at ./node_modules/matrix-react-sdk/src/stores/WidgetStore.ts (WidgetStore.ts:54:48)
at u (bootstrap:19:32)
at ./node_modules/matrix-react-sdk/src/modules/ModuleRunner.ts (ModuleUiDialog.tsx:86:5)
at u (bootstrap:19:32)
at ./node_modules/matrix-react-sdk/src/SecurityManager.ts (AccessSecretStorageDialog.tsx:454:5)
at u (bootstrap:19:32)
matrix-client.matrix.org/_matrix/client/unstable/org.matrix.msc2965/auth_issuer:1

   Failed to load resource: the server responded with a status of 404 ()

rageshake.ts:77 Warning! Not using an encryption key for rust crypto store.
e. @ rageshake.ts:77
Show 1 more frame
Show less
matrix-client.matrix.org/_matrix/client/v3/room_keys/version:1

   Failed to load resource: the server responded with a status of 403 ()

matrix-client.matrix.org/_matrix/client/v3/room_keys/version:1

   Failed to load resource: the server responded with a status of 403 ()

rageshake.ts:77 Error during DeviceListener.recheck M_GUEST_ACCESS_FORBIDDEN: MatrixError: [403] Guest access not allowed (https://matrix-client.matrix.org/_matrix/client/v3/room_keys/version)
at p (vector://vector/webapp/bundles/c87c7a86acf04049be8f/119.js:2:457718)
at O.requestOtherUrl (vector://vector/webapp/bundles/c87c7a86acf04049be8f/119.js:2:462355)
at async O.authedRequest (vector://vector/webapp/bundles/c87c7a86acf04049be8f/119.js:2:460181)
at async Te.getKeyBackupVersion (vector://vector/webapp/bundles/c87c7a86acf04049be8f/119.js:2:129194)
at async de.getKeyBackupInfo (vector://vector/webapp/bundles/c87c7a86acf04049be8f/1546.js:2:29736)
at async de.reportCryptoSessionStateToAnalytics (vector://vector/webapp/bundles/c87c7a86acf04049be8f/1546.js:2:32274)
at async de.doRecheck (vector://vector/webapp/bundles/c87c7a86acf04049be8f/1546.js:2:30414)
e. @ rageshake.ts:77
Show 1 more frame
Show less
matrix-client.matrix.org/_matrix/client/v3/room_keys/version:1

   Failed to load resource: the server responded with a status of 403 ()

rageshake.ts:77 Error during DeviceListener.recheck M_GUEST_ACCESS_FORBIDDEN: MatrixError: [403] Guest access not allowed (https://matrix-client.matrix.org/_matrix/client/v3/room_keys/version)
at p (vector://vector/webapp/bundles/c87c7a86acf04049be8f/119.js:2:457718)
at O.requestOtherUrl (vector://vector/webapp/bundles/c87c7a86acf04049be8f/119.js:2:462355)
at async O.authedRequest (vector://vector/webapp/bundles/c87c7a86acf04049be8f/119.js:2:460181)
at async Te.getKeyBackupVersion (vector://vector/webapp/bundles/c87c7a86acf04049be8f/119.js:2:129194)
at async de.getKeyBackupInfo (vector://vector/webapp/bundles/c87c7a86acf04049be8f/1546.js:2:29736)
at async de.reportCryptoSessionStateToAnalytics (vector://vector/webapp/bundles/c87c7a86acf04049be8f/1546.js:2:32274)
at async de.doRecheck (vector://vector/webapp/bundles/c87c7a86acf04049be8f/1546.js:2:30414)
e. @ rageshake.ts:77
Show 1 more frame
Show less
matrix-client.matrix.org/_matrix/client/unstable/org.matrix.msc2965/auth_issuer:1

   Failed to load resource: the server responded with a status of 404 ()

webapp/#/login:1 Access to fetch at 'https://hydrogen.private.coffee/.well-known/matrix/client' from origin 'vector://vector' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
hydrogen.private.coffee/.well-known/matrix/client:1

   Failed to load resource: net::ERR_FAILED

rageshake.ts:77 No response or error when parsing .well-known
e. @ rageshake.ts:77
Show 1 more frame
Show less
rageshake.ts:77 Failed to fetch
e. @ rageshake.ts:77
Show 1 more frame
Show less
rageshake.ts:77 Error processing homeserver config: Object
e. @ rageshake.ts:77
Show 1 more frame
Show less
rageshake.ts:77 Attempted hydrogen.private.coffee as a server_name but it failed Error: Failed to get autodiscovery configuration from server
at m.buildValidatedConfigFromDiscovery (AutoDiscoveryUtils.tsx:272:27)
at Yx.deriveData (ServerPickerDialog.tsx:91:67)
at async Yx.validate (Validation.tsx:164:15)
at async _.validate (Field.tsx:211:24)Caused by: Invalid homeserver discovery response
e. @ rageshake.ts:77
Show 1 more frame
Show less
webapp/#/login:1 Access to fetch at 'https://hydrogen.private.coffee/_matrix/client/versions' from origin 'vector://vector' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
hydrogen.private.coffee/_matrix/client/versions:1

   Failed to load resource: net::ERR_FAILED

rageshake.ts:77 Invalid /versions response
e. @ rageshake.ts:77
Show 1 more frame
Show less
rageshake.ts:77 Error processing homeserver config: Object
e. @ rageshake.ts:77
Show 1 more frame
Show less
rageshake.ts:77 Error: Homeserver URL does not appear to be a valid Matrix homeserver
at m.buildValidatedConfigFromDiscovery (AutoDiscoveryUtils.tsx:272:27)
at m.validateServerConfigWithStaticUrls (AutoDiscoveryUtils.tsx:200:35)
at async Yx.deriveData (ServerPickerDialog.tsx:108:22)
at async Yx.validate (Validation.tsx:164:15)
at async _.validate (Field.tsx:211:24)Caused by: Homeserver URL does not appear to be a valid Matrix homeserver
e. @ rageshake.ts:77
Show 1 more frame
Show less
webapp/#/login:1 Access to fetch at 'https://hydrogen.private.coffee/.well-known/matrix/client' from origin 'vector://vector' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
hydrogen.private.coffee/.well-known/matrix/client:1

   Failed to load resource: net::ERR_FAILED

rageshake.ts:77 No response or error when parsing .well-known
e. @ rageshake.ts:77
Show 1 more frame
Show less
rageshake.ts:77 Failed to fetch
e. @ rageshake.ts:77
Show 1 more frame
Show less
rageshake.ts:77 Error processing homeserver config: Object
e. @ rageshake.ts:77
Show 1 more frame
Show less
rageshake.ts:77 Attempted hydrogen.private.coffee as a server_name but it failed Error: Failed to get autodiscovery configuration from server
at m.buildValidatedConfigFromDiscovery (AutoDiscoveryUtils.tsx:272:27)
at Yx.deriveData (ServerPickerDialog.tsx:91:67)
at async Yx.validate (Validation.tsx:164:15)
at async _.validate (Field.tsx:211:24)
at async ServerPickerDialog.tsx:167:9Caused by: Invalid homeserver discovery response
e. @ rageshake.ts:77
Show 1 more frame
Show less
webapp/#/login:1 Access to fetch at 'https://hydrogen.private.coffee/_matrix/client/versions' from origin 'vector://vector' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
hydrogen.private.coffee/_matrix/client/versions:1

   Failed to load resource: net::ERR_FAILED

rageshake.ts:77 Invalid /versions response
e. @ rageshake.ts:77
Show 1 more frame
Show less
rageshake.ts:77 Error processing homeserver config: Object
e. @ rageshake.ts:77
Show 1 more frame
Show less
rageshake.ts:77 Error: Homeserver URL does not appear to be a valid Matrix homeserver
at m.buildValidatedConfigFromDiscovery (AutoDiscoveryUtils.tsx:272:27)
at m.validateServerConfigWithStaticUrls (AutoDiscoveryUtils.tsx:200:35)
at async Yx.deriveData (ServerPickerDialog.tsx:108:22)
at async Yx.validate (Validation.tsx:164:15)
at async _.validate (Field.tsx:211:24)
at async ServerPickerDialog.tsx:167:9Caused by: Homeserver URL does not appear to be a valid Matrix homeserver
e. @ rageshake.ts:77
Show 1 more frame
Show less
webapp/#/login:1 Access to fetch at 'https://hydrogen.private.coffee/.well-known/matrix/client' from origin 'vector://vector' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
hydrogen.private.coffee/.well-known/matrix/client:1

   Failed to load resource: net::ERR_FAILED

rageshake.ts:77 No response or error when parsing .well-known
e. @ rageshake.ts:77
Show 1 more frame
Show less
rageshake.ts:77 Failed to fetch
e. @ rageshake.ts:77
Show 1 more frame
Show less
rageshake.ts:77 Error processing homeserver config: Object
e. @ rageshake.ts:77
Show 1 more frame
Show less
rageshake.ts:77 Attempted hydrogen.private.coffee as a server_name but it failed Error: Failed to get autodiscovery configuration from server
at m.buildValidatedConfigFromDiscovery (AutoDiscoveryUtils.tsx:272:27)
at Yx.deriveData (ServerPickerDialog.tsx:91:67)
at async Yx.validate (Validation.tsx:164:15)
at async _.validate (Field.tsx:211:24)Caused by: Invalid homeserver discovery response
e. @ rageshake.ts:77
Show 1 more frame
Show less
webapp/#/login:1 Access to fetch at 'https://hydrogen.private.coffee/_matrix/client/versions' from origin 'vector://vector' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
hydrogen.private.coffee/_matrix/client/versions:1

   Failed to load resource: net::ERR_FAILED

rageshake.ts:77 Invalid /versions response
e. @ rageshake.ts:77
Show 1 more frame
Show less
rageshake.ts:77 Error processing homeserver config: Object
e. @ rageshake.ts:77
Show 1 more frame
Show less
rageshake.ts:77 Error: Homeserver URL does not appear to be a valid Matrix homeserver
at m.buildValidatedConfigFromDiscovery (AutoDiscoveryUtils.tsx:272:27)
at m.validateServerConfigWithStaticUrls (AutoDiscoveryUtils.tsx:200:35)
at async Yx.deriveData (ServerPickerDialog.tsx:108:22)
at async Yx.validate (Validation.tsx:164:15)
at async _.validate (Field.tsx:211:24)Caused by: Homeserver URL does not appear to be a valid Matrix homeserver
e. @ rageshake.ts:77
Show 1 more frame
Show less
matrix.private.coffee/_matrix/client/unstable/org.matrix.msc2965/auth_issuer:1

   Failed to load resource: the server responded with a status of 404 ()

matrix.private.coffee/_matrix/client/unstable/org.matrix.msc2965/auth_issuer:1

   Failed to load resource: the server responded with a status of 404 ()

matrix.private.coffee/_matrix/client/unstable/org.matrix.msc2965/auth_issuer:1

   Failed to load resource: the server responded with a status of 404 ()

index.js:9882 Uncaught (in promise) Error: Error: Failed decoding Curve25519 key from base64: Invalid number of bytes for Curve25519, expected 32, got 45.
at A.exports.__wbindgen_error_new (index.js:9882:17)
at matrix_sdk_crypto_wasm.wasm.<wasm_bindgen::JsError as core::convert::From>::from::h5937aa426c7aaca3 (matrix_sdk_crypto_wasm.wasm-017a72fa:0x2ab3ec)
at matrix_sdk_crypto_wasm.wasm.olmmachine_verifyBackup (matrix_sdk_crypto_wasm.wasm-017a72fa:0x28d37e)
at Mg.verifyBackup (index.js:5367:18)
at G.isKeyBackupTrusted (backup.ts:123:84)
at G.doCheckKeyBackup (backup.ts:303:38)
at async ce.checkKeyBackupAndEnable (rust-crypto.ts:1180:9)
fetch.ts:60

   GET https://matrix.private.coffee/_matrix/client/unstable/org.matrix.msc2697.v2/dehydrated_device 404 (Not Found)

fetch @ fetch.ts:60
requestOtherUrl @ fetch.ts:304
request @ fetch.ts:241
authedRequest @ fetch.ts:159
getDehydratedDevice @ client.ts:1668
fetchKeyInfo @ SetupEncryptionStore.ts:113
await in fetchKeyInfo (async)
start @ SetupEncryptionStore.ts:82
ux @ CompleteSecurity.tsx:40
bi @ react-dom.production.min.js:135
Hs @ react-dom.production.min.js:181
Ga @ react-dom.production.min.js:269
Il @ react-dom.production.min.js:250
Al @ react-dom.production.min.js:250
Cl @ react-dom.production.min.js:250
bl @ react-dom.production.min.js:243
(anonymous) @ react-dom.production.min.js:123
t.unstable_runWithPriority @ scheduler.production.min.js:18
Ko @ react-dom.production.min.js:122
Jo @ react-dom.production.min.js:123
Go @ react-dom.production.min.js:122
pl @ react-dom.production.min.js:237
enqueueSetState @ react-dom.production.min.js:133
f.setState @ react.production.min.js:12
setState @ MatrixChat.tsx:471
setStateForNewView @ MatrixChat.tsx:600
postLoginSetup @ MatrixChat.tsx:448
Show 26 more frames
Show less
rageshake.ts:77 Error fetching backup data from server Error: Error: Failed decoding Curve25519 key from base64: Invalid number of bytes for Curve25519, expected 32, got 45.
at A.exports.__wbindgen_error_new (index.js:9882:17)
at matrix_sdk_crypto_wasm.wasm.<wasm_bindgen::JsError as core::convert::From>::from::h5937aa426c7aaca3 (matrix_sdk_crypto_wasm.wasm-017a72fa:0x2ab3ec)
at matrix_sdk_crypto_wasm.wasm.olmmachine_verifyBackup (matrix_sdk_crypto_wasm.wasm-017a72fa:0x28d37e)
at Mg.verifyBackup (index.js:5367:18)
at G.isKeyBackupTrusted (backup.ts:123:84)
at ce.isKeyBackupTrusted (rust-crypto.ts:1171:41)
at U.fetchBackupInfo (CreateSecretStorageDialog.tsx:209:53)
e. @ rageshake.ts:77
fetchBackupInfo @ CreateSecretStorageDialog.tsx:222
await in fetchBackupInfo (async)
getInitialPhase @ CreateSecretStorageDialog.tsx:192
U @ CreateSecretStorageDialog.tsx:174
bi @ react-dom.production.min.js:135
Hs @ react-dom.production.min.js:181
Ga @ react-dom.production.min.js:269
Il @ react-dom.production.min.js:250
Al @ react-dom.production.min.js:250
Cl @ react-dom.production.min.js:250
bl @ react-dom.production.min.js:243
(anonymous) @ react-dom.production.min.js:123
t.unstable_runWithPriority @ scheduler.production.min.js:18
Ko @ react-dom.production.min.js:122
Jo @ react-dom.production.min.js:123
Go @ react-dom.production.min.js:122
pl @ react-dom.production.min.js:237
enqueueSetState @ react-dom.production.min.js:133
f.setState @ react.production.min.js:12
(anonymous) @ AsyncWrapper.tsx:58
Promise.then (async)
componentDidMount @ AsyncWrapper.tsx:49
va @ react-dom.production.min.js:219
Ol @ react-dom.production.min.js:259
t.unstable_runWithPriority @ scheduler.production.min.js:18
Ko @ react-dom.production.min.js:122
Tl @ react-dom.production.min.js:252
bl @ react-dom.production.min.js:243
pl @ react-dom.production.min.js:237
Xl @ react-dom.production.min.js:285
(anonymous) @ react-dom.production.min.js:289
wl @ react-dom.production.min.js:244
ic @ react-dom.production.min.js:289
t.render @ react-dom.production.min.js:296
reRender @ Modal.tsx:439
await in reRender (async)
createDialogAsync @ Modal.tsx:339
(anonymous) @ SecurityManager.ts:245
(anonymous) @ SecurityManager.ts:221
T @ SecurityManager.ts:189
O @ SecurityManager.ts:221
resetConfirm @ SetupEncryptionStore.ts:244
(anonymous) @ SetupEncryptionBody.tsx:126
Ve @ react-dom.production.min.js:52
Ge @ react-dom.production.min.js:52
(anonymous) @ react-dom.production.min.js:53
Cr @ react-dom.production.min.js:100
Ar @ react-dom.production.min.js:101
(anonymous) @ react-dom.production.min.js:113
Me @ react-dom.production.min.js:292
(anonymous) @ react-dom.production.min.js:50
Pr @ react-dom.production.min.js:105
Zt @ react-dom.production.min.js:75
Qt @ react-dom.production.min.js:74
t.unstable_runWithPriority @ scheduler.production.min.js:18
Ko @ react-dom.production.min.js:122
Oe @ react-dom.production.min.js:292
Jt @ react-dom.production.min.js:73
Show 56 more frames
Show less
rageshake.ts:77 Error fetching backup data from server Error: Error: Failed decoding Curve25519 key from base64: Invalid number of bytes for Curve25519, expected 32, got 45.
at A.exports.__wbindgen_error_new (index.js:9882:17)
at matrix_sdk_crypto_wasm.wasm.<wasm_bindgen::JsError as core::convert::From>::from::h5937aa426c7aaca3 (matrix_sdk_crypto_wasm.wasm-017a72fa:0x2ab3ec)
at matrix_sdk_crypto_wasm.wasm.olmmachine_verifyBackup (matrix_sdk_crypto_wasm.wasm-017a72fa:0x28d37e)
at Mg.verifyBackup (index.js:5367:18)
at G.isKeyBackupTrusted (backup.ts:123:84)
at ce.isKeyBackupTrusted (rust-crypto.ts:1171:41)
at U.fetchBackupInfo (CreateSecretStorageDialog.tsx:209:53)
e. @ rageshake.ts:77
fetchBackupInfo @ CreateSecretStorageDialog.tsx:222
await in fetchBackupInfo (async)
(anonymous) @ CreateSecretStorageDialog.tsx:438
Ve @ react-dom.production.min.js:52
Ge @ react-dom.production.min.js:52
(anonymous) @ react-dom.production.min.js:53
Cr @ react-dom.production.min.js:100
Ar @ react-dom.production.min.js:101
(anonymous) @ react-dom.production.min.js:113
Me @ react-dom.production.min.js:292
(anonymous) @ react-dom.production.min.js:50
Pr @ react-dom.production.min.js:105
Zt @ react-dom.production.min.js:75
Qt @ react-dom.production.min.js:74
t.unstable_runWithPriority @ scheduler.production.min.js:18
Ko @ react-dom.production.min.js:122
Oe @ react-dom.production.min.js:292
Jt @ react-dom.production.min.js:73
Show 18 more frames
Show less
rageshake.ts:77 accessSecretStorage: error during operation Error: Secret storage creation canceled
at SecurityManager.ts:267:23
at async T (SecurityManager.ts:189:9)
at async O (SecurityManager.ts:220:94)
at async f.resetConfirm (SetupEncryptionStore.ts:239:9)
e. @ rageshake.ts:77
(anonymous) @ logger.ts:97
(anonymous) @ SecurityManager.ts:311
Show 3 more frames
Show less
rageshake.ts:77 Error resetting cross-signing Error: Secret storage creation canceled
at SecurityManager.ts:267:23
at async T (SecurityManager.ts:189:9)
at async O (SecurityManager.ts:220:94)
at async f.resetConfirm (SetupEncryptionStore.ts:239:9)
e. @ rageshake.ts:77
(anonymous) @ logger.ts:97
resetConfirm @ SetupEncryptionStore.ts:281
Show 3 more frames
Show less

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
Projects
None yet
Development

No branches or pull requests

2 participants