Unable to login to the orgs after macos user password was changed

Issue #2596 resolved
Viktoriia Yefimova created an issue

When I changed password for mac os user, I`m not able to login to any of my org. I`m not able to create a new connection also using connection management. Login via CLI command sfdx

force:auth:web:login -d -a BriefingEdgeDevHub

helps me to login to the one of the org. I think you should investigate how to fix it, because I should use the same for all of my connected orgs. Scratch org`s connection was lost, and I need to create new scratch orgs.

Also, I wasn`t able to delete old scratch orgs using your plugin.

Comments (4)

  1. Scott Wells repo owner
    • changed status to open

    Hi. That looks like an issue with the installed Salesforce CLI. Unfortunately it's not uncommon for the CLI to get into a bad state after repeated in-place updates. Generally a full uninstall/reinstall of the CLI will resolve such issues, though. Please follow these instructions for the uninstallation:

    https://developer.salesforce.com/docs/atlas.en-us.sfdx_setup.meta/sfdx_setup/sfdx_setup_uninstall.htm

    You should not need to perform the steps under Remove Authorization and Log Files, but the steps before that should be performed.

    Also please make sure that both IC2 and the underlying JetBrains IDE are fully up-to-date.

    If you are still seeing these issues after reinstalling the CLI, please enable Illuminated Cloud | Configure Application | Salesforce DX | Log Salesforce CLI commands, reproduce the behavior, and the full CLI execution will be available in the IDE's Messages tool window. Please try running that same CLI command directly from the command-line to see if it exhibits the same behavior outside of IC2.

    Please let me know the outcome of those steps.

  2. Scott Wells repo owner

    I’m also asking some folks at Salesforce if they’re familiar with this behavior as I’m seeing some loose mentions of similar in StackExchange and such where the CLI’s auths need to be recreated in response to that error message:

    https://salesforce.stackexchange.com/questions/200839/salesforce-dx-error-failed-to-decipher-auth-data-reason-unsupported

    It appears to be 100% the CLI, though, so while I’m happy to help you get back into a good state, I’m not sure there’s anything to change/fix in IC2 at this point. It does look like re-auth’ing your dev hub first is key to getting back into a good state based on several discussions around this error.

  3. Scott Wells repo owner

    Hi. I don’t know if you’ve gotten past this, but this is what Salesforce had to say about it:

    that's usually corrupted auth files.  I'm speculating that it might be related to When I changed password for mac os user like maybe something happened with their OS keychain, etc such that it can't decode the files anymore?

    Hopefully that helps. Please let me know if there’s anything else I can do to assist.

  4. Scott Wells repo owner

    Resolving this as all signs point to it being specifically an issue with CLI auth. If it turns out that there's something that IC2 is doing when running the CLI -- or specific ideas about how it might handle situations like this better -- please feel free to reopen with details.

    Note that in spite of the resolved status, I'm happy to continue the discussion here until you're back in a proper working state.

  5. Log in to comment