mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-02-05 00:29:40 +03:00
Backup sqlite database on Azure App Service with mounted file storage not working #1391
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 @yggdrasil-tynor on GitHub (Oct 20, 2022).
Subject of the issue
Backup sqlite database on Azure App Service with mounted file storage not working. On older version it used to work fine even though it was a mounted storage.
Deployment environment
Your environment (Generated via diagnostics page)
Config (Generated via diagnostics page)
Show Running Config
Environment settings which are overridden: SIGNUPS_ALLOWED, INVITATIONS_ALLOWED, ADMIN_TOKEN, SMTP_HOST, SMTP_PORT, SMTP_FROM, SMTP_USERNAME, SMTP_PASSWORD
Steps to reproduce
Click backup database in the admin page
Expected behaviour
Backup sqlite should work (it used to)
Actual behaviour
See error in log
Troubleshooting data
@BlackDex commented on GitHub (Oct 20, 2022):
I'm afraid that this is not something we can fix actually.
The Database is locked either because some other query is running, or the filesystem doesn't support locking that well.
Which as far as i understood is using CIFS/Samba which has some issues with locking.
Not sure if what happens if you stop Vaultwarden, start it again and try it right after the startup.
@yggdrasil-tynor commented on GitHub (Oct 20, 2022):
But i'm 100% certain this used to work in some older versions. Perhaps it was when we used Blob for storing the DB file rathern than fileshares...?
@BlackDex commented on GitHub (Oct 20, 2022):
The specific database libraries haven't been changed in about 16 months time, so that is probably not the specific issue.
There were some small changed regarding connection handling, but depending in which version you were running before, i think that also is active for a while now.