mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2025-12-11 09:13:02 +03:00
data loss. user disappeared. #652
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 @bbrendon on GitHub.
I'm reporting this because, well, it seems a bit important. There were 10 users, now 9. /admin lists old disabled users, but not the user that has vanished.
Version : 1.29.2
From what the user said:
I realized now I can't find an audit log. I'm going to see if something like that exists.
I'm using sqlite.
Things I've done:
docker compose logs. I can't find anything interesting.dc logsfor future reference.Your environment (Generated via diagnostics page)
Config (Generated via diagnostics page)
Show Running Config
Environment settings which are overridden: DOMAIN, SIGNUPS_ALLOWED, ADMIN_TOKEN, SMTP_HOST, SMTP_PORT, SMTP_FROM
@BlackDex commented on GitHub:
@sammyke007 then the platform you use to run containers is not very robust. Or you need to verify on how to update the containers using that platform. But that is not normal. Also, you didn't lost it, there was just a different volume created. The OP mentions a single user has disappeared, which is also strange, but not comparable.
@bbrendon commented on GitHub:
I haven't had time to look at it. This week for sure I'm going to look at
it.
On Sun, Nov 12, 2023 at 12:17 PM Mathijs van Veluw @.***>
wrote:
@BlackDex commented on GitHub:
Users can't disappear by them selfs. So either someone deleted the user, the user did it them self via https://bitwarden.com/help/account-recovery/ , or there is something wrong with the database, like a corrupt database or something. If it is a corruption, then there probably still is some evidence in the database of the users uuid or something else, if not, then it would have been a clean deletion and action done by someone.
Check the logs for delete, remove or purge, i think those are the main names for functions we used for these kind of actions.
@BlackDex commented on GitHub:
@bbrendon did you got any more insights into what it could have been?
Something from the logs of Vaultwarden, or the reverse proxy logs maybe?
@sammyke007 commented on GitHub:
Just FYI:
The last 2 updates I've did, I had lost all of my data.
Somehow after updating the container images, a new /v1/vw-data/ folder is created instead of /vw-data/ with a new database (thus losing your users).
My solution was copying over /vw-data/ to /v1/vw-data/
@BlackDex commented on GitHub:
No it doesn't. Data is not deleted or removed during any upgrade.
Data can be deleted by an admin, or via a recovery action executed by a user it self, or purged or anything, but not just one single user out of two or more.
It could be a database is corrupted in some way, which could make the data inaccessible for example.
The admin should check the logs for any delete or purge or remove action in the logs. And also check the integrity of the database.
And, the backups of course.
@BlackDex commented on GitHub:
If that is the case, then the user is deleted by someone, not by an upgrade, not by a database corruption or something.
Also since other user(s) still work and just a single user is deleted.
@bbrendon commented on GitHub:
Regarding the database.
In the database where the user vanished:
c0630375-187d-49b0-a6b2-06ce01afedc9) (obtained from a very old backup) doesn't exist in the ciphers tableSo I'm guessing it's not DB corruption.
@Kjemme commented on GitHub:
I am a Bitwarden/Vaultwarden user in a company. I use the system more or less every weekday - and used it Friday last week (= 3 days ago). This morning all my data is gone. Both the elements shared with me by the company AND my own data. Does this sound like it has something to do with the update discussed in this thread? If yes, then what can I do /or tell the administraitor to do?
@bbrendon commented on GitHub:
We don't have account recovery enabled.
I then opened the logfile to see the full contents of around
2023-10-18 20:00:11.829Found the below. I believe 107.142.15.16 is the IP of user as well.
So I don't really understand, but it seems maybe the account was somehow deleted sometime last month but his vault was cached on his computer so it took awhile for him to notice? Maybe someone can piece it together based on the log above.