Originally created by @KnightTim on GitHub (Dec 21, 2020).
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
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)
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).
<!--
# ###
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
```
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.
@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.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Originally created by @KnightTim on GitHub (Dec 21, 2020).
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
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
@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.