[GH-ISSUE #1404] Unable to backup the database because "attempt to write a readonly database" #940

Closed
opened 2026-03-03 02:04:51 +03:00 by kerem · 2 comments
Owner

Originally created by @X4V1 on GitHub (Feb 18, 2021).
Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/1404

Hello

I'm facing an issue that i'm struggling to debug.
When I'm trying to do a backup with the command: /usr/bin/sqlite3 /data/db.sqlite3 ".backup 'data/db_backup/backup.sqlite3"
I'm getting an error saying "attempt to write a readonly database".
I can't find why it says that the database is readonly, did I missed something ? Am I forced to stop the container before running this command ?

Kind regards,

Xavier

Originally created by @X4V1 on GitHub (Feb 18, 2021). Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/1404 Hello I'm facing an issue that i'm struggling to debug. When I'm trying to do a backup with the command: /usr/bin/sqlite3 /data/db.sqlite3 ".backup 'data/db_backup/backup.sqlite3" I'm getting an error saying "attempt to write a readonly database". I can't find why it says that the database is readonly, did I missed something ? Am I forced to stop the container before running this command ? Kind regards, Xavier
kerem closed this issue 2026-03-03 02:04:52 +03:00
Author
Owner

@jjlin commented on GitHub (Feb 18, 2021):

data/db_backup/backup.sqlite3 probably isn't writable.

<!-- gh-comment-id:781544191 --> @jjlin commented on GitHub (Feb 18, 2021): `data/db_backup/backup.sqlite3` probably isn't writable.
Author
Owner

@X4V1 commented on GitHub (Feb 18, 2021):

Thank for your answer, I think you're right. It seems to make a difference when I change folder permission. Thank :)

<!-- gh-comment-id:781554871 --> @X4V1 commented on GitHub (Feb 18, 2021): Thank for your answer, I think you're right. It seems to make a difference when I change folder permission. Thank :)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/vaultwarden#940
No description provided.