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

Cannot login #27869

Open
qqubes opened this issue Jul 29, 2024 · 13 comments
Open

Cannot login #27869

qqubes opened this issue Jul 29, 2024 · 13 comments
Labels
A-Login O-Uncommon Most users are unlikely to come across this or unexpected workflow S-Critical Prevents work, causes data loss and/or has no workaround T-Defect X-Community-Supported-Platform This issue occurs in a platform not directly supported by us, but by a community project elsewhere

Comments

@qqubes
Copy link

qqubes commented Jul 29, 2024

Steps to reproduce

The sequence of screenshots demonstrates what happens when I try to log in.
element_io-1_2024-07-29_10-46-06
element_io-2_2024-07-29_10-47-14
element_io-3_2024-07-29_10-58-49
element_io-4_2024-07-29_10-59-29
element_io-5_2024-07-29_10-59-58
element_io-6_2024-07-29_11-01-08

Afterwards, it gets stuck waiting endlessly for logout.

Outcome

What did you expect?

To login as usual.

What happened instead?

Cannot.

Operating system

qubes OS

Browser information

Chromium Version 120.0.6099.224 (Official Build) built on Debian 11.8, running on Debian 11.9 (64-bit)

URL for webapp

app.element.io

Application version

browser

Homeserver

matrix.org

Will you send logs?

Yes

@dosubot dosubot bot added A-Login O-Frequent Affects or can be seen by most users regularly or impacts most users' first experience S-Critical Prevents work, causes data loss and/or has no workaround labels Jul 29, 2024
@qqubes
Copy link
Author

qqubes commented Jul 29, 2024

Worked after restarting the computer.

@qqubes qqubes closed this as completed Jul 29, 2024
@qqubes
Copy link
Author

qqubes commented Jul 29, 2024

The issue has recurred.

I cannot restart my computer everytime I want to log into Matrix.

@qqubes qqubes reopened this Jul 29, 2024
@t3chguy
Copy link
Member

t3chguy commented Jul 29, 2024

Will you send logs?
Yes

Not seeing any logs from you

@t3chguy t3chguy added the X-Needs-Info This issue is blocked awaiting information from the reporter label Jul 29, 2024
@qqubes
Copy link
Author

qqubes commented Jul 29, 2024

@t3chguy I did try but got an error.

I will try again when I have time later, and document what happens.

@qqubes
Copy link
Author

qqubes commented Jul 29, 2024

I see what happens:

When I try to log in it gets stuck (see Screenshot 3 above). Then if I get tired of waiting an reload the page, I get to Screenshot 4.

But then when I choose Send Logs, it gives the error:

Failed to send logs: No connected database

Btw, I this is using a web browser. I can log in using my Android device.

@richvdh
Copy link
Member

richvdh commented Jul 29, 2024

getting stuck during login sounds somewhat like #25779. To work around, reload the tab before trying to log in.

If sending logs via the application doesn't work, could you reproduce the problem with the developer console open (ctrl-shift-i), then save the console logs to disk, and upload?

@qqubes
Copy link
Author

qqubes commented Jul 29, 2024

Here is a copypasta from the console section of the developer console:

contentScript.js:187 [PHANTOM] error getting eth provider options
contentScript.js:187 [PHANTOM] error updating cache Error: Something went wrong.
at SS. (contentScript.js:187:84324)
at Generator.next ()
at s (contentScript.js:187:83132)
Markdown.ts:395 Uncaught (in promise) ReferenceError: Cannot access 'q' before initialization
at Object.J (Markdown.ts:395:5)
at _.start (ReadyWatchingStore.ts:38:30)
at get instance [as instance] (WidgetLayoutStore.ts:71:35)
at ./node_modules/matrix-react-sdk/src/stores/widgets/WidgetLayoutStore.ts (WidgetLayoutStore.ts:524: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)
at ./node_modules/matrix-react-sdk/src/MatrixClientPeg.ts (MatrixActionCreators.ts:378:5)
Markdown.ts:395 Uncaught (in promise) ReferenceError: Cannot access 'q' 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 'q' 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)
/config.app.element.…ter=1722259125267:1
Failed to load resource: the server responded with a status of 404 ()
rageshake.ts:77 Failed to open log database: UnknownError
rageshake.ts:164 Uncaught (in promise) Error: Failed to open log database: UnknownError
at e.onerror (rageshake.ts:164:24)
rageshake.ts:77 Error: Failed to open log database: UnknownError
at e.onerror (rageshake.ts:164:24)
compat.ts:27 The AudioContext was not allowed to start. It must be resumed (or created) after a user gesture on the page. https://goo.gl/7K7WLu
rageshake.ts:77 startUpdater, current version is 1.11.71
rageshake.ts:77 DEPRECATED CONFIG OPTION: In the future, default_server_name will not be accepted. Please use default_server_config instead.
rageshake.ts:77 No update available, already on 1.11.71
matrix-client.matrix…c2965/auth_issuer:1
Failed to load resource: the server responded with a status of 404 ()
rageshake.ts:77 StorageManager.idbLoad failed for account:mx_access_token
Event


