mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-04-26 09:46:00 +03:00
[GH-ISSUE #407] Unable to login after one week #234
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#234
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 @Gilneus on GitHub (Feb 21, 2019).
Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/407
Hello,
I deployed bitwarden on AWS ECS about two weeks ago. First everything ran fine, I could use bitwarden without any problems. Since yesterday I have the problem that I can't log in anymore. Unfortunately I don't get a clear error message via the browser console. The error is "Error saving device". The whole call stack looks like this:
Do any of you have any idea how I can fix this?
@Gilneus commented on GitHub (Feb 21, 2019):
I took a short view in the docker logs and found this:
@mprasil commented on GitHub (Feb 21, 2019):
That sounds as if the db file got corrupted. This is quite weird as sqlite tends to be quite resilient. Do you have any filesystem issues?
@Gilneus commented on GitHub (Feb 21, 2019):
I use an efs (nfs) under AWS to persit the file. I can imagine that access by two servers (autoscaling 2 instances of bitwarden) damaged the database file. Is there a way to recover the sqlite database
@mprasil commented on GitHub (Feb 21, 2019):
Ah, yes, this was probably it. We use WAL, which does not work with networked filesystem. We have some info in the wiki regarding this. Generally speaking sqlite doesn't work well on NFS, I've seen multiple projects completely breaking with sqlite DB on NFS.
As for restoring the corrupted DB I personally think that you should just restore a backup if you have it. If not, try googling something about restoring corrupted sqlite DB. From my quick search it seems like the common approach is to dump the DB:
Make sure to create backup of the corrupted DB before trying to fix it.
As for running on NFS in the future, I wouldn't recommend it, but if you do want that consider disabling WAL or make sure it never scales to more than one instance running. (the whole thing is going to be bottlenecked by the DB operations anyway, so there's no benefit in running more instances)
@mprasil commented on GitHub (Feb 22, 2019):
Hi @Gilneus, I'm going to close this as I don't think there's much we can do here. If you think we could improve something or add some documentation to avoid this, feel free to reopen.