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

i got logout every day #2999

Closed
wrenix opened this issue Jun 9, 2024 · 6 comments
Closed

i got logout every day #2999

wrenix opened this issue Jun 9, 2024 · 6 comments
Labels
T-Defect Something isn't working: bugs, crashes, hangs and other reported problems

Comments

@wrenix
Copy link

wrenix commented Jun 9, 2024

Steps to reproduce

  1. login (in a setup with sliding sync, synapse and mas for oidc)
  2. lock phone for a few hours

Outcome

What did you expect?

use it till i press on any device logout for that session/device

What happened instead?

I open (in next day) element-x and i have to relogin.

(With element-web i do not have this problem)

Your phone model

No response

Operating system version

14

Application version and app store

Release apk from github for fdroid v0.4.14 (this bug was also already in v0.4.13)

Homeserver

Synapse 1.101.0,

Will you send logs?

Yes

Are you willing to provide a PR?

No

@wrenix wrenix added the T-Defect Something isn't working: bugs, crashes, hangs and other reported problems label Jun 9, 2024
@benparsons
Copy link
Member

benparsons commented Jun 11, 2024

I also get logged out frequently, though not every day. I'll start using Element X again and send logs

@wrenix
Copy link
Author

wrenix commented Jun 14, 2024

Logs are send this time with a link to this issue.

I also got that Problem again (two hour later) and i found that logs, maybe it helps:

2024-06-14T19:54:39.649643Z  WARN elementx: didRefreshTokens() | 
2024-06-14T19:54:39.655009Z DEBUG elementx: Saving new session data with token: '...budj'. Was token valid: true | 
2024-06-14T19:54:39.666580Z DEBUG elementx: Saved new session data with token: '...budj'. | 
2024-06-14T19:54:39.675595Z DEBUG matrix_sdk::http_client: Error while sending request: Api(Server(ClientApi(Error { status_code: 401, body: Standard { kind: UnknownToken { soft_logout: false }, message: "Token is not active" } }))) | crates/matrix-sdk/src/http_client/mod.rs:196 | spans: send{server_versions=[V1_0, V1_1, V1_2, V1_3, V1_4, V1_5] config=RequestConfig { timeout: 30s } request_id="REQ-0" method=GET uri="https://matrix.private.org/_matrix/client/v3/user/@wrenix:private.org/account_data/m.secret_storage.default_key" status=401 response_size="79 B"}
2024-06-14T19:54:40.098556Z ERROR matrix_sdk::client::futures: Token refresh: OIDC refresh_token rejected with invalid grant | crates/matrix-sdk/src/client/futures.rs:146
2024-06-14T19:54:40.098691Z ERROR matrix_sdk::encryption: Couldn't setup and resume recovery Sdk(Http(RefreshToken(Oidc(Oidc(TokenRefresh(Token(Http(HttpError { status: 400, body: Some(ErrorBody { error: InvalidGrant, error_description: Some("The provided access grant is invalid, expired, or revoked.") }) })))))))) | crates/matrix-sdk/src/encryption/mod.rs:1379
2024-06-14T19:54:40.103757Z  WARN elementx: didReceiveAuthError(isSoftLogout=false) | 

I switch back to fluffychat (that works with MAS and sliding-sync).

Normal Element does not work with MAS: https://areweoidcyet.com/

@bmarty
Copy link
Member

bmarty commented Jun 18, 2024

2024-06-14T19:54:40.098556Z ERROR matrix_sdk::client::futures: Token refresh: OIDC refresh_token rejected with invalid grant | crates/matrix-sdk/src/client/futures.rs:146

@sandhose can you help to understand this error please?

@bmarty
Copy link
Member

bmarty commented Jun 18, 2024

Related: #3028

@bmarty
Copy link
Member

bmarty commented Jun 26, 2024

Fixed by #3050

@bmarty bmarty closed this as completed Jun 26, 2024
@wrenix
Copy link
Author

wrenix commented Jun 27, 2024

Works again, yes - thx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-Defect Something isn't working: bugs, crashes, hangs and other reported problems
Projects
None yet
Development

No branches or pull requests

3 participants