Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

jfrog-cli

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

like image 221
Hiral Solanki Avatar asked Aug 31 '25 04:08

Hiral Solanki


1 Answers

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.

like image 143
yahavi Avatar answered Sep 03 '25 03:09

yahavi