Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to add new item to vault #8722

Closed
1 task done
cmvanb opened this issue Apr 12, 2024 · 16 comments
Closed
1 task done

Unable to add new item to vault #8722

cmvanb opened this issue Apr 12, 2024 · 16 comments
Labels
bug desktop Desktop Application

Comments

@cmvanb
Copy link

cmvanb commented Apr 12, 2024

Steps To Reproduce

  1. Open Bitwarden desktop client
  2. Login with master password
  3. Click + button to add a new item
  4. Enter any text into the Name field
  5. Click the save button
  6. Observe an error toast with the error: An error has occurred. Failed to decode access token: JWT must have 3 parts

Expected Result

I expected to be able to add a new item to my vault.

Actual Result

I was prevented from adding a new item to my vault.

Screenshots or Videos

No response

Additional Context

Arch Linux installed package details:

pacman -Qi bitwarden
Name            : bitwarden
Version         : 2024.4.0-1
Description     : A secure and free password manager for all of your devices
Architecture    : x86_64
URL             : https://github.com/bitwarden/clients/tree/master/apps/desktop
Licenses        : GPL3
Groups          : None
Provides        : None
Depends On      : electron28  libnotify  libsecret  libxtst  libxss  libnss_nis
Optional Deps   : None
Required By     : None
Optional For    : None
Conflicts With  : None
Replaces        : None
Installed Size  : 34.30 MiB
Packager        : Alexander Epaneshnikov <[email protected]>
Build Date      : Thu 11 Apr 2024 05:45:13 PM CEST
Install Date    : Fri 12 Apr 2024 01:02:31 PM CEST
Install Reason  : Explicitly installed
Install Script  : No
Validated By    : Signature

Operating System

Linux

Operating System Version

No response

Installation method

Other

Build Version

2024.4.0-1

Issue Tracking Info

  • I understand that work is tracked outside of GitHub. A PR will be linked to this issue should one be opened to address it, but Bitwarden doesn't use fields like "assigned", "milestone", or "project" to track progress.
@cmvanb cmvanb added bug desktop Desktop Application labels Apr 12, 2024
@Krychaz
Copy link
Member

Krychaz commented Apr 12, 2024

Hello there,

We have just updated our Snap releases to fix this issue. Please update to the latest version and try again.

@cmvanb
Copy link
Author

cmvanb commented Apr 12, 2024

Hello @Krychaz

I don't use snaps. I use the arch linux packages.

Could you confirm for me which version of bitwarden has fixed this issue? The latest version available to me is 2024.4.0-1, in which it is broken.

@jmswick
Copy link

jmswick commented Apr 12, 2024

I am still getting the JWT error in the latest/stable: 2024.4.0 2024-04-11 snap that just became available.

@antonlydell
Copy link

I am having the same issue with the snap package on Ubuntu 23.10.

Bitwarden Snap information:
Version 2024.4.0
Shell 28.2.8
Renderer 120.0.6099.291
Node 18.18.2
Architecture x64

@keilmillerjr
Copy link

keilmillerjr commented Apr 13, 2024

Hello there,

We have just updated our Snap releases to fix this issue. Please update to the latest version and try again.

Which commit addresses this issue? There are no commits mentioning "JWT" or "token" for this month. Original post also mentioning using the arch package, not snap. The arch package is literally building the same exact version as the snap.

@guktib
Copy link

guktib commented Apr 13, 2024

I have the same error here, just like @cmvanb: The error occurs not only when saving new entries but also when I log out and try to log back in. When querying the verification code, the same error message appears, and I can no longer open my vault.

I'm also on ArchLinux and has the same version as @cmvanb.

bitwarden_decode-error_20240413

@trmartin4
Copy link
Member

trmartin4 commented Apr 14, 2024

The issue can be resolved by granting the Bitwarden application access to thepassword-manager-service. The updated Linux desktop version includes an updated description on the snap store here:

