Error in jfrog-cli : The following error was received while trying to encrypt your password
Asked
Active
Viewed 6,627 times
2
-
1Please 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 Answers
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:
- 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
- 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