I am getting an error when getting the collections from the Vaultwarden instance installed on my local server.
I am using the CLI posted at https://bitwarden.com/help/cli/.
If I use the Windows version, everything works.
If I use the Linux version (using Ubuntu 22.04), I get the following error: [error: cannot decrypt]
[{'object': 'collection',
'id': '9df2xxxxxxxxxxx',
'organizationId': '8f78xxxxxxxxxxxx',
'name': '[error: cannot decrypt]',
'externalId': None}]
In order to run the CLI, I am using Python.
I am using the following process:
subprocess. Run("bw list collections", shell=True, capture_output=True, text=True, env=bw_env_session, encoding="utf-8")
And getting this output:
CompletedProcess(args='bw list collections', returncode=0, stdout='[{"object":"collection","id":"9df2xxxxxxxxxxx","organizationId":"8f78xxxxxxxxxxxx","name":"[error: cannot decrypt]","externalId":null}]', stderr='')
Following, the status of the connection, showing that the status is unlocked.
subprocess. Run("bw status", shell=True, capture_output=True, text=True, env=bw_env_session, encoding="utf-8")
Output:
CompletedProcess(args='bw status', returncode=0, stdout='{"serverUrl":"https://vault.mydomain.com","lastSync":"2022-11-20T20:38:57.580Z","userEmail":"my@mail.com","userId":"dcfxxxxx","status":"unlocked"}', stderr='')
Any ideas? Thanks!