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 set up secret storage - e is undefined #27888

Closed
mochman opened this issue Aug 1, 2024 · 7 comments
Closed

Unable to set up secret storage - e is undefined #27888

mochman opened this issue Aug 1, 2024 · 7 comments
Labels
A-E2EE O-Occasional Affects or can be seen by some users regularly or most users rarely S-Major Severely degrades major functionality or product features, with no satisfactory workaround T-Defect

Comments

@mochman
Copy link

mochman commented Aug 1, 2024

Steps to reproduce

  1. Open up element web on Firefox 128.0.3 or Chrome 127.0.6533.74
  2. See that a message pops up saying "Encryption Upgrade Available"
  3. Select "Upgrade"
  4. Select "Next"

Outcome

What did you expect?

I expected the process to complete.

What happened instead?

I received an error message stating:
"Unable to set up secret storage"

Operating system

Windows 10

Browser information

Firefox 128.0.3 or Chrome 127.0.6533.74

URL for webapp

Private Server - Element version: 1.11.72

Application version

Element version: 1.11.72

Homeserver

local server, private Synapse v 1.112.0

Will you send logs?

Yes

@dosubot dosubot bot added A-E2EE O-Occasional Affects or can be seen by some users regularly or most users rarely S-Major Severely degrades major functionality or product features, with no satisfactory workaround labels Aug 1, 2024
@mochman
Copy link
Author

mochman commented Aug 1, 2024

Logs:

2024-08-01T12:39:35.628Z D bootstrapCrossSigning: starting {"olmDeviceHasMaster":true,"olmDeviceHasUserSigning":true,"olmDeviceHasSelfSigning":true,"privateKeysInSecretStorage":false}
2024-08-01T12:39:35.628Z W bootstrapCrossSigning: Olm device has private keys, but secret storage is not yet set up; doing nothing for now.
2024-08-01T12:39:35.628Z D bootstrapCrossSigning: complete
2024-08-01T12:39:35.629Z I bootstrapSecretStorage: creating new secret storage key
2024-08-01T12:39:35.630Z E Error bootstrapping secret storage e is undefined
addSecretStorageKeyToSecretStorage@https://SERVERURL/bundles/5b230e251bb8460e52ca/5484.js:1:51420
bootstrapSecretStorage@https://SERVERURL/bundles/5b230e251bb8460e52ca/5484.js:1:50406
async*./node_modules/matrix-react-sdk/src/async-components/views/dialogs/security/CreateSecretStorageDialog.tsx/U/<@https://SERVERURL/bundles/5b230e251bb8460e52ca/1230.js:1:5662
async*Ve@https://SERVERURL/bundles/5b230e251bb8460e52ca/2586.js:2:3767157
Ge@https://SERVERURL/bundles/5b230e251bb8460e52ca/2586.js:2:3767311
./node_modules/react-dom/cjs/react-dom.production.min.js/Ar/<@https://SERVERURL/bundles/5b230e251bb8460e52ca/2586.js:2:3785469
Ar@https://SERVERURL/bundles/5b230e251bb8460e52ca/2586.js:2:3785563
Cr@https://SERVERURL/bundles/5b230e251bb8460e52ca/2586.js:2:3785978
./node_modules/react-dom/cjs/react-dom.production.min.js/Pr/<@https://SERVERURL/bundles/5b230e251bb8460e52ca/2586.js:2:3791606
Me@https://SERVERURL/bundles/5b230e251bb8460e52ca/2586.js:2:3866691
./node_modules/react-dom/cjs/react-dom.production.min.js/Pr/<@https://SERVERURL/bundles/5b230e251bb8460e52ca/2586.js:2:3787435
Pr@https://SERVERURL/bundles/5b230e251bb8460e52ca/2586.js:2:3787465
Zt@https://SERVERURL/bundles/5b230e251bb8460e52ca/2586.js:2:3775535
Qt@https://SERVERURL/bundles/5b230e251bb8460e52ca/2586.js:2:3774761
./node_modules/scheduler/cjs/scheduler.production.min.js/t.unstable_runWithPriority@https://SERVERURL/bundles/5b230e251bb8460e52ca/2586.js:2:3997356
Ko@https://SERVERURL/bundles/5b230e251bb8460e52ca/2586.js:2:3795785
Oe@https://SERVERURL/bundles/5b230e251bb8460e52ca/2586.js:2:3866433
Jt@https://SERVERURL/bundles/5b230e251bb8460e52ca/2586.js:2:3774556

2024-08-01T12:39:53.737Z D FetchHttpApi: <-- GET https://SERVERURL/_matrix/client/v3/sync?filter=xxx&timeout=xxx&set_presence=xxx&since=xxx [30133ms 200]
2024-08-01T12:39:53.769Z D [Perf]: receiveSyncChanges took 31ms
2024-08-01T12:39:53.779Z D FetchHttpApi: --> GET https://SERVERURL/_matrix/client/v3/sync?filter=xxx&timeout=xxx&set_presence=xxx&since=xxx
2024-08-01T12:40:06.993Z I Default catchAccessSecretStorageError() => void
2024-08-01T12:40:06.995Z E Secret storage creation canceled

@spacegaucho

This comment was marked as off-topic.

@t3chguy

This comment was marked as off-topic.

@spacegaucho

This comment was marked as off-topic.

@mochman

This comment was marked as off-topic.

@mochman
Copy link
Author

mochman commented Aug 8, 2024

Not sure if it's happening because of setupNewCrossSigning: undefined in the init object.
Untitled

@richvdh
Copy link
Member

richvdh commented Sep 17, 2024

The "upgrade encryption" flow is broken and slated for removal: #27455

@richvdh richvdh closed this as completed Sep 17, 2024
richvdh added a commit to matrix-org/matrix-js-sdk that referenced this issue Sep 17, 2024
element-hq/element-web#27888 shows a slightly
mysterious error message, but the problem is `createSecretStorageKey`
returning the wrong thing.
github-merge-queue bot pushed a commit to matrix-org/matrix-js-sdk that referenced this issue Sep 23, 2024
element-hq/element-web#27888 shows a slightly
mysterious error message, but the problem is `createSecretStorageKey`
returning the wrong thing.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-E2EE O-Occasional Affects or can be seen by some users regularly or most users rarely S-Major Severely degrades major functionality or product features, with no satisfactory workaround T-Defect
Projects
None yet
Development

No branches or pull requests

4 participants