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

Error message appears even if server-id was provided #2812

Open
yarons opened this issue Jan 2, 2025 · 2 comments
Open

Error message appears even if server-id was provided #2812

yarons opened this issue Jan 2, 2025 · 2 comments

Comments

@yarons
Copy link

yarons commented Jan 2, 2025

return nil, errors.New("platform URL is mandatory for lifecycle commands")

I'm seeing this error message although I already provided --server-id which should theoretically provide this parameter as part of the general configuration profile.

I'm not sure what I'm doing wrong.

The full command is:

./jf release-bundle-promote test-bundle3 1.3.2 QA --signing-key release-signing-key --include-repos 'docker-qa-local;ai-qa-local'
 12:48:31 [Info] Trace ID for JFrog Platform logs: e4e67fcbaec061f2
 12:48:31 [Error] platform URL is mandatory for lifecycle commands

The login command is:
jf config add --user my_user --password my_password --artifactory-url https://company.internal.url/artifactory

@yahavi
Copy link
Member

yahavi commented Jan 2, 2025

@yarons
Thank you for using the JFrog CLI.
The JFrog platform contains multiple services URLs. In the config command you specifically added only the Artifactory URL, which cause the other URLs, such as the basic platform URL to be blank.
To solve this issue, use the --url flag instead of platform URL and remove the /artifactory suffix:

jf config add --user my_user --password my_password --url https://company.internal.url

Please let me know if that helped.

@yarons
Copy link
Author

yarons commented Jan 5, 2025

I added all the URLs to the config and now it works.
For some reason I though that providing one will try to generate the others accordingly (using the parameter from --url as a baseline).

Thanks.

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

2 participants