Fail to request URL — Varying Error Causes

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube Server / Community Build, Scanner, Plugin, and any relevant extension)
    SonarQube server enterprise 2025.1 LTA

  • how is SonarQube deployed: zip, Docker, Helm
    zip

  • what are you trying to achieve
    stable full analysis for a java project with 3.5M LOC

  • what have you tried so far to achieve this

Do not share screenshots of logs – share the text itself (bonus points for being well-formatted)!

Our project is experiencing frequent and inconsistent “Fail to request URL” errors, leading to instability. While the specific root cause seems to vary. We’re unsure if it’s related to the proxy upload file size limit, especially since other jobs with similar file sizes successfully upload to the same SonarQube server without issues.

We’d greatly appreciate any insights or suggestions you might have to help us diagnose and resolve these recurring problems.

[ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:4.0.0.4121:sonar (default-cli) on project project-aggregator: Unable to load component class org.sonar.scanner.scan.filesystem.ProjectFileIndexer: Error creating bean with name ‘org.sonarsource.scanner.api.internal.IsolatedClassloader@a3ff9f7-org.sonar.scanner.scan.filesystem.ProjectFileIndexer’: Unsatisfied dependency expressed through constructor parameter 7: Error creating bean with name ‘org.sonarsource.scanner.api.internal.IsolatedClassloader@a3ff9f7-org.sonar.scanner.scan.filesystem.FileIndexer’: Unsatisfied dependency expressed through constructor parameter 5: Error creating bean with name ‘org.sonarsource.scanner.api.internal.IsolatedClassloader@a3ff9f7-org.sonar.scanner.scan.filesystem.MetadataGenerator’: Unsatisfied dependency expressed through constructor parameter 0: Error creating bean with name ‘org.sonarsource.scanner.api.internal.IsolatedClassloader@a3ff9f7-org.sonar.scanner.scan.filesystem.StatusDetection’: Unsatisfied dependency expressed through constructor parameter 0: Error creating bean with name ‘projectRepositories’ defined in org.sonar.scanner.repository.ProjectRepositoriesProvider: Failed to instantiate [org.sonar.scanner.repository.ProjectRepositories]: Factory method ‘projectRepositories’ threw exception with message: Fail to request url: https://sonar-enterprise.example.com/batch/project.protobuf?key=com.kn%3Aproject-aggregator%3Atrunk&branch=4.27: timeout → [Help 1]

[ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:4.0.0.4121:sonar (default-cli) on project project-aggregator: Failed to upload report: Fail to request url: https://sonar-enterprise.example.com/api/ce/submit?projectKey=com.kn%3Aproject-aggregator%3Atrunk&projectName=project%20trunk&characteristic=branch%3D4.27&characteristic=branchType%3DBRANCH: timeout → [Help 1]