Intermittent Timeout Error during SonarQube Scanner Execution from Jenkins Kubernetes Agent Pod

SonarQube Setup Details:

  • SonarQube Version: Community Edition 25.7.0.110598
  • SonarScanner CLI Version: 7.2.0.5079
  • Jenkins Setup: Jenkins agent running inside AKS Kubernetes pod
  • Java Version: Java 17.0.13 (Eclipse Adoptium)
  • OS: Linux (5.15.0-1091-azure amd64)

We are experiencing intermittent timeout errors while running SonarQube analysis from our Jenkins Kubernetes agent pods. Some builds pass successfully, but others fail with the following error trace during sonar-scanner execution:
sonar_error_logs.txt (19.1 KB)

Additional Observations:

  • The issue is not consistent—sometimes the scanner completes successfully.
  • Failing builds mostly show failure when fetching from this endpoint:
    https://sonar.xxxx.com/api/settings/values.protobuf
  • The scanner command is executed within a Jenkins pod on Azure Kubernetes Service (AKS).
  • The error suggests a networking or timeout issue, possibly during plugin or settings resolution.

AKS Outbound Access: Open to all
SonarQube Server Inbound: Port 443 open to all

Hey there.

What happens if you try to browse this URL directly in your browser?

https://xxxx.xxxxxxx.xxx/api/settings/values.protobuf

I have accessed the following API endpoint directly:

URL: https://xxxx.xxxxxxx.xxx/api/settings/values.protobuf

The values.protobuf file has been successfully downloaded.