SonarQube server can not be reached error

I am trying to configure SonnarQube Swift to work for my current iOS project, using our continuous integration system configured on BuddyBuild.

On the last step I get the following error :

Blockquote
2019-07-29T12:09:09.286Z - ce: 05:09:09.248 ERROR: SonarQube server [https://sonarqube.chamadev.com] can not be reached
2019-07-29T12:09:09.315Z - ce: 05:09:09.275 ERROR: Error during SonarQube Scanner execution
2019-07-29T12:09:09.316Z - ce: org.sonarsource.scanner.api.internal.ScannerException: Unable to execute SonarQube
2019-07-29T12:09:09.332Z - ce: at org.sonarsource.scanner.api.internal.IsolatedLauncherFactory.lambda$createLauncher$0(IsolatedLauncherFactory.java:85)
2019-07-29T12:09:09.334Z - ce: at java.security.AccessController.doPrivileged(Native Method)
2019-07-29T12:09:09.336Z - ce: at org.sonarsource.scanner.api.internal.IsolatedLauncherFactory.createLauncher(IsolatedLauncherFactory.java:74)

2019-07-29T12:09:09.337Z - ce: at org.sonarsource.scanner.api.internal.IsolatedLauncherFactory.createLauncher(IsolatedLauncherFactory.java:70)
2019-07-29T12:09:09.339Z - ce: at org.sonarsource.scanner.api.EmbeddedScanner.doStart(EmbeddedScanner.java:181)
2019-07-29T12:09:09.341Z - ce: at org.sonarsource.scanner.api.EmbeddedScanner.start(EmbeddedScanner.java:122)
2019-07-29T12:09:09.342Z - ce: at org.sonarsource.scanner.cli.Main.execute(Main.java:73)
2019-07-29T12:09:09.343Z - ce: at org.sonarsource.scanner.cli.Main.main(Main.java:61)
2019-07-29T12:09:09.344Z - ce: Caused by: java.lang.IllegalStateException: Fail to get bootstrap index from server
2019-07-29T12:09:09.345Z - ce: at org.sonarsource.scanner.api.internal.BootstrapIndexDownloader.getIndex(BootstrapIndexDownloader.java:42)
2019-07-29T12:09:09.347Z - ce: at org.sonarsource.scanner.api.internal.JarDownloader.getScannerEngineFiles(JarDownloader.java:58)
2019-07-29T12:09:09.348Z - ce: at org.sonarsource.scanner.api.internal.JarDownloader.download(JarDownloader.java:53)
2019-07-29T12:09:09.349Z - ce: at org.sonarsource.scanner.api.internal.IsolatedLauncherFactory.lambda$createLauncher$0(IsolatedLauncherFactory.java:76)
2019-07-29T12:09:09.394Z - ce: … 7 more
2019-07-29T12:09:09.408Z - ce: Caused by: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
2019-07-29T12:09:09.315Z - ce: 05:09:09.275 ERROR: Error during SonarQube Scanner execution

I was unable to solve this problem. Could anyone help me out?
Our firewall does not seem to be the issue here since it accepts all incoming HTTPS requests.

Sonar-scanner version: sonar-scanner-cli-4.0.0.1744.zip
SonarQube version : sonarqube-7.9.zip

Hi Augustin,

It seems to me that your certificate fails. Did you self-sign the certificate? Then you will also need to add it to the JAVA certificate trust store. This may help: https://confluence.atlassian.com/kb/unable-to-connect-to-ssl-services-due-to-pkix-path-building-failed-779355358.html

Regards

1 Like

Seems like it.
Thank you very much!
Will try your suggested solution.