clients icon indicating copy to clipboard operation
clients copied to clipboard

Error cannot decrypt

Open fabiobeoni opened this issue 2 years ago • 6 comments

Steps To Reproduce

Switching account does shows the issue, randomly.

image

Expected Result

See the list

Actual Result

Not decrypted

Screenshots or Videos

No response

Additional Context

No response

Operating System

Linux

Operating System Version

22.04

Installation method

Snap

Build Version

2022.6.0

fabiobeoni avatar Jul 07 '22 09:07 fabiobeoni

Have the same issue on Windows with Build Version 2022.6.1

luk6173 avatar Jul 11 '22 06:07 luk6173

Windows Build Version 2022.6.2 issue still exists

luk6173 avatar Jul 12 '22 05:07 luk6173

Same here with 2022.6.2, switching back and forth seems to helhelp until the next needed relogin.

the entries themselves stillhave the data and show them.

gomerust avatar Jul 22 '22 12:07 gomerust

Same issue here

bobvandevijver avatar Jul 26 '22 07:07 bobvandevijver

Hi all, apologies for facing such issue, and thanks for bringing this up. The team will reproduce this, and we will take time to resolve the issue as well.

dbosompem avatar Jul 26 '22 10:07 dbosompem

A workaround I found was to add the env var OPENSSL_CONF=/dev/null before every usage or to export it.

OPENSSL_CONF=/dev/null bw list items --collectionid uuid

Edit: Found the env var in this discussion https://github.com/nodejs/node/discussions/43184#discussioncomment-2802262

nekhebit avatar Aug 01 '22 09:08 nekhebit

Randomly hitting a similar issue on Firefox browser extension.

After logging in, the extension couldn't retrieve any information and the collections item in Vault tab was marked with the [error: cannot decrypt] message.

However I'm not switching accounts like it is said in the original comment.

Running Firefox 104.0 on Ubuntu 20.04 with Bitwarden extension 2022.08.0

Restarting firefox or rebooting didn't change anything.

Locking did not resolve the issue but actually logging out and in again did the trick.

I didn't realize locking and logging out were two separate things at first, if needed you can check this config in the extension settings: Settings tab > Security section > make sure the Vault Timeout action config is set to Log out

Djohn12 avatar Aug 29 '22 20:08 Djohn12

Happens quite frequently on macOS 12.5.1

Bitwarden App store app: Version 2022.8.1 Shell 19.0.8 Renderer 102.0.5005.148 Node 16.14.2 Architecture arm64

pro4tlzz avatar Sep 02 '22 09:09 pro4tlzz

Same issue on switching between private (paid) account and organisation account. Desktop App version: 2022.10.1 (5129) MacBook Air (M1, 2020) OS: Monterey 12.6

proton1k avatar Oct 27 '22 12:10 proton1k

I experienced this issue on Ubuntu/Pop 22.04 on the BW cli

➜  ~ bw cli --version
2022.6.2
➜  ~ cat /etc/os-release
NAME="Pop!_OS"
VERSION="22.04 LTS"
ID=pop
ID_LIKE="ubuntu debian"
PRETTY_NAME="Pop!_OS 22.04 LTS"
VERSION_ID="22.04"
HOME_URL="https://pop.system76.com"
SUPPORT_URL="https://support.system76.com"
BUG_REPORT_URL="https://github.com/pop-os/pop/issues"
PRIVACY_POLICY_URL="https://system76.com/privacy"
VERSION_CODENAME=jammy
UBUNTU_CODENAME=jammy
LOGO=distributor-logo-pop-os

Resolution here worked: https://github.com/bitwarden/clients/issues/3057#issuecomment-1200918928

vinnnyr avatar Nov 10 '22 15:11 vinnnyr

It sounds like this might be an incompatibility with newer versions of the default version of the openssl conf that ships with newer OS's like Ubuntu 22.04?

Aposhian avatar Nov 10 '22 15:11 Aposhian

How is this not priority #1? The CLI is completely broken on these OS versions. We had to switch solutions.

metrixsean avatar Nov 10 '22 15:11 metrixsean

Same for me on ubuntu 22.04. using command line bw 2022.10.0 Only name show message "Cannot decrypt" and only for items in an organisation

I confirm that with OPENSSL_CONF=/dev/null it's work

bw list items --search "XXXX" --pretty

  {
    "object": "item",
    "id": "a26fac08-ee4f-4886-XXXXXXXXXXXXXX",
    "organizationId": "a89ef9be-d111-XXXXXXXXXXX",
    "folderId": null,
    "type": 1,
    "reprompt": 0,
    "name": "[error: cannot decrypt]",
    "notes": null,
    "favorite": false,
    "login": {
      "uris": [
        {
          "match": null,
          "uri": "https://www.google.com"
        }
      ],
      "username": "[email protected]",
      "password": "XXXXXXX",
      "totp": null,
      "passwordRevisionDate": "2022-11-16T20:23:24.217Z"
    },
    "collectionIds": [
      "b9651cdd-cd3b-456c-XXXXXXXXXXXXX"
    ],
    "revisionDate": "2022-11-16T20:23:24.564Z",
    "deletedDate": null,
    "passwordHistory": [
      {
        "lastUsedDate": "2022-11-16T20:23:24.217Z",
        "password": "XXXXXXXXXXXX"
      }
    ]
  }

