2

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

TylerH
  • 20,799
  • 66
  • 75
  • 101
Hiral Solanki
  • 33
  • 1
  • 4
  • 1
    Please make sure your platform URL does not end with `/artifactory`. Respectfully, if you are providing Artifactory URL, make sure it ends with `/artifactory`. – yahavi Jun 06 '21 at 11:17
  • Yes I did the same but it's giving an error when using the below command: jfrog config add artifactory-server --url="$ARTIFACTORY_URL" --user="$ARTIFACTORY_USER" --password="$ARTIFACTORY_PASSWORD" --interactive="false" – Hiral Solanki Jun 07 '21 at 12:23

1 Answers1

8

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.

yahavi
  • 5,149
  • 4
  • 23
  • 39