mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-02-05 00:29:40 +03:00
Database is locked stack trace from libcore #595
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 @Lilja on GitHub (Feb 5, 2020).
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 12, 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 14, 2020):
Closed due to inactivity.
@josuemotte commented on GitHub (May 16, 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 12, 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).