Appearance
JFrog Common Errors
Below are common errors you may encounter when migrating or onboarding to JFrog Artifactory, along with troubleshooting steps. Your specific error messages may vary.
401/403 Authentication Errors
Example error:Exception in thread "main" java.io.IOException: Server returned HTTP response code: 401 for URL: https://jfrog.ford.com/artifactory/gradle-distributions/gradle-8.5-bin.zip
Possible Causes:
- Incorrect Gradle wrapper credentials
- GRADLE_OPTS environment variable not set up correctly
- Insufficient permissions
Troubleshooting Steps:
- Test download via curl (OS terminal):bash
curl -H "Authorization: Bearer <TOKEN>" "https://jfrog.ford.com/artifactory/external-proxy-group/org/hibernate/hibernate-validator-parent/5.0.3.Final/hibernate-validator-parent-5.0.3.Final.pom"- If successful, check your environment variable configuration. See Local Environment Configuration.
- Run Gradle build with wrapper parameters (OS terminal):bash
gradlew -Dgradle.wrapperUser=<CDSID>@ford.com -Dgradle.wrapperPassword=<TOKEN> clean build- If successful, check your build environment configuration. See Codespace Configuration.
- Test download via curl (OS terminal):
Other possible errors:
Failed to get resource: HEAD. [HTTP HTTP/1.1 401 : https://jfrog.ford.com/artifactory/public-maven-ford/... ]Failed to get resource: HEAD. [HTTP HTTP/1.1 403 : https://jfrog.ford.com/artifactory/FCE-CRE-API/... ]Could not resolve or HEAD resource (status code 401/403)
Possible Causes:
- Wrong credentials
- JFrog credentials environment variables not configured correctly
- Missing repositories block in your
build.gradlefile
Troubleshooting Steps:
- Use curl to test artifact download (see above).
- If successful:
Ensure OS environment variables are set correctly. See Local Environment Configuration.
For testing only, hardcode JFrog credentials in your
settings.gradleand/orbuild.gradleand rebuild.Ensure
repositories { ... }andgradleBoost { ... }blocks are present in yourbuild.gradle. Example:repositories { maven { url repositoryUrlProxy credentials { username = System.getenv("ARTIFACTORY_USER") password = System.getenv("ARTIFACTORY_PASSWORD") } } maven { url repositoryUrlPublic credentials { username = System.getenv("ARTIFACTORY_USER") password = System.getenv("ARTIFACTORY_PASSWORD") } } } gradleBoost { dependencies { defaultRepositories = {} } }
Gradle Boost/Springframework Error
Example errors:
Plugin [id: 'gradle-boost', version: '5.1.0'] was not found in any of the following sources:Plugin [id: 'org.springframework.boot', version: '3.1.6'] was not found in any of the following sources:Possible Causes:
- Wrong credentials
- JFrog credentials environment variables not configured correctly
- Missing repositories block in your
settings.gradlefile
Troubleshooting Steps:
- Use curl to verify artifact download (see above).
- For testing only, hardcode JFrog credentials in your
settings.gradleand/orbuild.gradleand rebuild. - Add or configure a
settings.gradlefile for your project. See example in Codespace Configuration.
If these steps do not resolve your issue, consult your team or the JFrog support channel for further assistance.