Skip to content

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:

    1. 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"
    2. Run Gradle build with wrapper parameters (OS terminal):
      bash
      gradlew -Dgradle.wrapperUser=<CDSID>@ford.com -Dgradle.wrapperPassword=<TOKEN> clean build

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.gradle file
  • 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.gradle and/or build.gradle and rebuild.

      • Ensure repositories { ... } and gradleBoost { ... } blocks are present in your build.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.gradle file
  • Troubleshooting Steps:

    • Use curl to verify artifact download (see above).
    • For testing only, hardcode JFrog credentials in your settings.gradle and/or build.gradle and rebuild.
    • Add or configure a settings.gradle file 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.

Brought to you by DevTools and Enablement Team.