mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-04-26 09:46:00 +03:00
[GH-ISSUE #846] Database is locked stack trace from libcore #597
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#597
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 @Lilja on GitHub (Feb 4, 2020).
Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/846
Subject of the issue
thread 'main' panicked at 'Failed to turn on WAL: DatabaseError(__Unknown, "database is locked")'The container user is able to write to
/dataas I've tried to addcommand: touch /data/hello.Your environment
Image version 1.13.1
Steps to reproduce
Relevant logs
Full stacktrace:
@Lilja commented on GitHub (Feb 5, 2020):
The mount is an SMB share from my NAS. I removed it so it places the data container on the local file system and it works. Perhaps it's best that way? And then perform backup with sqlite export tool to it instead?
@yggdrasil-tynor commented on GitHub (Feb 11, 2020):
@Lilja You need to disable WAL. You can do it by setting an environment variable. See https://github.com/dani-garcia/bitwarden_rs/wiki/Running-without-WAL-enabled
@dani-garcia commented on GitHub (May 13, 2020):
Closed due to inactivity.
@josuemotte commented on GitHub (May 15, 2020):
Just had the same issue on SWARM cluster using freenas and SMB ;
I fixed it by using the nolock option and mounting the share.
Example :
Some people face it here for another tool : https://github.com/Sonarr/Sonarr/issues/1886
However I never had this issue while using CEPH as storage... Might be worth to use it instead of NFS,CIFS and GlusterFS
@BloodyIron commented on GitHub (May 11, 2023):
I had to use "nobrl" flag instead of "nolock" when using the vaultwarden docker image in kubernetes, as "nolock" was being rejected for the CSI Driver for SMB, but it seems to accept "nobrl" instead. Posting for future humans.
@BlackDex commented on GitHub (May 11, 2023):
The
nobrlis also the correct flag to use for CIFS/SMB to support this.Though i still suggest to use PostgreSQL or MariaDB/MySQL in these cases.
@BloodyIron commented on GitHub (May 11, 2023):
Why? What is the tangible benefit to spin up another database when this is a workable solution?
Also, CIFS is a misnomer. It was a variant name for SMBv1.0 made by Microsoft that never took off, and hasn't been relevant for over 20 years. SMBv2.0/onwards never was and never will be CIFS, it's been SMB the whole time. (I know you're not the only one continuing to use CIFS as a term, but yeah, it's an irrelevant and inaccurate term).