SonarQube Upgradation Issue

Hi Team,

We have recently upgraded our Sonar vertion to 8.9 LTS version, when we are trying to run our pipeline we are getting below error.

From the same VM ( from where Jenking build will run) we are able to connect to below URL using curl command, our VM is Linux machine,
(http://A.B.C.D:9000/sonarqube/batch/index)

Java 11 version we are using.

[ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.9.1.2184:sonar (default-cli) on project API-ErrorSharedFlow-apigee: Unable to execute SonarScanner analysis: Fail to get bootstrap index from server: Status returned by url [http://A.B.C.D:9000/sonarqube/batch/index] is not valid: [504] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.9.1.2184:sonar (default-cli) on project API-ErrorSharedFlow-apigee: Unable to execute SonarScanner analysis

highly appreciated for quick help.

Regs
Srikanth M

Hi,

Welcome to the community!

Google tells me a 504 error is a Gateway Timeout error. At a guess, there’s either something on your network interfering with the request, or when you upgraded SonarQube, the new version ended up with a slightly different URL than the old one had and so the analysis-side configuration needs to be updated.

 
HTH,
Ann