SonarQube server [https://phi-sonar.dot.daimler.com] can not be reached

Hello guys,
i tried tosetup the connection between Jenkins and SonarQube, but when i run a build from Jenkins, i sometimes get these errors:

Started by user sbj_adm
Running as SYSTEM
Building in workspace /dagdag/work/jenkins/jenkins_home/workspace/Temp/SonarqubeTest
Updating svn://ifbsrc1/automotive/branches/DAG/D/src/helas/amp at revision ‘2021-06-11T08:22:16.371 +0200’ --quiet
At revision 36320

No changes for svn://ifbsrc1/automotive/branches/DAG/D/src/helas/amp since the previous build
[SonarqubeTest] $ /dagdag/work/jenkins/jenkins_home/tools/hudson.plugins.sonar.SonarRunnerInstallation/sonar_scanner/bin/sonar-scanner -X -Dsonar.host.url=https://phi-sonar.dot.daimler.com ******** -Dsonar.login=10af07c3fac62e8a47794e83a1197525e640e1f5 -Dsonar.sourceEncoding=UTF-8 -Dsonar.projectKey=Sonar_Koerber -Dsonar.exclusions=/dbentries/ -Dsonar.host.url=https://phi-sonar.dot.daimler.com -Dsonar.sources=. -Dsonar.projectBaseDir=/dagdag/work/jenkins/jenkins_home/workspace/Temp/SonarqubeTest
08:22:18.300 WARN: Property ‘sonar.login’ with value ‘01bc8bd43d6516c60fd89c6e836b04d1bbafc317’ is overridden with value ‘10af07c3fac62e8a47794e83a1197525e640e1f5’
08:22:18.303 WARN: Property ‘sonar.host.url’ with value ‘https://phi-sonar.dot.daimler.com’ is overridden with value ‘https://phi-sonar.dot.daimler.com
08:22:18.310 INFO: Scanner configuration file: /data/wmsX_dagdag_basis/work/jenkins/jenkins_home/tools/hudson.plugins.sonar.SonarRunnerInstallation/sonar_scanner/conf/sonar-scanner.properties
08:22:18.311 INFO: Project root configuration file: NONE
08:22:18.329 INFO: SonarScanner 4.6.2.2472
08:22:18.329 INFO: Java 1.8.0-272 OpenLogic-OpenJDK (64-bit)
08:22:18.329 INFO: Linux 4.12.14-95.6-default amd64
08:22:18.446 DEBUG: keyStore is :
08:22:18.446 DEBUG: keyStore type is : jks
08:22:18.446 DEBUG: keyStore provider is :
08:22:18.446 DEBUG: init keystore
08:22:18.446 DEBUG: init keymanager of type SunX509
08:22:18.505 DEBUG: Create: /dagdag/work/users/dagiadm/.sonar/cache
08:22:18.506 INFO: User cache: /dagdag/work/users/dagiadm/.sonar/cache
08:22:18.506 DEBUG: Create: /dagdag/work/users/dagiadm/.sonar/cache/_tmp
08:22:18.508 DEBUG: Extract sonar-scanner-api-batch in temp…
08:22:18.515 DEBUG: Get bootstrap index…
08:22:18.515 DEBUG: Download: https://phi-sonar.dot.daimler.com/batch/index
08:22:23.566 ERROR: SonarQube server [https://phi-sonar.dot.daimler.com] can not be reached
08:22:23.566 INFO: ------------------------------------------------------------------------
08:22:23.566 INFO: EXECUTION FAILURE
08:22:23.566 INFO: ------------------------------------------------------------------------
08:22:23.567 INFO: Total time: 5.260s
08:22:23.604 INFO: Final Memory: 4M/88M
08:22:23.604 INFO: ------------------------------------------------------------------------
08:22:23.604 ERROR: Error during SonarScanner execution
org.sonarsource.scanner.api.internal.ScannerException: Unable to execute SonarScanner analysis
at org.sonarsource.scanner.api.internal.IsolatedLauncherFactory.lambda$createLauncher$0(IsolatedLauncherFactory.java:85)
at java.security.AccessController.doPrivileged(Native Method)
at org.sonarsource.scanner.api.internal.IsolatedLauncherFactory.createLauncher(IsolatedLauncherFactory.java:74)
at org.sonarsource.scanner.api.internal.IsolatedLauncherFactory.createLauncher(IsolatedLauncherFactory.java:70)
at org.sonarsource.scanner.api.EmbeddedScanner.doStart(EmbeddedScanner.java:185)
at org.sonarsource.scanner.api.EmbeddedScanner.start(EmbeddedScanner.java:123)
at org.sonarsource.scanner.cli.Main.execute(Main.java:73)
at org.sonarsource.scanner.cli.Main.main(Main.java:61)
Caused by: java.lang.IllegalStateException: Fail to get bootstrap index from server
at org.sonarsource.scanner.api.internal.BootstrapIndexDownloader.getIndex(BootstrapIndexDownloader.java:42)
at org.sonarsource.scanner.api.internal.JarDownloader.getScannerEngineFiles(JarDownloader.java:58)
at org.sonarsource.scanner.api.internal.JarDownloader.download(JarDownloader.java:53)
at org.sonarsource.scanner.api.internal.IsolatedLauncherFactory.lambda$createLauncher$0(IsolatedLauncherFactory.java:76)
… 7 more
Caused by: java.net.SocketTimeoutException: connect timed out
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:607)
at org.sonarsource.scanner.api.internal.shaded.okhttp.internal.platform.Platform.connectSocket(Platform.java:130)
at org.sonarsource.scanner.api.internal.shaded.okhttp.internal.connection.RealConnection.connectSocket(RealConnection.java:263)
at org.sonarsource.scanner.api.internal.shaded.okhttp.internal.connection.RealConnection.connect(RealConnection.java:183)
at org.sonarsource.scanner.api.internal.shaded.okhttp.internal.connection.ExchangeFinder.findConnection(ExchangeFinder.java:224)
at org.sonarsource.scanner.api.internal.shaded.okhttp.internal.connection.ExchangeFinder.findHealthyConnection(ExchangeFinder.java:108)
at org.sonarsource.scanner.api.internal.shaded.okhttp.internal.connection.ExchangeFinder.find(ExchangeFinder.java:88)
at org.sonarsource.scanner.api.internal.shaded.okhttp.internal.connection.Transmitter.newExchange(Transmitter.java:169)
at org.sonarsource.scanner.api.internal.shaded.okhttp.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.java:41)
at org.sonarsource.scanner.api.internal.shaded.okhttp.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:142)
at org.sonarsource.scanner.api.internal.shaded.okhttp.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:117)
at org.sonarsource.scanner.api.internal.shaded.okhttp.internal.cache.CacheInterceptor.intercept(CacheInterceptor.java:94)
at org.sonarsource.scanner.api.internal.shaded.okhttp.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:142)
at org.sonarsource.scanner.api.internal.shaded.okhttp.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:117)
at org.sonarsource.scanner.api.internal.shaded.okhttp.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.java:93)
at org.sonarsource.scanner.api.internal.shaded.okhttp.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:142)
at org.sonarsource.scanner.api.internal.shaded.okhttp.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.java:88)
at org.sonarsource.scanner.api.internal.shaded.okhttp.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:142)
at org.sonarsource.scanner.api.internal.shaded.okhttp.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:117)
at org.sonarsource.scanner.api.internal.shaded.okhttp.RealCall.getResponseWithInterceptorChain(RealCall.java:221)
at org.sonarsource.scanner.api.internal.shaded.okhttp.RealCall.execute(RealCall.java:81)
at org.sonarsource.scanner.api.internal.ServerConnection.callUrl(ServerConnection.java:115)
at org.sonarsource.scanner.api.internal.ServerConnection.downloadString(ServerConnection.java:99)
at org.sonarsource.scanner.api.internal.BootstrapIndexDownloader.getIndex(BootstrapIndexDownloader.java:39)
… 10 more
ERROR: SonarQube scanner exited with non-zero code: 1
Finished: FAILURE

Could you please help me with this one?

Hi @Fllips84 ,

I can’t tell you why the connection timeouts unfortunately. Though, I noticed that you posted your sonar.login which contains a SonarQube authentication token. I would highly recommend you to invalidate that token and generate a new one (Administration, Security, Users). I have unlisted the topic for now.

Best regards,
Hendrik