SonarScanner get timeout exception when communicate with SonarCloud API

Hi, I am using SonarScanner on Jenkins CI with paid SonarCloud services.

Today (19 October 2021) at 10 am GMT+7 our job starts failing when run analysis using SonarScanner and got this exception

INFO: Total time: 21:20.074s
INFO: Final Memory: 195M/657M
INFO: ------------------------------------------------------------------------
ERROR: Error during SonarScanner execution
java.lang.IllegalStateException: Fail to request https://sonarcloud.io/api/ce/submit?organization=[redacted]&projectKey=[redacted]&characteristic=pullRequest%3D3647
	at org.sonarqube.ws.client.HttpConnector.doCall(HttpConnector.java:186)
	at org.sonarqube.ws.client.HttpConnector.post(HttpConnector.java:141)
	at org.sonarqube.ws.client.HttpConnector.call(HttpConnector.java:100)
	at org.sonar.scanner.bootstrap.DefaultScannerWsClient.call(DefaultScannerWsClient.java:59)
	at org.sonar.scanner.report.ReportPublisher.upload(ReportPublisher.java:220)
	at org.sonar.scanner.report.ReportPublisher.execute(ReportPublisher.java:157)
	at org.sonar.scanner.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:409)
	at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:123)
	at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:109)
	at org.sonar.scanner.bootstrap.GlobalContainer.doAfterStart(GlobalContainer.java:128)
	at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:123)
	at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:109)
	at org.sonar.batch.bootstrapper.Batch.doExecute(Batch.java:58)
	at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:52)
	at org.sonarsource.scanner.api.internal.batch.BatchIsolatedLauncher.execute(BatchIsolatedLauncher.java:46)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.base/java.lang.reflect.Method.invoke(Unknown Source)
	at org.sonarsource.scanner.api.internal.IsolatedLauncherProxy.invoke(IsolatedLauncherProxy.java:60)
	at com.sun.proxy.$Proxy0.execute(Unknown Source)
	at org.sonarsource.scanner.api.EmbeddedScanner.doExecute(EmbeddedScanner.java:189)
	at org.sonarsource.scanner.api.EmbeddedScanner.execute(EmbeddedScanner.java:138)
	at org.sonarsource.scanner.cli.Main.execute(Main.java:112)
	at org.sonarsource.scanner.cli.Main.execute(Main.java:75)
	at org.sonarsource.scanner.cli.Main.main(Main.java:61)
Caused by: java.net.SocketTimeoutException: timeout

We check there is no network issue on our side, is there a possibility network issue from SonarCloud side?

Thank you,

Eko

If it does not persist and you want to clarify a downtime, I would check this against SonarCloud customer service.

Thank you, will try later when PR traffic slowing down, so I can check if it persists or not.

Based on their status page everything is fine.

Unfortunately SonarCloud has no CS contacts except for billing

@Marcin_Majewski Can you help with this?

The issue no longer persists, I keep monitor but for now, will close this thread.

Thank you

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