[ERROR] SonarQube server can not be reached

Hello Team,

we are getting below error while executing Jenkins job, tried all the possible thing shared in deafferent topics with similar issue didn’t help, please guide what to troubleshoot
Sonarqube: 7.9.6
Jenkins : 2.263.4

[INFO] — sonar-maven-plugin:3.6.0.1398:sonar (default-cli) @ oc — [INFO] User cache: /home/private/.sonar/cache
[ERROR] SonarQube server [https://privatesonar.com/sonarqube] can not be reached

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for oc 0.0.5-SNAPSHOT:
[INFO]
[INFO] wt-poc … FAILURE [ 1.391 s]
[INFO] wt-eureka-server … SKIPPED
[INFO] wt-config-server … SKIPPED
[INFO] wt-model … SKIPPED
[INFO] wt-entities … SKIPPED
[INFO] wt-presa-in-carico … SKIPPED
[INFO] wt-gestione-del-saldo … SKIPPED
[INFO] wt-gestione-conversion … SKIPPED
[INFO] wt-gestioni-blocchi … SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.071 s
[INFO] Finished at: 2021-09-22T12:36:51+02:00
[INFO] ------------------------------------------------------------------------
[INFO] [jenkins-event-spy] Generated /disk2/jenkins/workspace/OC/Pipeline_OC@tmp/withMavenb61342fe/maven-spy-20210922-123648-99317337004886836186617.log
[ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.6.0.1398:sonar (default-cli) on project oc: Unable to execute SonarQube: Index: 0 → [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[Pipeline] }

can you help

Regards,
SAM

Hi @samkhamk,

Are you able to open https://privatesonar.com/sonarqube in browser? And it will be great if you can share full debug logs.

Best regards,
Fan

@Fan_Yang
Yes its accessible from local & from Jenkins node. even URL is accessible.

you need logs from Jenkins build or SQ

Regards,
SAM

Hi @samkhamk,

This issue is often from some proxy set up between node, where the scanner is and the SonarQube. Please check the proxies configuration.

Then attach the logs of Jenkins and SQ if possible.

Best regards,
Fan

Thanks for the hint , it was proxy which is causing this issue.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.