mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2025-12-10 17:23:04 +03:00
thread 'main' panicked at 'Failed to turn on WAL: DatabaseError(__Unknown, "disk I/O error")': src/db/mod.rs:308 #1332
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 @sylvesterroos on GitHub.
Subject of the issue
Launching the vaultwarden container immediately crashes with the error message in the title.
Deployment environment
Install method: latest docker image
Other relevant details: I'm running the latest image on a raspberry pi running Ubuntu server 20.04 LTS.
Steps to reproduce
I set the data directory to be on my (which still has space for files) external hard drive.
docker run -d --name vaultwarden -v /mnt/storage/Appdata/vaultwarden/:/data/ -p 8100:80 vaultwarden/server:latestExpected behaviour
The container should launch without crashing
Actual behaviour
Crash
Troubleshooting data
docker logs vaultwarden:
vaultwarden.log
@sylvesterroos commented on GitHub:
The storage folder is indeed shared using samba. You're saying that not sharing this folder will fix the issue?
@BlackDex commented on GitHub:
I think you are using a shared storage like samba/cifs or nfs. For that to work you need to disable WAL. But i would suggest to use a different type of database in that case like postgresql or mariadb.
@BlackDex commented on GitHub:
Not using a samba/cifs or nfs folder will solve your issue.
@RealOrangeOne commented on GitHub:
Looks like it's an error with our disk, not vaultwarden.
Are you running other applications off the drive just fine? It's not about free space, it's more likely the drive is failing, corrupting, or a bad cable.