[GH-ISSUE #1275] Cannot log back into Firefox add-on. #893

Closed
opened 2026-03-03 02:04:27 +03:00 by kerem · 1 comment
Owner

Originally created by @KnightTim on GitHub (Dec 21, 2020).
Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/1275

Subject of the issue

Cannot log back into Firefox addon.

I was previously logged into the Firefox addon, when I try to login in displays an error: "An error has occurred. Error saving device"
Looking at the logs I believe this has something to do with unique IDs for devices.

Your environment

  • Bitwarden_rs version: 1.17.0

Steps to reproduce

I am not sure how to reproduce, I think it was caused when I restored a backup of the sqlite DB from yesterday.

Steps to workaround

I am able to bypass the issue by uninstalling the Firefox add-on, restarting Firefox, then re-installing the add-on and logging in.

Expected behavior

The add-on should not have logged me out, or at least should have allowed me to login back in without reinstalling it.

Actual behavior

I can't login to the add-on.

Relevant logs

Dec 20 19:53:14 bitwarden_rs[28995]: [2020-12-20 19:53:14.225][error][ERROR] Error saving device.
Dec 20 19:53:14 bitwarden_rs[28995]: [CAUSE] DatabaseError(
Dec 20 19:53:14 bitwarden_rs[28995]:     UniqueViolation,
Dec 20 19:53:14 bitwarden_rs[28995]:     "UNIQUE constraint failed: devices.uuid",
Dec 20 19:53:14 bitwarden_rs[28995]: )
Dec 20 19:53:14 bitwarden_rs[28995]: [2020-12-20 19:53:14.227][response][INFO] POST /identity/connect/token (login) => 400 Bad Request
Originally created by @KnightTim on GitHub (Dec 21, 2020). Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/1275 <!-- # ### NOTE: Please update to the latest version of bitwarden_rs before reporting an issue! This saves you and us a lot of time and troubleshooting. See: https://github.com/dani-garcia/bitwarden_rs/issues/1180 # ### --> <!-- 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 unnecessary for your issue, feel free to remove them. Remember to hide/obfuscate personal and confidential information, such as names, global IP/DNS addresses and especially passwords, if necessary. --> ### Subject of the issue Cannot log back into Firefox addon. I was previously logged into the Firefox addon, when I try to login in displays an error: "An error has occurred. Error saving device" Looking at the logs I believe this has something to do with unique IDs for devices. ### Your environment <!-- The version number, obtained from the logs or the admin diagnostics page --> <!-- Remember to check your issue on the latest version first! --> * Bitwarden_rs version: 1.17.0 <!-- How the server was installed: Docker image / package / built from source --> * Install method: built from source * Clients used: Firefox Add-on * Reverse proxy and version: nginx 1.10.3 * Version of mysql/postgresql: N/A (whatever is default) * Other relevant information: Using Firefox add-on version 1.47.1 https://addons.mozilla.org/en-US/firefox/addon/bitwarden-password-manager/versions/ ### Steps to reproduce I am not sure how to reproduce, I think it was caused when I restored a backup of the sqlite DB from yesterday. ### Steps to workaround I am able to bypass the issue by uninstalling the Firefox add-on, restarting Firefox, then re-installing the add-on and logging in. ### Expected behavior The add-on should not have logged me out, or at least should have allowed me to login back in without reinstalling it. ### Actual behavior I can't login to the add-on. ### Relevant logs ``` Dec 20 19:53:14 bitwarden_rs[28995]: [2020-12-20 19:53:14.225][error][ERROR] Error saving device. Dec 20 19:53:14 bitwarden_rs[28995]: [CAUSE] DatabaseError( Dec 20 19:53:14 bitwarden_rs[28995]: UniqueViolation, Dec 20 19:53:14 bitwarden_rs[28995]: "UNIQUE constraint failed: devices.uuid", Dec 20 19:53:14 bitwarden_rs[28995]: ) Dec 20 19:53:14 bitwarden_rs[28995]: [2020-12-20 19:53:14.227][response][INFO] POST /identity/connect/token (login) => 400 Bad Request ```
kerem closed this issue 2026-03-03 02:04:27 +03:00
Author
Owner

@BlackDex commented on GitHub (Dec 21, 2020):

After a database restore it is better to deauthorize all user sessions. This would probably prevented your problem. The reason is that your backup already had your exertion in there but the extension logged-out because the security token was invalid, or it couldn't find the server for some reason.

<!-- gh-comment-id:748724104 --> @BlackDex commented on GitHub (Dec 21, 2020): After a database restore it is better to deauthorize all user sessions. This would probably prevented your problem. The reason is that your backup already had your exertion in there but the extension logged-out because the security token was invalid, or it couldn't find the server for some reason.
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#893
No description provided.