Cannot login to vault on Android app while using Wireguard VPN hosted on AWS #1386

Closed
opened 2025-11-26 22:47:02 -06:00 by GiteaMirror · 5 comments
Owner

Originally created by @shahzainb on GitHub (Dec 8, 2021).

Steps To Reproduce

  1. Launch Android app
  2. Click on Log in
  3. Fill in username and password
  4. Click on Log In

Expected Result

I should be logged in and able to access vault

Actual Result

"An error has occured"

Screenshots or Videos

No response

Additional Context

I am running a unbound + Pi-hole + pi-vpn setup through Wireguard on AWS, with a static IP. Yesterday, I have suddently encountered the issue where I cannot login into the app at all. I checked pi-hole and nothing was being blocked there relevant to bitwarden. Calls to api.bitwarden.com are all passing through fine.

On the same VPN, I can login through vault.bitwarden.com fine. I can login to the app without connecting to the AWS VPN, using my home network, which has mostly the same setup as the AWS server (unbound + pi-hole), but without the wireguard process. I tried to debug the pi-vpn instance, but couldn't find any issues there as the network requests didn't seem to reach at all.

When I encountered the issue yesterday, I changed the static IP associated with the VPN instance on AWS, and am still facing the same issue, so it doesn't seem that it's a blacklisted IP problem. The issue is also persistent on another phone (Samsung Galaxy S21+) that I have the same VPN on too, but using a completely different Bitwarden account.

This has started happening since yesterday only and has been previously working fine.

Operating System

Android

Operating System Version

11

Device

Sony Xperia 5 II

Build Version

2.14.2

Beta

  • Using a pre-release version of the application.
Originally created by @shahzainb on GitHub (Dec 8, 2021). ### Steps To Reproduce 1. Launch Android app 2. Click on Log in 3. Fill in username and password 4. Click on Log In ### Expected Result I should be logged in and able to access vault ### Actual Result "An error has occured" ### Screenshots or Videos _No response_ ### Additional Context I am running a unbound + Pi-hole + pi-vpn setup through Wireguard on AWS, with a static IP. Yesterday, I have suddently encountered the issue where I cannot login into the app at all. I checked pi-hole and nothing was being blocked there relevant to bitwarden. Calls to `api.bitwarden.com` are all passing through fine. On the same VPN, I can login through `vault.bitwarden.com` fine. I can login to the app without connecting to the AWS VPN, using my home network, which has mostly the same setup as the AWS server (unbound + pi-hole), but without the wireguard process. I tried to debug the pi-vpn instance, but couldn't find any issues there as the network requests didn't seem to reach at all. When I encountered the issue yesterday, I changed the static IP associated with the VPN instance on AWS, and am still facing the same issue, so it doesn't seem that it's a blacklisted IP problem. The issue is also persistent on another phone (Samsung Galaxy S21+) that I have the same VPN on too, but using a completely different Bitwarden account. This has started happening since yesterday only and has been previously working fine. ### Operating System Android ### Operating System Version 11 ### Device Sony Xperia 5 II ### Build Version 2.14.2 ### Beta - [ ] Using a pre-release version of the application.
GiteaMirror added the bug label 2025-11-26 22:47:02 -06:00
Author
Owner

@davidbuckleyni commented on GitHub (Dec 9, 2021):

I failed to see how this is the developers bug. You have put extra vpn auth on ur connection. I have a feeling this will not be a bug.

@davidbuckleyni commented on GitHub (Dec 9, 2021): I failed to see how this is the developers bug. You have put extra vpn auth on ur connection. I have a feeling this will not be a bug.
Author
Owner

@shahzainb commented on GitHub (Dec 9, 2021):

I understand that I have put a VPN on my side, and that it is likely an issue on my end. I am simply requesting the developers' assistance in diagnosing the issue.

As I mentioned in the initial comment, the issue has suddenly started happening. I don't have the issue when I visit the Web vault.

The same DNS setup, with unbound and pi-hole on my home network but without going through AWS network, works perfectly fine. Perhaps the devs have blocked certain Hosts from accessing the app, perhaps there's some automated filter rules applied via whatever firewall is in place. I would like to find out what it is that is blocking the access. I have made no changes to the setup, I checked for any automated updates as well and there weren't any. A setup that has been working for 2 years just suddenly starts to fail.

@shahzainb commented on GitHub (Dec 9, 2021): I understand that I have put a VPN on my side, and that it is likely an issue on my end. I am simply requesting the developers' assistance in diagnosing the issue. As I mentioned in the initial comment, the issue has suddenly started happening. I don't have the issue when I visit the Web vault. The same DNS setup, with unbound and pi-hole on my home network but without going through AWS network, works perfectly fine. Perhaps the devs have blocked certain Hosts from accessing the app, perhaps there's some automated filter rules applied via whatever firewall is in place. I would like to find out what it is that is blocking the access. I have made no changes to the setup, I checked for any automated updates as well and there weren't any. A setup that has been working for 2 years just suddenly starts to fail.
Author
Owner

@0n commented on GitHub (Mar 14, 2022):

I have the same issue on the default bitwarden servers and IPVanish's Montreal servers as my VPN, so I doubt it's a misconfiguration on your side

@0n commented on GitHub (Mar 14, 2022): I have the same issue on the default bitwarden servers and IPVanish's Montreal servers as my VPN, so I doubt it's a misconfiguration on your side
Author
Owner

@GGYYNY commented on GitHub (Mar 27, 2022):

Same issue. Cannot login thru VPN.

@GGYYNY commented on GitHub (Mar 27, 2022): Same issue. Cannot login thru VPN.
Author
Owner

@vvolkgang commented on GitHub (Jun 20, 2024):

Issue migrated to https://github.com/bitwarden/mobile/issues/1678

@vvolkgang commented on GitHub (Jun 20, 2024): Issue migrated to https://github.com/bitwarden/mobile/issues/1678
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/android#1386