mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-03-25 07:41:20 -05:00
Mutiple Crashes - Failed to turn on WAL: DatabaseError #4826
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 @FireAmpersand on GitHub (Jan 5, 2022).
Hi Team,
I am looking into switching from bitwarden to vaultwarden but my docker container keeps crashing with the following error.
[ERROR] thread 'main' panicked at 'Failed to turn on WAL: DatabaseError(__Unknown, "unable to open database file")': src/db/mod.rs:307I am not sure if this is the correct place as the only way to fix it is to restart the computer. Restarting docker or the container does not help. After the reboot, the app works great for i would say about 15-20 minutes before happening again. No other containers are breaking like this so not sure if Docker is the cause.
I am running Docker Desktop on Windows on Server 2019. I start the container with the following docker-compose file.
Windows server is up to date as well as Docker Desktop (4.3.2). Image is the most recent build. I have also reinstalled Docker Desktop with no luck.
@FireAmpersand commented on GitHub (Jan 5, 2022):
Support String if it helps
Your environment (Generated via diagnostics page)
Config (Generated via diagnostics page)
Show Running Config
Environment settings which are overridden:
@BlackDex commented on GitHub (Jan 5, 2022):
The problem here is Windows. You are using some kind of shared storage which uses Samba/CIFS as it's backend. That does not support locking. See https://github.com/dani-garcia/vaultwarden/wiki/FAQs#can-i-run-vaultwarden-as-an-azure-webapp
Remove the sqlite database file, disable WAL and start again. Or use something else then sqlite.