jfrog-cli

Error in jfrog-cli : The following error was received while trying to encrypt your password: Artifactory response: 404 404


Error in jfrog-cli : The following error was received while trying to encrypt your password


Solution

  • The config command tried to encrypt your Artifactory password using an incorrect URL. Typically, it happens when the user provides JFrog platform URL as Artifactory URL and the opposite.

    To fix it, you have 2 options:

    1. Provide Artifactory URL using the --artifactory-url flag:
    jfrog config add artifactory-server --artifactory-url="$ARTIFACTORY_URL" --user="$ARTIFACTORY_USER" --password="$ARTIFACTORY_PASSWORD" --interactive=false
    
    1. Provide the base platform URL using --url flag:
    jfrog config add artifactory-server --url="$JFROG_PLATFORM_URL" --user="$ARTIFACTORY_USER" --password="$ARTIFACTORY_PASSWORD" --interactive=false
    

    For more information see JFrog Platform Configuration.