mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-04-26 17:55:58 +03:00
[GH-ISSUE #540] Unable to login after restore DB on another docker host #347
Labels
No labels
SSO
Third party
better for forum
bug
bug
documentation
duplicate
enhancement
future Vault
future Vault
future Vault
good first issue
help wanted
low priority
notes
pull-request
question
troubleshooting
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/vaultwarden#347
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @evolsano on GitHub (Jul 19, 2019).
Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/540
Hi,
I am trying to restore the bitwarden by replace existing db.sqlite3 with the backup.sqlite3 I have. But somehow it do not work and I cannot login to bitwarden after rename it.
Here are the scenarios,
Failed to add new user.
If I restore create a new container in host 1, and restore the DB, everything works well. The backup.sqlite3 copied to host 2 should not corrupt and it has the same md5 hash to the source.
Can someone enlighten me how can I restore it on another docker host?
@evolsano commented on GitHub (Jul 19, 2019):
Issue resolved after update to latest docker image.
Please ignore my stupidity and I wasted half day to troubleshoot it.
@mprasil commented on GitHub (Jul 19, 2019):
Well you figured it out and now you know better, so no stupidity as far as I can see. You used older image with newer DB, if it was the other way around, it would work because bitwarden_rs would automatically upgrade the DB. I wonder if we could detect your case and refuse to start with clear message indicating the DB is ahead of program version.