Sqlite database corruption #1941

Closed
opened 2026-04-06 02:39:43 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @lettore on 10/21/2022

I suffered a silent DB Sqlite corruption, silent because there's no sign to understand that Vaultwarden was running with a corrupted database.
I'm using Vaultwarden through Chrome extensions and the Android App, both are connecting to Vaultwarden to keep data in sync, and it's working at least writing, never had a error warning.
Today I logged in with the web-ui just to find my vault empty.
In the container log I see lot of errors:
thread '<unnamed>' panicked at 'Error loading ciphers: DatabaseError(__Unknown, "database disk image is malformed")', src/db/models/cipher.rs:470:41
This SHOULD exit the container immediately, what's the point running a program storing sensitive and important data that is accepting writing to a corrupted database?
Why don't send an email saying that there's a problem with the server?
Why don't raise an alert in the webpage saying that your data is lost?
You can login, add a new entry and nothing tell you about the problem, after you added the new entry you can see it in the page, but after a reload is gone.
I have 2 backups of the DB file, both running every 6 hours, because is very sensitive data.
I found that the only backup working is from 6 months ago.
I'm really lucky that the Chrome extension and the Android app still have all my passwords updated so I can export them and rebuild all.
I kindly ask you to exit the container immediately after a panic error like this, so it's possible to diagnose correctly the problem.

*Originally created by @lettore on 10/21/2022* I suffered a silent DB Sqlite corruption, silent because there's no sign to understand that Vaultwarden was running with a corrupted database. I'm using Vaultwarden through Chrome extensions and the Android App, both are connecting to Vaultwarden to keep data in sync, and it's working at least writing, never had a error warning. Today I logged in with the web-ui just to find my vault empty. In the container log I see lot of errors: `thread '<unnamed>' panicked at 'Error loading ciphers: DatabaseError(__Unknown, "database disk image is malformed")', src/db/models/cipher.rs:470:41` This SHOULD exit the container immediately, what's the point running a program storing sensitive and important data that is accepting writing to a corrupted database? Why don't send an email saying that there's a problem with the server? Why don't raise an alert in the webpage saying that your data is lost? You can login, add a new entry and nothing tell you about the problem, after you added the new entry you can see it in the page, but after a reload is gone. I have 2 backups of the DB file, both running every 6 hours, because is very sensitive data. I found that the only backup working is from 6 months ago. I'm really lucky that the Chrome extension and the Android app still have all my passwords updated so I can export them and rebuild all. I kindly ask you to exit the container immediately after a panic error like this, so it's possible to diagnose correctly the problem.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/vaultwarden#1941