ArkCLI "Failed to load authenticators, tokens are either expired or authenticators are not logged in, please login first" error

ArkCLI "Failed to load authenticators, tokens are either expired or authenticators are not logged in, please login first" error

89
Created On 11/10/26 11:02 AM - Last Modified 11/10/26 16:12 PM


Symptom


When trying to authenticate to Ark CLI, the end user gets the following error

 

ark_sdk_python % ark login

 

? Identity Security Platform Username (<Identity UPN>) 

You are now being redirected from your browser to your external identity provider for authentication

If the browser did not open, you may also click the following URL to access your identity provider authentication

? Please enter the PIN code displayed after you logged in to your identity provider ********

Login tokens are hidden
Identity Security Platform Token

{

    "username": <Identity UPN>,
    "endpoint": https://<subdomain>.id.cyberark.cloud/,
    "token_type": "JSON Web Token",
    "auth_method": "identity",
    "expires_in": "2025-11-28T18:05:21.339185",
    "metadata": {
        "env": "prod"
    },
    "origin_verify": null
}

 

ark_sdk_python.models.ark_exceptions.ArkException: Failed to load authenticators, tokens are either expired or authenticators are not logged in, please login first



Environment


Secure Infrastructure Access (formerly DPA) Cyber-Ark API/SDK;API

Cause


The Ark CLI cache is corrupted or it might be that the machine is blocking access of the app to the secure storage depending on the OS.



Resolution


  1. Run the command "ark cache clear" and try again.
  2. Use "export ARK_BASIC_KEYRING=1" as environment variable and try again. 
  3. If none of the steps worked, add the --verbose argument to generate logs when doing the process. For example, for the Ark CLI command, it would be "ark login --verbose"
  4. Share the logs on a Idira Support case.


Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj0000001d90CAA&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail