mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2025-12-09 09:13:02 +03:00
Sync lost local client data after rollback of server database #1072
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 @kouhe3 on GitHub.
Subject of the issue
Sync lost local client data after rollback of server database
Deployment environment
Steps to reproduce
Expected behaviour
I can see office.com password in vaultwarden web and browser extension
Actual behaviour
no office.com password in vaultwarden web and extension
@kouhe3 commented on GitHub:
I'm guessing there's no real synchronization here, just force pull and force push, whoever's database is newer overwrites the other.
@BlackDex commented on GitHub:
The clients are able to work offline for a while. But if you restored a database which does not contain the
office.compassword it shouldn't be strange that that password is not there anymore.Since the tokens where possibly expired the clients tried to refresh which in turn let all clients downloaded the current data.
Within the admin interface the is button at the users overview to
Force clients to resync. It also mentions the following Force all clients to fetch new data next time they connect. Useful after restoring a backup to remove any stale data..So, just one action could tell the server to update the revision, that could be a small change somewhere, maybe the mobile client triggered some update, that would then trigger the other clients to sync there current data.
I don't know if the clients compare the sync and send missing data, looking at what you did here i don't think they do.
And there is something to say for this, because you restored it for a reason probably, and you do not want other clients messing it up again.