Information:
SonarQube version 10.0.0.68432 deployed with Helm
SonarScanner for MSBuild 5.13 (Azure DevOps)
When running Azure DevOps pipeline SonarQubeAnalyze@5 on dotnet project the scanner execution fails with “java.lang.IllegalStateException: Failed to upload report: Fail to request url: https://sonarqube.xxx.com/api/ce/submit?projectKey=xxx”
There are no errors in Web server log downloaded from Sonarqube.
We are scanning multiple projects and this the only one where it happens. The only thing that stands out about it, is that is has more LoC than others.
Full stacktrace:
2023-06-30T10:25:53.3190470Z ##[error]ERROR: Error during SonarScanner execution
2023-06-30T10:25:53.3191804Z ERROR: Error during SonarScanner execution
2023-06-30T10:25:53.3192755Z ##[error]java.lang.IllegalStateException: Failed to upload report: Fail to request url: https://sonarqube.xxx.com/api/ce/submit?projectKey=xxx
2023-06-30T10:25:53.3193634Z java.lang.IllegalStateException: Failed to upload report: Fail to request url: https://sonarqube.xxx.com/api/ce/submit?projectKey=xxx
2023-06-30T10:25:53.3520873Z ##[error]at org.sonar.scanner.report.ReportPublisher.upload(ReportPublisher.java:227)
at org.sonar.scanner.report.ReportPublisher.execute(ReportPublisher.java:155)
2023-06-30T10:25:53.3526581Z at org.sonar.scanner.report.ReportPublisher.upload(ReportPublisher.java:227)
2023-06-30T10:25:53.3528239Z at org.sonar.scanner.report.ReportPublisher.execute(ReportPublisher.java:155)
2023-06-30T10:25:53.3531144Z ##[error]at org.sonar.scanner.scan.SpringProjectScanContainer.doAfterStart(SpringProjectScanContainer.java:376)
at org.sonar.core.platform.SpringComponentContainer.startComponents(SpringComponentContainer.java:188)
at org.sonar.core.platform.SpringComponentContainer.execute(SpringComponentContainer.java:167)
at org.sonar.scanner.bootstrap.SpringGlobalContainer.doAfterStart(SpringGlobalContainer.java:137)
at org.sonar.core.platform.SpringComponentContainer.startComponents(SpringComponentContainer.java:188)
at org.sonar.core.platform.SpringComponentContainer.execute(SpringComponentContainer.java:167)
at org.sonar.batch.bootstrapper.Batch.doExecute(Batch.java:72)
2023-06-30T10:25:53.3533235Z at org.sonar.scanner.scan.SpringProjectScanContainer.doAfterStart(SpringProjectScanContainer.java:376)
2023-06-30T10:25:53.3538584Z at org.sonar.core.platform.SpringComponentContainer.startComponents(SpringComponentContainer.java:188)
2023-06-30T10:25:53.3539346Z at org.sonar.core.platform.SpringComponentContainer.execute(SpringComponentContainer.java:167)
2023-06-30T10:25:53.3540015Z at org.sonar.scanner.bootstrap.SpringGlobalContainer.doAfterStart(SpringGlobalContainer.java:137)
2023-06-30T10:25:53.3541094Z at org.sonar.core.platform.SpringComponentContainer.startComponents(SpringComponentContainer.java:188)
2023-06-30T10:25:53.3541754Z at org.sonar.core.platform.SpringComponentContainer.execute(SpringComponentContainer.java:167)
2023-06-30T10:25:53.3542383Z at org.sonar.batch.bootstrapper.Batch.doExecute(Batch.java:72)
2023-06-30T10:25:53.3543954Z ##[error]at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:66)
at org.sonarsource.scanner.api.internal.batch.BatchIsolatedLauncher.execute(BatchIsolatedLauncher.java:46)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2023-06-30T10:25:53.3545448Z at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:66)
2023-06-30T10:25:53.3545983Z at org.sonarsource.scanner.api.internal.batch.BatchIsolatedLauncher.execute(BatchIsolatedLauncher.java:46)
2023-06-30T10:25:53.3546410Z at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2023-06-30T10:25:53.3547179Z ##[error]at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
2023-06-30T10:25:53.3547976Z at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
2023-06-30T10:25:53.3548652Z ##[error]at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
2023-06-30T10:25:53.3549348Z at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
2023-06-30T10:25:53.3550190Z ##[error]at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.sonarsource.scanner.api.internal.IsolatedLauncherProxy.invoke(IsolatedLauncherProxy.java:60)
2023-06-30T10:25:53.3555141Z at java.base/java.lang.reflect.Method.invoke(Method.java:566)
2023-06-30T10:25:53.3555661Z at org.sonarsource.scanner.api.internal.IsolatedLauncherProxy.invoke(IsolatedLauncherProxy.java:60)
2023-06-30T10:25:53.3556281Z ##[error]at com.sun.proxy.$Proxy0.execute(Unknown Source)
2023-06-30T10:25:53.3556856Z at com.sun.proxy.$Proxy0.execute(Unknown Source)
2023-06-30T10:25:53.3557408Z ##[error]at org.sonarsource.scanner.api.EmbeddedScanner.doExecute(EmbeddedScanner.java:189)
2023-06-30T10:25:53.3558046Z at org.sonarsource.scanner.api.EmbeddedScanner.doExecute(EmbeddedScanner.java:189)
2023-06-30T10:25:53.3558847Z ##[error]at org.sonarsource.scanner.api.EmbeddedScanner.execute(EmbeddedScanner.java:138)
2023-06-30T10:25:53.3559756Z at org.sonarsource.scanner.api.EmbeddedScanner.execute(EmbeddedScanner.java:138)
2023-06-30T10:25:53.3560497Z ##[error]at org.sonarsource.scanner.cli.Main.execute(Main.java:126)
at org.sonarsource.scanner.cli.Main.execute(Main.java:81)
2023-06-30T10:25:53.3561443Z at org.sonarsource.scanner.cli.Main.execute(Main.java:126)
2023-06-30T10:25:53.3561761Z at org.sonarsource.scanner.cli.Main.execute(Main.java:81)
2023-06-30T10:25:53.3562278Z ##[error]at org.sonarsource.scanner.cli.Main.main(Main.java:62)
2023-06-30T10:25:53.3562845Z at org.sonarsource.scanner.cli.Main.main(Main.java:62)
2023-06-30T10:25:53.3563622Z ##[error]Caused by: java.lang.IllegalStateException: Fail to request url: https://sonarqube.xxx.com/api/ce/submit?projectKey=xxx
2023-06-30T10:25:53.3564364Z Caused by: java.lang.IllegalStateException: Fail to request url: https://sonarqube.xxx.com/api/ce/submit?projectKey=xxx
2023-06-30T10:25:53.3568414Z ##[error]at org.sonarqube.ws.client.HttpConnector.doCall(HttpConnector.java:211)
at org.sonarqube.ws.client.HttpConnector.executeRequest(HttpConnector.java:161)
at org.sonarqube.ws.client.HttpConnector.call(HttpConnector.java:116)
at org.sonar.scanner.bootstrap.DefaultScannerWsClient.call(DefaultScannerWsClient.java:87)
at org.sonar.scanner.report.ReportPublisher.upload(ReportPublisher.java:225)
... 21 more
Caused by: okhttp3.internal.http2.StreamResetException: stream was reset: NO_ERROR
at okhttp3.internal.http2.Http2Stream.checkOutNotClosed$okhttp(Http2Stream.kt:646)
at okhttp3.internal.http2.Http2Stream$FramingSink.emitFrame(Http2Stream.kt:557)
at okhttp3.internal.http2.Http2Stream$FramingSink.write(Http2Stream.kt:532)
at okio.ForwardingSink.write(ForwardingSink.kt:29)
at okhttp3.internal.connection.Exchange$RequestBodySink.write(Exchange.kt:218)
at okio.RealBufferedSink.emitCompleteSegments(RealBufferedSink.kt:255)
at okio.RealBufferedSink.writeAll(RealBufferedSink.kt:194)
at okhttp3.RequestBody$Companion$asRequestBody$1.writeTo(RequestBody.kt:167)
at okhttp3.MultipartBody.writeOrCountBytes(MultipartBody.kt:157)
at okhttp3.MultipartBody.writeTo(MultipartBody.kt:93)
at okhttp3.internal.http.CallServerInterceptor.intercept(CallServerInterceptor.kt:59)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
at org.sonarqube.ws.client.OkHttpClientBuilder.addHeaders(OkHttpClientBuilder.java:222)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
2023-06-30T10:25:53.3571532Z at org.sonarqube.ws.client.HttpConnector.doCall(HttpConnector.java:211)
2023-06-30T10:25:53.3571900Z at org.sonarqube.ws.client.HttpConnector.executeRequest(HttpConnector.java:161)
2023-06-30T10:25:53.3572259Z at org.sonarqube.ws.client.HttpConnector.call(HttpConnector.java:116)
2023-06-30T10:25:53.3572602Z at org.sonar.scanner.bootstrap.DefaultScannerWsClient.call(DefaultScannerWsClient.java:87)
2023-06-30T10:25:53.3572980Z at org.sonar.scanner.report.ReportPublisher.upload(ReportPublisher.java:225)
2023-06-30T10:25:53.3573242Z ... 21 more
2023-06-30T10:25:53.3573471Z Caused by: okhttp3.internal.http2.StreamResetException: stream was reset: NO_ERROR
2023-06-30T10:25:53.3573986Z at okhttp3.internal.http2.Http2Stream.checkOutNotClosed$okhttp(Http2Stream.kt:646)
2023-06-30T10:25:53.3574327Z at okhttp3.internal.http2.Http2Stream$FramingSink.emitFrame(Http2Stream.kt:557)
2023-06-30T10:25:53.3574682Z at okhttp3.internal.http2.Http2Stream$FramingSink.write(Http2Stream.kt:532)
2023-06-30T10:25:53.3575002Z at okio.ForwardingSink.write(ForwardingSink.kt:29)
2023-06-30T10:25:53.3575305Z at okhttp3.internal.connection.Exchange$RequestBodySink.write(Exchange.kt:218)
2023-06-30T10:25:53.3575650Z at okio.RealBufferedSink.emitCompleteSegments(RealBufferedSink.kt:255)
2023-06-30T10:25:53.3576067Z at okio.RealBufferedSink.writeAll(RealBufferedSink.kt:194)
2023-06-30T10:25:53.3576376Z at okhttp3.RequestBody$Companion$asRequestBody$1.writeTo(RequestBody.kt:167)
2023-06-30T10:25:53.3576714Z at okhttp3.MultipartBody.writeOrCountBytes(MultipartBody.kt:157)
2023-06-30T10:25:53.3577021Z at okhttp3.MultipartBody.writeTo(MultipartBody.kt:93)
2023-06-30T10:25:53.3577341Z at okhttp3.internal.http.CallServerInterceptor.intercept(CallServerInterceptor.kt:59)
2023-06-30T10:25:53.3577709Z at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
2023-06-30T10:25:53.3578059Z at org.sonarqube.ws.client.OkHttpClientBuilder.addHeaders(OkHttpClientBuilder.java:222)
2023-06-30T10:25:53.3578438Z at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
2023-06-30T10:25:53.3579308Z ##[error]at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.kt:34)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
2023-06-30T10:25:53.3580070Z at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.kt:34)
2023-06-30T10:25:53.3580421Z at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
2023-06-30T10:25:53.3581026Z ##[error]at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.kt:95)
2023-06-30T10:25:53.3581626Z at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.kt:95)
2023-06-30T10:25:53.3582236Z ##[error]at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
2023-06-30T10:25:53.3582838Z at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
2023-06-30T10:25:53.3584781Z ##[error]at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.kt:83)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.kt:76)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
at okhttp3.internal.connection.RealCall.getResponseWithInterceptorChain$okhttp(RealCall.kt:201)
at okhttp3.internal.connection.RealCall.execute(RealCall.kt:154)
at org.sonarqube.ws.client.HttpConnector.doCall(HttpConnector.java:209)
... 25 more
Suppressed: okhttp3.internal.http2.StreamResetException: stream was reset: NO_ERROR
... 50 more
ERROR:
2023-06-30T10:25:53.3586154Z at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.kt:83)
2023-06-30T10:25:53.3586519Z at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
2023-06-30T10:25:53.3586905Z at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.kt:76)
2023-06-30T10:25:53.3587267Z at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
2023-06-30T10:25:53.3587648Z at okhttp3.internal.connection.RealCall.getResponseWithInterceptorChain$okhttp(RealCall.kt:201)
2023-06-30T10:25:53.3588010Z at okhttp3.internal.connection.RealCall.execute(RealCall.kt:154)
2023-06-30T10:25:53.3588323Z at org.sonarqube.ws.client.HttpConnector.doCall(HttpConnector.java:209)
2023-06-30T10:25:53.3588583Z ... 25 more
2023-06-30T10:25:53.3588813Z Suppressed: okhttp3.internal.http2.StreamResetException: stream was reset: NO_ERROR
2023-06-30T10:25:53.3589141Z ... 50 more
2023-06-30T10:25:53.3589323Z ERROR:
2023-06-30T10:25:53.9488155Z ##[error]The SonarScanner did not complete successfully