[GH-ISSUE #1162] Unable to unlock vault with Firefox extension, have to log out and then back in. #819

Closed
opened 2026-03-03 02:03:32 +03:00 by kerem · 14 comments
Owner

Originally created by @w4rc0n on GitHub (Sep 28, 2020).
Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/1162

Subject of the issue

Anytime my Firefox session is restarted, I am required to unlock my vault again like normal. However, master password will not unlock the vault. I get: "An Error Has Ocurred: Invalid master password"

However, if I log out, then log back in, it requests my YubiKey again, and allows me to log back in with that very same password.

Your environment

  • Bitwarden_rs version: 2.15.1
  • Install method: Docker image
  • Clients used: Firefox extension
  • Reverse proxy and version: nginx version: nginx/1.18.0 (Ubuntu)
  • Version of mysql/postgresql:
  • Other relevant information:

Steps to reproduce

Restart Firefox session after being signed in, attempt to unlock the vault with the masterpassword.

I start the docker instance like such:
docker run -d --name bitwarden -e SIGNUPS_ALLOWED=false -e DOMAIN=REDACTED -e YUBICO_CLIENT_ID=REDACTED -e YUBICO_SECRET_KEY=REDACTED -v /bw-data/:/data/ -p 800:80 bitwardenrs/server:latest

Expected behaviour

Should be able to unlock my vault using my master password without relogging

Actual behaviour

I am unable to unlock my vault without relogging.

Relevant logs

Originally created by @w4rc0n on GitHub (Sep 28, 2020). Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/1162 <!-- Please fill out the following template to make solving your problem easier and faster for us. This is only a guideline. If you think that parts are unneccessary for your issue, feel free to remove them. Remember to hide/obfuscate personal and confidential information, such as names, global IP/DNS adresses and especially passwords, if neccessary. --> ### Subject of the issue <!-- Describe your issue here.--> Anytime my Firefox session is restarted, I am required to unlock my vault again like normal. However, master password will not unlock the vault. I get: "An Error Has Ocurred: Invalid master password" However, if I log out, then log back in, it requests my YubiKey again, and allows me to log back in with that very same password. ### Your environment <!-- The version number, obtained from the logs or the admin page --> * Bitwarden_rs version: 2.15.1 <!-- How the server was installed: Docker image / package / built from source --> * Install method: Docker image * Clients used: <!-- if applicable --> Firefox extension * Reverse proxy and version: <!-- if applicable --> nginx version: nginx/1.18.0 (Ubuntu) * Version of mysql/postgresql: <!-- if applicable --> * Other relevant information: ### Steps to reproduce <!-- Tell us how to reproduce this issue. What parameters did you set (differently from the defaults) and how did you start bitwarden_rs? --> Restart Firefox session after being signed in, attempt to unlock the vault with the masterpassword. I start the docker instance like such: docker run -d --name bitwarden -e SIGNUPS_ALLOWED=false -e DOMAIN=REDACTED -e YUBICO_CLIENT_ID=REDACTED -e YUBICO_SECRET_KEY=REDACTED -v /bw-data/:/data/ -p 800:80 bitwardenrs/server:latest ### Expected behaviour <!-- Tell us what should happen --> Should be able to unlock my vault using my master password without relogging ### Actual behaviour <!-- Tell us what happens instead --> I am unable to unlock my vault without relogging. ### Relevant logs <!-- Share some logfiles, screenshots or output of relevant programs with us. -->
kerem closed this issue 2026-03-03 02:03:32 +03:00
Author
Owner

@ruben-kinship commented on GitHub (Sep 28, 2020):

I experience the same issue!

<!-- gh-comment-id:699982885 --> @ruben-kinship commented on GitHub (Sep 28, 2020): I experience the same issue!
Author
Owner

@santiagon610 commented on GitHub (Sep 28, 2020):

👍 I've seen this with the MacOS desktop client as well.

Environment:

  • Install method: Docker image
  • Reverse proxy: Nginx 1.14.1-9 on RHEL 8.2
  • Client used: MacOS desktop client 1.20.1
<!-- gh-comment-id:700156101 --> @santiagon610 commented on GitHub (Sep 28, 2020): :+1: I've seen this with the MacOS desktop client as well. Environment: - Install method: Docker image - Reverse proxy: Nginx 1.14.1-9 on RHEL 8.2 - Client used: MacOS desktop client 1.20.1
Author
Owner

@BlackDex commented on GitHub (Sep 28, 2020):

This has already been fixed in the latest testing image on docker.
Please use that one too fix these issues.

<!-- gh-comment-id:700324485 --> @BlackDex commented on GitHub (Sep 28, 2020): This has already been fixed in the latest `testing` image on docker. Please use that one too fix these issues.
Author
Owner

@w4rc0n commented on GitHub (Sep 29, 2020):

Not sure I want to use a testing image for my production bitwarden. I suppose I'll wait until it's in latest

<!-- gh-comment-id:701054725 --> @w4rc0n commented on GitHub (Sep 29, 2020): Not sure I want to use a testing image for my production bitwarden. I suppose I'll wait until it's in `latest`
Author
Owner

@santiagon610 commented on GitHub (Sep 30, 2020):

This has already been fixed in the latest testing image on docker.
Please use that one too fix these issues.

Thanks @BlackDex - do you happen to know which PR resolved this?

<!-- gh-comment-id:701077947 --> @santiagon610 commented on GitHub (Sep 30, 2020): > This has already been fixed in the latest `testing` image on docker. > Please use that one too fix these issues. Thanks @BlackDex - do you happen to know which PR resolved this?
Author
Owner

@BlackDex commented on GitHub (Sep 30, 2020):

I do, https://github.com/dani-garcia/bitwarden_rs/pull/1158 .

<!-- gh-comment-id:701171586 --> @BlackDex commented on GitHub (Sep 30, 2020): I do, https://github.com/dani-garcia/bitwarden_rs/pull/1158 .
Author
Owner

@briceparmentier commented on GitHub (Oct 14, 2020):

Hi, I'm facing the same issue on Firefox.
Thanks @BlackDex for fixing this.
I think I will also wait for the fix to be ported in the "latest" docker image. but I'm running the raspberry pi version of it. Will this also be updated with the fix?
My question is how would we get the fix ? Do we need to download/reinstall something, or will it pull the changes automatically? Sorry for the noob question, I'm quite new to docker and this is the first time I'm using this kind of self-hosted tool and deployment.
Will we need to update something on the client side also (firefox plugin, android app...) ?
Thanks a lot !

<!-- gh-comment-id:708341406 --> @briceparmentier commented on GitHub (Oct 14, 2020): Hi, I'm facing the same issue on Firefox. Thanks @BlackDex for fixing this. I think I will also wait for the fix to be ported in the "latest" docker image. but I'm running the raspberry pi version of it. Will this also be updated with the fix? My question is how would we get the fix ? Do we need to download/reinstall something, or will it pull the changes automatically? Sorry for the noob question, I'm quite new to docker and this is the first time I'm using this kind of self-hosted tool and deployment. Will we need to update something on the client side also (firefox plugin, android app...) ? Thanks a lot !
Author
Owner

@mio-moto commented on GitHub (Oct 22, 2020):

Is there an ETA when this is released on latest? Doesn't seem to be in 1.17.0.

<!-- gh-comment-id:714302170 --> @mio-moto commented on GitHub (Oct 22, 2020): Is there an ETA when this is released on `latest`? Doesn't seem to be in `1.17.0`.
Author
Owner

@BlackDex commented on GitHub (Oct 22, 2020):

@DarkMio This has been fixed an is available in the latest 1.17.0 version.
I also read reports that some users needed to double check there extension updates for this to be fixed.

<!-- gh-comment-id:714325688 --> @BlackDex commented on GitHub (Oct 22, 2020): @DarkMio This has been fixed an is available in the latest 1.17.0 version. I also read reports that some users needed to double check there extension updates for this to be fixed.
Author
Owner

@BlackDex commented on GitHub (Oct 22, 2020):

@briceparmentier Which image are you using?
We do not update the old raspberrypi image anymore since we have all images now in bitwardenrs/server where testing is linked to the master branch, and latest is linked to the latest tagged version, which in this case is 1.17.0

<!-- gh-comment-id:714331277 --> @BlackDex commented on GitHub (Oct 22, 2020): @briceparmentier Which image are you using? We do not update the old raspberrypi image anymore since we have all images now in bitwardenrs/server where `testing` is linked to the master branch, and `latest` is linked to the latest tagged version, which in this case is `1.17.0`
Author
Owner

@mio-moto commented on GitHub (Oct 23, 2020):

@BlackDex It currently seems to work, looks like fixed for now. If any issues come up, I'll keep you posted.

The changelog didn't mention the inclusion of that fix (or I've missed it).

