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

Frequent AuthDecryptError on all connected orgs #3018

Open
dpr-nh opened this issue Sep 11, 2024 · 6 comments
Open

Frequent AuthDecryptError on all connected orgs #3018

dpr-nh opened this issue Sep 11, 2024 · 6 comments
Labels
more information required Issue requires more information or a response from the customer

Comments

@dpr-nh
Copy link

dpr-nh commented Sep 11, 2024

Summary

While working, I'm deploying frequently to a sandbox and will be running the same deploy command multiple times. At some point I will get this error seemingly at random:

Error (2): Parsing --target-org 
        Failed to decipher auth data. reason: Unsupported state or unable to authenticate data.
See more help with --help

After this happens, I check my connected orgs using sf org list and see that every single one has the same AuthDecryptError status. It's not just the org I was working on, it's all my connected orgs getting disconnected at the same time.

This problem happens multiple times a day. I'm not sure if this is a bug with the sf CLI or Salesforce itself, hoping you can point me in the right direction.

Steps To Reproduce

I honestly do not know how to reproduce this. It happens what seems totally randomly.

System Information

{
  "architecture": "linux-x64",
  "cliVersion": "@salesforce/cli/2.44.8",
  "nodeVersion": "node-v20.11.0",
  "osVersion": "Linux 6.10.8-200.fc40.x86_64",
  "rootPath": "/home/dpr/.nvm/versions/node/v20.11.0/lib/node_modules/@salesforce/cli",
  "shell": "zsh",
  "pluginVersions": [
    "@oclif/plugin-autocomplete 3.0.18 (core)",
    "@oclif/plugin-commands 3.3.4 (core)",
    "@oclif/plugin-help 6.0.22 (core)",
    "@oclif/plugin-not-found 3.1.10 (core)",
    "@oclif/plugin-plugins 5.1.3 (core)",
    "@oclif/plugin-search 1.0.24 (core)",
    "@oclif/plugin-update 4.2.14 (core)",
    "@oclif/plugin-version 2.1.2 (core)",
    "@oclif/plugin-warn-if-update-available 3.0.19 (core)",
    "@oclif/plugin-which 3.1.10 (core)",
    "@salesforce/cli 2.44.8 (core)",
    "apex 3.1.13 (core)",
    "auth 3.6.17 (core)",
    "community 2.3.14 (user) published 382 days ago (Sat Aug 26 2023) (latest is 3.2.30)",
    "data 3.4.3 (core)",
    "deploy-retrieve 3.8.3 (core)",
    "info 3.3.3 (core)",
    "limits 3.3.9 (core)",
    "marketplace 1.2.8 (core)",
    "org 4.1.14 (core)",
    "packaging 2.4.5 (core)",
    "schema 3.3.9 (core)",
    "settings 2.2.7 (core)",
    "sobject 1.4.6 (core)",
    "source 3.3.18 (core)",
    "telemetry 3.3.11 (core)",
    "templates 56.2.9 (core)",
    "trust 3.7.3 (core)",
    "user 3.5.11 (core)"
  ]
}
@dpr-nh dpr-nh added the investigating We're actively investigating this issue label Sep 11, 2024
Copy link

Thank you for filing this issue. We appreciate your feedback and will review the issue as soon as possible. Remember, however, that GitHub isn't a mechanism for receiving support under any agreement or SLA. If you require immediate assistance, contact Salesforce Customer Support.

Copy link

Hello @dpr-nh 👋 None of the versions of sf you shared match the latest release.

Shared: 2.44.8
Latest: 2.57.7

Update to the latest version of Salesforce CLI (docs) and confirm that you're still seeing your issue.
You can also try the rc and nightly releases! (docs)

After updating, share the full output of sf version --verbose --json

@github-actions github-actions bot added more information required Issue requires more information or a response from the customer and removed investigating We're actively investigating this issue labels Sep 11, 2024
@iowillhoit
Copy link
Contributor

This looks similar to this issue: #2174

Are you using KWallet?

Update to the latest version of the CLI (currently 2.58.7) and try setting this env var: SF_USE_GENERIC_UNIX_KEYCHAIN=true
Details here: #2174 (comment)

Copy link

Hello @dpr-nh 👋 None of the versions of sf you shared match the latest release.

Shared: 2.44.8
Latest: 2.58.7

Update to the latest version of Salesforce CLI (docs) and confirm that you're still seeing your issue.
You can also try the rc and nightly releases! (docs)

After updating, share the full output of sf version --verbose --json

@shetzel
Copy link
Contributor

shetzel commented Sep 16, 2024

I would run sf doctor as well and note the diagnostic tests around v2 crypto. Changing the encryption key without complete support from all installed plugins may cause decryption problems.

@dpr-nh
Copy link
Author

dpr-nh commented Sep 20, 2024

Hi @iowillhoit,

I'm not using KWallet.
I've updated my CLI and set the env variable. I'll let you know if I get the problem again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
more information required Issue requires more information or a response from the customer
Projects
None yet
Development

No branches or pull requests

3 participants