Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getting 404 error on pipeline log #1431

Closed
shailesh719 opened this issue Feb 9, 2022 · 6 comments
Closed

getting 404 error on pipeline log #1431

shailesh719 opened this issue Feb 9, 2022 · 6 comments

Comments

@shailesh719
Copy link

Hi

when i am trying to Configure Artifactory instance with jfrog cli for my gitlab pipe-line , i am getting 404 error on pipeline log , below are the error message
"Error] The following error was received while trying to encrypt your password: Artifactory response: 404 "

Variable declared on my pipeline
ARTIFACTORY_BASE_URL: https://XXX.XX.XXX/artifactory
ARTIFACTORY_SERVER_ID: XYZSERVER-ID
ARTIFACTORY_KEY: someEncodedKEY
ARTIFACTORY_USER: XYZ_USER

jfrog cli Command which i am using on gitlab pipeline :
`./jfrog config add $ARTIFACTORY_SERVER_ID --artifactory-url="$ARTIFACTORY_BASE_URL" --user="$ARTIFACTORY_USER" --apikey="$ARTIFACTORY_KEY" --interactive=false

Originally posted by @shailesh719 in #441 (comment)

@jdelucaa
Copy link

Hi 👋
Did you solve this? I am getting the same.

@eyalbe4
Copy link
Contributor

eyalbe4 commented May 12, 2023

@jdeluc2aa,
Ensure that the URL you're providing is the JFrog Platform URL and not the Artifactory URL. In the initial message posted in this issue the URL seem to end with /artifactory, when it actually shouldn't. Also try using the --url command option instead of --artifactory-url.

@jdelucaa
Copy link

jdelucaa commented May 15, 2023

@jdeluc2aa, Ensure that the URL you're providing is the JFrog Platform URL and not the Artifactory URL. In the initial message posted in this issue the URL seem to end with /artifactory, when it actually shouldn't. Also try using the --url command option instead of --artifactory-url.

hey, yeah, I figured it out after a few tries 😄
Thanks.

@eyalbe4
Copy link
Contributor

eyalbe4 commented May 16, 2023

Happy to hear this @jdelucaa 👍

@eyalbe4 eyalbe4 closed this as completed May 16, 2023
@dallinwilcox
Copy link

@jdeluc2aa, Ensure that the URL you're providing is the JFrog Platform URL and not the Artifactory URL. In the initial message posted in this issue the URL seem to end with /artifactory, when it actually shouldn't. Also try using the --url command option instead of --artifactory-url.

@eyalbe4 I'm confused by this since the docs indicate the --url option should end with /artifactory

Command option Description
--url JFrog Artifactory API endpoint URL. It usually ends with /artifactory

Are the docs in need of an update, or does --url behave differently than --artifactory-url?

@dallinwilcox
Copy link

Think I figured it out upon much closer reading of the docs.

What the docs I linked previously are saying is if you don't configure a server, you must provide --url with /artifactory on each subsequent call to JFrog CLI. The "or" is easy to miss:

To authenticate yourself using your JFrog login credentials, either configure your credentials once using the jf c add command or provide the following option to each command.

I think providing examples for the configure command at that point in the documentation or else linking to the configuration docs from there may be more clear.

Elsewhere in the docs for adding / configuring we find this which matches @eyalbe4's comment:

| --url | [Optional] JFrog platform URL. |

The same --url option name expecting different types of urls in different contexts also doesn't help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants