bitwarden / clients

Bitwarden client apps (web, browser extension, desktop, and cli).
https://bitwarden.com
Other
8.67k stars 1.14k forks source link

Unlock command not working #9919

Open lbouriez opened 2 days ago

lbouriez commented 2 days ago

Steps To Reproduce

Using bw cli for linux version 2024.6.1, I am not able to unlock the vault anymore. The command I am using is: bw unlock $myPassword --raw And I get Invalid Master password.

It works on windows and our soultion was to rollback to the latest stable version 2024.4.1

Expected Result

Vault to be unlocked

Actual Result

Invalid Master Password!

Screenshots or Videos

No response

Additional Context

No response

Operating System

Linux

Operating System Version

Ubuntu 22.0.4

Shell

Bash

Build Version

2024.6.1

Issue Tracking Info

andrew-azarov commented 2 days ago

Confirmed here to, Unlock gives Invalid Master password error But unable to rollback as this is first release installed...

bw downloaded from page for linux gives errors:

./bw help
/snapshot/clients/apps/cli/build/bw.js:37158
                state.accounts[userId].profile = diskAccount.profile;
                                                             ^

TypeError: Cannot read properties of null (reading 'profile')
    at StateService.<anonymous> (/snapshot/clients/apps/cli/build/bw.js:37158:62)
    at Generator.next (<anonymous>)
    at /snapshot/clients/apps/cli/build/bw.js:37066:71
    at new Promise (<anonymous>)
    at /snapshot/clients/apps/cli/build/bw.js:37062:12
    at /snapshot/clients/apps/cli/build/bw.js:37153:61
    at StateService.<anonymous> (/snapshot/clients/apps/cli/build/bw.js:37774:44)
    at Generator.next (<anonymous>)
    at /snapshot/clients/apps/cli/build/bw.js:37066:71
    at new Promise (<anonymous>)

Node.js v20.11.1
andrew-azarov commented 2 days ago

The node one also gives errors. /usr/local/lib/node_modules/@bitwarden/cli/build/bw.js --help /usr/local/lib/node_modules/@bitwarden/cli/build/bw.js:37158 state.accounts[userId].profile = diskAccount.profile; ^

TypeError: Cannot read properties of null (reading 'profile') at StateService. (/usr/local/lib/node_modules/@bitwarden/cli/build/bw.js:37158:62) at Generator.next () at /usr/local/lib/node_modules/@bitwarden/cli/build/bw.js:37066:71 at new Promise () at state_service_awaiter (/usr/local/lib/node_modules/@bitwarden/cli/build/bw.js:37062:12) at /usr/local/lib/node_modules/@bitwarden/cli/build/bw.js:37153:61 at StateService. (/usr/local/lib/node_modules/@bitwarden/cli/build/bw.js:37774:44) at Generator.next () at /usr/local/lib/node_modules/@bitwarden/cli/build/bw.js:37066:71 at new Promise ()

Node.js v20.15.0

andrew-azarov commented 2 days ago

Ok the profile error can be circumvented by specifying variable BITWARDENCLI_APPDATA_DIR=~/.bw/

It still doesn't work and gives Invalid master password

MaxKeller12 commented 2 days ago

Same issue here:

bw unlock $myPassword --raw bw unlock --passwordenv BW_PASSWORD

Both worked yesterday and now yield Invalid master password.

andrew-azarov commented 2 days ago

Versions 2024.6.1 and 2024.6.4 both not working for us.

Ubuntu 22.04

andrew-azarov commented 2 days ago

2024.6.0 is working

lbouriez commented 2 days ago

I am having the same issue also in Windows using Chocolatey to install it.

roland-ewald commented 1 day ago

Same issue on Ubuntu 20.04 LTS (snap install):

daniellbw commented 1 day ago

Hi there,

Thank you for your report!

I was able to reproduce this issue, and I have flagged this to our engineering team.

If you wish to add any further information/screenshots/recordings etc., please feel free to do so at any time - our engineering team will be happy to review these.

Thanks once again!