Bitwarden requires access to the password-manager-service for secure storage. Please enable it through permissions or by running sudo snap connect bitwarden:password-manager-service.

We have also updated the Linux installation instructions here.

Unfortunately this access cannot be automatically granted, so the command needs to be run in order to grant the application the appropriate permissions. Please be sure that the desktop client is logged out when granting this permission, or log out and back in after doing so.

@keilmillerjr
Copy link

The issue can be resolved by granting the Bitwarden application access to thepassword-manager-service. The updated Linux desktop version includes an updated description on the snap store here:

Bitwarden requires access to the password-manager-service for secure storage. Please enable it through permissions or by running sudo snap connect bitwarden:password-manager-service.

We have also updated the Linux installation instructions here.

Unfortunately this access cannot be automatically granted, so the command needs to be run in order to grant the application the appropriate permissions. Please be sure that the desktop client is logged out when granting this permission, or log out and back in after doing so.

Snap is 100% irrelevant to this post. It worked prior on the arch repo. What changed? We are not using snaps. Snaps suck.

@jlf0dev
Copy link
Member

jlf0dev commented Apr 15, 2024

Regarding the non-snap issues, can anyone check if this solution fixes the issues? We're using libsecret for secure storage on linux, but I have a feeling many of our users don't have a Secret Service implementation because (understandably) they use Bitwarden.

@cmvanb
Copy link
Author

cmvanb commented Apr 15, 2024

Regarding the non-snap issues, can anyone check if this solution fixes the issues? We're using libsecret for secure storage on linux, but I have a feeling many of our users don't have a Secret Service implementation because (understandably) they use Bitwarden.

By rolling back to 2024.3.0 and removing the contents of ~/.config/Bitwarden, I got the desktop app working again. Thank you.

I should note that not every Arch user will have easy access to this older package.

You are correct that I am not running a libsecret implementation on my system. Is that a new dependency? It appears a bit awkward for BW to depend on libsecret, as it is itself a password manager.

@guktib
Copy link

guktib commented Apr 16, 2024

I agree with the comment from @cmvanb: "Is that a new dependency? It appears a bit awkward for BW to depend on libsecret, as it is itself a password manager."

Why do we need an additional (new?) dependency on a library that (seemingly) fulfills the same task that Bitwarden should have?!

@uhlwoogi
Copy link

Also seeing this issue with both the Snap package and the appimage on Kubuntu 22

@sethforprivacy
Copy link

The issue can be resolved by granting the Bitwarden application access to thepassword-manager-service. The updated Linux desktop version includes an updated description on the snap store here:

Bitwarden requires access to the password-manager-service for secure storage. Please enable it through permissions or by running sudo snap connect bitwarden:password-manager-service.

We have also updated the Linux installation instructions here.

Unfortunately this access cannot be automatically granted, so the command needs to be run in order to grant the application the appropriate permissions. Please be sure that the desktop client is logged out when granting this permission, or log out and back in after doing so.

Doing this fixed the Snap for me on Ubuntu 22.04 FWIW.

@fernandominardi
Copy link

Having the same issue here. In my case running the sudo snap connect bitwarden:password-manager-service command does not solve the problem.

snap    2.62
snapd   2.62
series  16
ubuntu  22.04
kernel  6.5.0-27-generic

@dkolkin
Copy link

dkolkin commented Apr 18, 2024

I'm having the exact same problem running BW on Ubuntu 20.04.6LTS. None of the recommended options offered by the BW team seemed to help. I'm not an expert, and just wondering if the issue might stem from the fact that the application was installed from snap.

I got the following error message while starting BW from the command line:

08:53:45.620 › Unable to fetch ServerConfig: Failed to decode access token: JWT must have 3 parts

@jlf0dev
Copy link
Member

jlf0dev commented Apr 18, 2024

Closing for now to route these linux token storage issues through #8651. Thanks for the report!

@jlf0dev jlf0dev closed this as completed Apr 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug desktop Desktop Application
Projects
None yet
Development

No branches or pull requests

13 participants