mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-02-05 00:29:40 +03:00
Unable to login after restore DB on another docker host #348
Reference in New Issue
Block a user
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).
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.