@richvdh
Copy link
Member

richvdh commented Jul 29, 2024

ok well, that didn't help much. I'm out of ideas.

@syserr0r
Copy link

syserr0r commented Aug 1, 2024

In my case I had this on the windows x64 client immediately after installing an update that the client prompted me for.
To fix I re-installed the Windows client.

The console stack trace wasn't as long/detailed in my case - all I had at the top of the trace was Cannot access 'q' before initialization

@t3chguy t3chguy added the X-Community-Supported-Platform This issue occurs in a platform not directly supported by us, but by a community project elsewhere label Aug 1, 2024
@richvdh richvdh added O-Uncommon Most users are unlikely to come across this or unexpected workflow and removed O-Frequent Affects or can be seen by most users regularly or impacts most users' first experience labels Aug 1, 2024
@richvdh richvdh removed the X-Needs-Info This issue is blocked awaiting information from the reporter label Nov 26, 2024
@richvdh
Copy link
Member

richvdh commented Nov 26, 2024

Is this still happening?

@mohammadrafigh
Copy link

mohammadrafigh commented Dec 5, 2024

Yes, I faced it after upgrading element to the 2 recent versions on Ubuntu 24.04. Here are the logs I get in console:

init.js:1 Uncaught (in promise) ReferenceError: Cannot access 'V' before initialization
    at Object.J (init.js:1:81507)
    at b.start (ReadyWatchingStore.ts:30:30)
    at get instance (WidgetLayoutStore.ts:63:35)
    at ./src/stores/widgets/WidgetLayoutStore.ts (WidgetLayoutStore.ts:518:48)
    at u (bootstrap:19:32)
    at ./src/utils/WidgetUtils.ts (init.js:1:1405739)
    at u (bootstrap:19:32)
    at ./src/stores/ActiveWidgetStore.ts (init.js:1:1193978)
    at u (bootstrap:19:32)
    at ./src/stores/WidgetStore.ts (init.js:1:1220711)
init.js:1 Uncaught (in promise) ReferenceError: Cannot access 'V' before initialization
    at Object.J (init.js:1:81507)
    at l.start (ReadyWatchingStore.ts:30:30)
    at d.start (AsyncStoreWithClient.ts:40:31)
    at WidgetMessagingStore.ts:30:18
    at ./src/stores/widgets/WidgetMessagingStore.ts (WidgetMessagingStore.ts:28:48)
    at u (bootstrap:19:32)
    at ./src/stores/ActiveWidgetStore.ts (init.js:1:1194012)
    at u (bootstrap:19:32)
    at ./src/stores/WidgetStore.ts (init.js:1:1220711)
    at u (bootstrap:19:32)
init.js:1 Uncaught (in promise) ReferenceError: Cannot access 'V' before initialization
    at Object.J (init.js:1:81507)
    at l.start (ReadyWatchingStore.ts:30:30)
    at p.start (AsyncStoreWithClient.ts:40:31)
    at WidgetStore.ts:48:18
    at ./src/stores/WidgetStore.ts (WidgetStore.ts:46:48)
    at u (bootstrap:19:32)
    at ./src/modules/ModuleRunner.ts (init.js:1:1107444)
    at u (bootstrap:19:32)
    at ./src/SecurityManager.ts (init.js:1:140738)
    at u (bootstrap:19:32)
rageshake.ts:69 emojibase MAX_EMOJI_VERSION 15
rageshake.ts:69 DEPRECATED CONFIG OPTION: In the future, default_server_name will not be accepted. Please use default_server_config instead.
Object.keys.forEach.e.<computed> @ rageshake.ts:69
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 ()

@t3chguy
Copy link
Member

t3chguy commented Dec 5, 2024

@mohammadrafigh none of the errors in that log prevent the app from working. The ReferenceErrors are #27606, the emoji version & deprecated config don't matter, and the 404 for auth_issuer just means your server isn't using OIDC-native, we can't hide 404 errors from web requests we make in a web browser. We'd need to see a full log

@mohammadrafigh
Copy link

Sent full logs through app preferences referencing this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Login O-Uncommon Most users are unlikely to come across this or unexpected workflow S-Critical Prevents work, causes data loss and/or has no workaround T-Defect X-Community-Supported-Platform This issue occurs in a platform not directly supported by us, but by a community project elsewhere
Projects
None yet
Development

No branches or pull requests

5 participants