<!-- gh-comment-id:715336815 --> @mio-moto commented on GitHub (Oct 23, 2020): @BlackDex It currently seems to work, looks like fixed for now. If any issues come up, I'll keep you posted. The changelog didn't mention the inclusion of that fix (or I've missed it).
Author
Owner

@santiagon610 commented on GitHub (Oct 23, 2020):

👍 on the fix, thanks folks!

<!-- gh-comment-id:715353300 --> @santiagon610 commented on GitHub (Oct 23, 2020): 👍 on the fix, thanks folks!
Author
Owner

@briceparmentier commented on GitHub (Oct 28, 2020):

@briceparmentier Which image are you using?
We do not update the old raspberrypi image anymore since we have all images now in bitwardenrs/server where testing is linked to the master branch, and latest is linked to the latest tagged version, which in this case is 1.17.0

@BlackDex I'm using raspberrypi image since I'm running it on .... a Raspberry Pi :p
By this do you mean that I can switch to the "server" version of the docker image without any trouble on RPi, or that I can't use it on RPi anymore?
I'm a bit concerned about upgrading / changing the docker image I'm using... I'm not very comfortable with tbh, because I don't understand very well how docker behaves. If I stop my machine, change the command line to use the server one, and run it again, will I keep all the data in the previous image?
Thanks again guys!

<!-- gh-comment-id:717744375 --> @briceparmentier commented on GitHub (Oct 28, 2020): > > > @briceparmentier Which image are you using? > We do not update the old raspberrypi image anymore since we have all images now in bitwardenrs/server where `testing` is linked to the master branch, and `latest` is linked to the latest tagged version, which in this case is `1.17.0` @BlackDex I'm using raspberrypi image since I'm running it on .... a Raspberry Pi :p By this do you mean that I can switch to the "server" version of the docker image without any trouble on RPi, or that I can't use it on RPi anymore? I'm a bit concerned about upgrading / changing the docker image I'm using... I'm not very comfortable with tbh, because I don't understand very well how docker behaves. If I stop my machine, change the command line to use the server one, and run it again, will I keep all the data in the previous image? Thanks again guys!
Author
Owner

@briceparmentier commented on GitHub (Oct 28, 2020):

Oh ok I've read the introduction on the wiki, I wasn't aware of the modification to migrate to multiarch image.
I'll walk into this :)

<!-- gh-comment-id:717761251 --> @briceparmentier commented on GitHub (Oct 28, 2020): Oh ok I've read the introduction on the wiki, I wasn't aware of the modification to migrate to multiarch image. I'll walk into this :)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/vaultwarden#819
No description provided.