sbourdette avatar Nov 26 '22 16:11 sbourdette

yep. same for me (Ubuntu 22.04; bw CLI) - [error: cannot decrypt] . tried on Ubuntu 20.04 - all the records are properly decrypted.

Dan-Zi avatar Nov 27 '22 15:11 Dan-Zi

Still seeing this on 2022.11.0 with ubuntu 22.04 LTS, installed from snap, OPENSSL_CONF=/dev/null works

WebSpider avatar Jan 11 '23 08:01 WebSpider

I seem to get this issue on the Windows client after an update. fix/workaround is to log out of the secondary account and log back in, then it works until the next update. Currently on Version 2023.2.0 Shell 21.3.1 Renderer 106.0.5249.181 Node 16.16.0 Architecture x64

ergosteur avatar Feb 22 '23 14:02 ergosteur

Hello, i have the same issue on MacOS client.

GuizmoFR avatar Jul 05 '23 07:07 GuizmoFR

I'm having the same issue on macOS (latest version, latest BW version 2023.5.1).

Steps to reproduce:

I have two accounts on my Bitwarden client: let's call them foo and bar. Foo is my main account, when I'm having the app open with the Foo account and restart the program, everything looks fine.

When I have the bar account/Vault open and close the App, when reopening the App it will unlock the bar Account/Vault, I can see the content of the bar Vault/Account. But when switching to the foo (main account) I'm seeing: [error: cannot decrypt] after that I need to reopen the client to get the foo account working again.

This issue is open for a long time, it's already had its first birthday. Hopefully it can be fixed soon.

TomKeur avatar Jul 19 '23 07:07 TomKeur

Same issue on macOS.. I also have two BW accounts, and when switching between them the error: cannot decrypt messages appear, so I have to restart BW. Had this on every version, and is still present in the newest. Please fix it!

r3ndszergazda avatar Jul 25 '23 09:07 r3ndszergazda

Guys... similar issue on mobile app too...

Instead of getting "error decrypting" you just get empty labels :( ... switching between private (free) account and organisation account (paid).

fabiobeoni avatar Sep 19 '23 12:09 fabiobeoni

Turning off autofill on page load fixed the bug for me

FLL128 avatar Nov 02 '23 08:11 FLL128

Turning off autofill on page load fixed the bug for me

Yes, for me too. Selected one of the id's and changed autofill. Great!!

RollyBolly avatar Nov 02 '23 13:11 RollyBolly

I've also sporadically experienced this bug on Android and Linux, though it looks like users are reporting this when using any platform. This is a recurring issue that reappears once every couple of months for me, and has not been addressed across many Bitwarden versions.

When the bug occurs, all of the entries of the affected account are blank. The most recent time I experienced this issue was on Android. During that time, syncing the app by pulling down drom the top of the list or selecting "Sync" from the menu did not resolve the issue, but going to Settings -> Other -> Sync Now did.

Related: #2510, #2910, #4004, #4048, #7253

parcelcat avatar Dec 22 '23 06:12 parcelcat

Since a few days I have the same issue with "Error: Cannot decrypt" in all my Collections on Bitwarden Desktop 2024.2.0 (20587) on MacOS 14.3.1 (23D60), but only on one of two accounts. Not using autofill in browser. A restart of Bitwarden does not solve the issue.

dtmichel avatar Feb 29 '24 08:02 dtmichel

Thank you, SergeantConfused. I see no solution to my issue #8263 in this forum. Like others, I have two accounts in my Windows desktop version, a paid enterprise and a free account for personal. Furthermore, I do not have autofill enabled. One commenter mentions that it breaks after certain windows updates. That may be what is happening for me too. Odd that this has been an issue since 2022 and there seems to be no definite solution. I happen to be a reseller of the Enterprise and it makes me concerned about selling this to my clients if this is a regular problem.

mcgannator avatar Mar 11 '24 14:03 mcgannator

I have been having the same issue with my Collections for the past week on the iOS mobile App. This error does not occur on the web vault, or on my Mac OS App.. I have been in contact with a customer service rep, and have tried all of the following with no success.

I have logged out and logged back into the Bitwarden App a number of times. No luck. I have deleted the App and it's data, and re-installed a number of times. No luck. I have cleared my browser cache and cookies. No luck. I have cycled auto-fill on and off in my iPhone settings. No luck. I have attempted to delete a login in my Collection, make a new one, and move it to my Collection. The new one is fine in my personal Vault, and as soon as I move it into a Collection, it turns to [error: cannot decrypt]. I have tried using a different connection rather than my home network. No luck. I have tried resetting my mobile network settings. No luck.

Has this been happening to anyone else? This has been an extremely frustrating week.

Bitwarden Version: 2024.2.1 (6741) iOS Version: 17.4.1

McM-Sound avatar Apr 02 '24 15:04 McM-Sound

I have the same error when trying to access a shared org. The items in my vault work. This is only in the iOS-App, webvault and desktop work fine.

Bitwarden Version 2024.4.0 (7272) iOS Version: 17.4.1

kyz3 avatar Apr 19 '24 12:04 kyz3