dani-garcia / vaultwarden

Unofficial Bitwarden compatible server written in Rust, formerly known as bitwarden_rs
GNU Affero General Public License v3.0
38.6k stars 1.88k forks source link

Lost everything #1412

Closed dinger1986 closed 3 years ago

dinger1986 commented 3 years ago

Subject of the issue

We have 5 people sharing our companies access to Bitwarden and for 2 of us we have lost access to everything, the other 3 have everything as normal.

Your environment

Steps to reproduce

We were moving all our passwords from our onsite vault to bitwarden, we have 100s maybe 1000s of passwords stored so its a big job, the guy who was doing it was the first one to lose everything and then I did. In admin we can still see the organisations, they are still assigned, we have tried to delete users and also reshare organizations with existing users (after deleting them) but that doesnt work

Expected behaviour

Log in and see everything

Actual behaviour

Nothing there

Relevant logs

for User1 image

for user2 image

jjlin commented 3 years ago

You haven't provided any details about what you did to move these passwords, or any logs that might show error messages, so there's not much anyone can tell you. Is your SQLite database file stored on a network file system? That could cause problems. Overall, assuming you have backups, it would probably be best to restore from those.

dinger1986 commented 3 years ago

I didn't move them they were manually copied across one by one and new organisations etc.

What logs should I share?

SQLite is on the same server.

100s were moved in one day so the backup sadly is no use as well wiping and starting again.

jjlin commented 3 years ago

If you're running in a Docker container, the output of docker logs <container>. Otherwise wherever your log messages are going.

dinger1986 commented 3 years ago

So my bitwardenrs logs are in /var/log/bitwardenrs/error.log

This is the last 10 lines after I logged in from Chrome

[2021-02-19 22:09:21.544][handlebars::render][DEBUG] Rendering value: Path(Relative(([Named("device")], "device"))) [2021-02-19 22:09:21.544][handlebars::context][DEBUG] Accessing context value: AbsolutePath(["device"]) [2021-02-19 22:09:21.544][handlebars::render][DEBUG] Rendering value: Path(Relative(([Named("url")], "url"))) [2021-02-19 22:09:21.544][handlebars::context][DEBUG] Accessing context value: AbsolutePath(["url"]) [2021-02-19 22:09:23.213][bitwarden_rs::api::identity][INFO] User email.address@domain.com logged in successfully. IP: [2021-02-19 22:09:23.214][response][INFO] POST /identity/connect/token (login) => 200 OK [2021-02-19 22:09:32.065][request][INFO] GET /bwrs_static/logo-gray.png [2021-02-19 22:09:32.065][response][INFO] GET /bwrs_static/ (static_files) => 200 OK [2021-02-19 22:09:32.066][request][INFO] GET /bwrs_static/mail-github.png [2021-02-19 22:09:32.066][response][INFO] GET /bwrs_static/ (static_files) => 200 OK

jjlin commented 3 years ago

We would need logs of what happened while these ciphers were being added, or error messages, or something. Right now there's no information that could help explain what might have happened.

dinger1986 commented 3 years ago

Fair enough.. shall try and trace it back and put on those logs.

Thanks