-
Hi! First of all, thank you for your work and for the useful scripts! I have this problem: most of the times the backup fails with the error "Error: attempt to write a readonly database".
And the error repeats for the remaining retries. Into the backup root folder I can see the temporary backup folder ('vaultwarden-20211015-1129' in the logged case) and a zero dimension 'db.sqlite3' file into it. Any ideas what's the problem? Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 9 replies
-
It does indeed seem strange that it would work sometimes, and not other times. Are there any network file systems (like NFS or Samba/CIFS) involved? |
Beta Was this translation helpful? Give feedback.
-
No, there are not network file system involved, it's a local disk. As you can see, in the last weekend there are no successful backup. The last successful backup is today at 11:00 (the cron job runs every hour). I didn't made any changes in the meantime. I've also tried to modify the zero length db.sqlite3 file created by the failed backup job and I can save the changes. I think it could be something related to file access permissions, because if I run the backup command with the root user, the backup completes (except of course the rclone steps, cause it's not configured), but I can't figure out what. Any ideas? |
Beta Was this translation helpful? Give feedback.
No, there are not network file system involved, it's a local disk.
This is a screenshot of the last backup files:
As you can see, in the last weekend there are no successful backup. The last successful backup is today at 11:00 (the cron job runs every hour). I didn't made any changes in the meantime.
I've also tried to modify the zero length db.sqlite3 file created by the failed backup job and I can save the changes.
I think it could be something related to file access permissions, because if I run the backup command with the root user, the backup completes (except of course the rclone steps, cause it's not configured), but I can't figure out what.
Any ideas?