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

App logs me out if vault is unreachable #4366

Open
1 task done
yurividal opened this issue Nov 22, 2024 · 10 comments
Open
1 task done

App logs me out if vault is unreachable #4366

yurividal opened this issue Nov 22, 2024 · 10 comments
Labels

Comments

@yurividal
Copy link

Steps To Reproduce

I self-host Bitwarden. Never had a problem with the old version of the android app. With the beta, I have realized that if my vault is unreachable, for example if my server went down for a few minutes, the Android app logs me out.
Next time I open the app, I have to log back in with my master password. Strangely, it doesn't request any 2FA for this re-login.
I also have to go to the settings and re-enable biometric login every time this happens.

Expected Result

Same behavior as old app. App keeps logged in even if vault is temporarily unavailable.

Actual Result

I have to login all over again.

Screenshots or Videos

No response

Additional Context

No response

Build Version

Latest

What server are you connecting to?

Self-host

Self-host Server Version

Latest

Environment Details

No response

Issue Tracking Info

  • I understand that work is tracked outside of Github. A PR will be linked to this issue should one be opened to address it, but Bitwarden doesn't use fields like "assigned", "milestone", or "project" to track progress.
@yurividal yurividal added the bug label Nov 22, 2024
@bitwarden-bot
Copy link

Thank you for your report! We've added this to our internal board for review.
ID: PM-15164

@yurividal
Copy link
Author

Steps to reproduce:

  • Open the beta android app
  • sync the vault. sync works fine.
  • go to reverse proxy and disable the bitwarden proxy (to simulate server being down)
  • open beta android app. wait for it to try to sync, or force a sync
  • exit out of the app
  • re-enable bitwarden on the reverse proxy
  • open the android app again. it will be logged out. User needs to enter master password again to log back in. All settings are also lost, so user needs to re-enable biometrics, and any other settings they had before.

@daniellbw
Copy link

Hi there,

I am unable to reproduce this issue, it has been escalated for further investigation. If you have more information that can help us, please add it below.

Thanks!

@ctrlbrk42
Copy link

ctrlbrk42 commented Nov 22, 2024

Steps to reproduce:

  • Open the beta android app
  • sync the vault. sync works fine.
  • go to reverse proxy and disable the bitwarden proxy (to simulate server being down)
  • open beta android app. wait for it to try to sync, or force a sync
  • exit out of the app
  • re-enable bitwarden on the reverse proxy
  • open the android app again. it will be logged out. User needs to enter master password again to log back in. All settings are also lost, so user needs to re-enable biometrics, and any other settings they had before.

I sent this in via email but putting here as well:


Hi Android devs,

Big bug in version 2024.11.6
com.x8bit.bitwarden.

When internet is available but the self-hosted server is offline/unreachable/returning a 5xx, the app disregards prior biometric settings and logs me out.

That forces me to login, using my master password. That password is not accepted (an error occurred). It doesn't seem to use the local cached copy. I am logged out and unable to authenticate, locking me out entirely from my vault.

If I disable internet entirely, the app works as expected (AFTER returning the server to responding 2xx and logging in once, then setting biometrics again, and then disabling internet).

The issue is focused on when the server is unreachable OR returning a 5xx error. I've been locked out several times because of this due to an energy crisis in my country lasting beyond my UPS batteries >4hrs

@ad-on-is
Copy link

I have exactly the same issue.

I was wondering why the app keeps me asking for a master password randomly.

Wow! Given that my self-hosted server runs on a Ryzen mini PC, which is known to experience random restarts without any reason, this very much explains the problem.

@yurividal
Copy link
Author

Some users on Reddit are reporting this issue happens even on non-self-hosted.

@sorat0mo
Copy link

I face the exact same issue. App randomly logs me out and sometimes vault appears empty for seconds.

@fedonr
Copy link

fedonr commented Nov 27, 2024

Same, I had 3 accounts on Biometric, it would unlock once with Biometric (when server is offline) but in few seconds it would throw error message (stays logged in). Close the from Recents and open it again, it'll be logged out. Same with all 3 accounts

@krasen1234
Copy link

Same issue only on Android, I changed proxy, host etc , keep having the issue

@Buenno
Copy link

Buenno commented Dec 4, 2024

I'm also experiencing this issue. I'm running wireguard in order to access my self-hosted infra, but my work network blocks wireguard traffic. This causes my server to become unreachable, and my bit locked account to disconnect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

9 participants