GitLab job fails in SonarQube 8.9 Community version

Hi Team,

We have recently upgraded Sonarqube community version from 7.9 to 8.9 version. But most of the projects who use GitLab report failed jobs with below error:

DEBUG] 06:23:41.623 Upload report

719[DEBUG] 06:23:42.776 POST 500 https://sonarqube.pearson.com/api/ce/submit?projectKey=com.pearson.pla.autobahn%3Aadmin-service-v2&projectName=admin-service-v2&characteristic=branch%3DAUTOBAH-4926&characteristic=branchType%3DBRANCH | time=1152ms

720[INFO] ------------------------------------------------------------------------

721[INFO] BUILD FAILURE

722[INFO] ------------------------------------------------------------------------

723[INFO] Total time: 12:53 min

724[INFO] Finished at: 2021-06-29T06:23:42Z

725[INFO] ------------------------------------------------------------------------

726[ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.9.0.2155:sonar (default-cli) on project autobahn-admin-service-v2: Failed to upload report - An error has occurred. Please contact your administrator → [Help 1]

727org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.9.0.2155:sonar (default-cli) on XXXX: Failed to upload report - An error has occurred. Please contact your administrator

Please assist on this.

Thanks
Thulasi

Hi Team,

Any help would be appreciated!!

Thanks
Thulasi

Hi @UNagaTh ,

Can you turn on DEBUG logs for your mvn build and share a snippet of it? Add -X and rerun the Sonar scanner/maven build.

Also, please share your SonarQube server logs in a zip file:

  • Change your Log Level to DEBUG (Administration > System > Log Level) - no need to restart SonarQube
  • Attempt to build and scan maven project in GitLab
  • Change Log Level back to INFO
  • Zip $SONARQUBE_HOME/logs and attach here.

If you prefer to share this privately, just let me know.

Hi Joe,

Thanks for looking into this. I will get the details and attach here.

Thanks.
Thulasi

1 Like

Hi @Joe ,

I have collected Debug logs. How can I share the logs in private?

Thanks
Thulasi

Resolution: @UNagaTh tweaked community branch plugin to fix the 500 error

1 Like

FYI this bug has been fixed in 9.0.1 and in 8.9.2. version of SonarQube.
GitLab is in progress to fix the bug on its side so it should soon work again other versions of SonarQube :wink:

Christophe - DevOps Platform PM