Sonar Cube / Azure Devops / Upload failing?

Hi,

I’ve got SonarQube 8.9.10.61524 running and try to integrate it within my Azure Devops pipeline. Connection seems to be fine (at least sonarqube admin page mentions it and service seems to be created successfully in azure configuration). But when running the analysis task, I’m getting the following output:

project key is xyz_abc
project name is xyz ABC

the posted URL is reachable, but returns me with 401 when trying with postman.

Within azure devops I’m using latest version of: SonarQube - Visual Studio Marketplace

Do you have any idea / tipps how I can resolve that issue?

best regards & thanks,
Stefan

022-11-17T18:19:26.2234463Z INFO: 1122/1421 source files have been analyzed
2022-11-17T18:19:35.9024370Z INFO: SCM Publisher 1421/1421 source files have been analyzed (done) | time=49893ms
2022-11-17T18:19:36.1203103Z INFO: CPD Executor 228 files had no CPD blocks
2022-11-17T18:19:36.1210376Z INFO: CPD Executor Calculating CPD for 1148 files
2022-11-17T18:19:36.6668112Z INFO: CPD Executor CPD calculation finished (done) | time=549ms
2022-11-17T18:19:37.6238063Z INFO: Analysis report generated in 695ms, dir size=13 MB
2022-11-17T18:19:41.2971332Z INFO: Analysis report compressed in 3676ms, zip size=6 MB
2022-11-17T18:19:53.6224568Z INFO: ------------------------------------------------------------------------
2022-11-17T18:19:53.6225656Z INFO: EXECUTION FAILURE
2022-11-17T18:19:53.6226273Z INFO: ------------------------------------------------------------------------
2022-11-17T18:19:53.6226750Z INFO: Total time: 2:27.817s
2022-11-17T18:19:53.7149771Z INFO: Final Memory: 15M/54M
2022-11-17T18:19:53.7151814Z ##[error]ERROR: Error during SonarScanner execution
2022-11-17T18:19:53.7152793Z ERROR: Error during SonarScanner execution
2022-11-17T18:19:53.7153241Z INFO: ------------------------------------------------------------------------
2022-11-17T18:19:53.7154595Z ##[error]java.lang.IllegalStateException: Fail to request url: https://myurl.de/api/ce/submit?projectKey=xyz_abc&projectName=xyz%20abc
2022-11-17T18:19:53.7155886Z java.lang.IllegalStateException: Fail to request url: https://myurl.de/api/ce/submit?projectKey=xyz_abc&projectName=xyz%20abc
2022-11-17T18:19:53.7214225Z ##[error]at org.sonarqube.ws.client.HttpConnector.doCall(HttpConnector.java:205)
2022-11-17T18:19:53.7219692Z 	at org.sonarqube.ws.client.HttpConnector.doCall(HttpConnector.java:205)
2022-11-17T18:19:53.7222925Z ##[error]at org.sonarqube.ws.client.HttpConnector.post(HttpConnector.java:155)
	at org.sonarqube.ws.client.HttpConnector.call(HttpConnector.java:114)
	at org.sonar.scanner.bootstrap.DefaultScannerWsClient.call(DefaultScannerWsClient.java:73)
	at org.sonar.scanner.report.ReportPublisher.upload(ReportPublisher.java:204)
2022-11-17T18:19:53.7226369Z 	at org.sonarqube.ws.client.HttpConnector.post(HttpConnector.java:155)
2022-11-17T18:19:53.7227285Z 	at org.sonarqube.ws.client.HttpConnector.call(HttpConnector.java:114)
2022-11-17T18:19:53.7228564Z 	at org.sonar.scanner.bootstrap.DefaultScannerWsClient.call(DefaultScannerWsClient.java:73)
2022-11-17T18:19:53.7229433Z 	at org.sonar.scanner.report.ReportPublisher.upload(ReportPublisher.java:204)
2022-11-17T18:19:53.7231917Z ##[error]at org.sonar.scanner.report.ReportPublisher.execute(ReportPublisher.java:141)
	at org.sonar.scanner.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:365)
2022-11-17T18:19:53.7233313Z 	at org.sonar.scanner.report.ReportPublisher.execute(ReportPublisher.java:141)
2022-11-17T18:19:53.7234158Z 	at org.sonar.scanner.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:365)
2022-11-17T18:19:53.7236077Z ##[error]at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:137)
	at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:123)
2022-11-17T18:19:53.7238316Z 	at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:137)
2022-11-17T18:19:53.7238953Z 	at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:123)
2022-11-17T18:19:53.7240118Z ##[error]at org.sonar.scanner.bootstrap.GlobalContainer.doAfterStart(GlobalContainer.java:150)
2022-11-17T18:19:53.7241190Z 	at org.sonar.scanner.bootstrap.GlobalContainer.doAfterStart(GlobalContainer.java:150)
2022-11-17T18:19:53.7242341Z ##[error]at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:137)
2022-11-17T18:19:53.7243401Z 	at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:137)
2022-11-17T18:19:53.7244524Z ##[error]at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:123)
2022-11-17T18:19:53.7245562Z 	at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:123)
2022-11-17T18:19:53.7246554Z ##[error]at org.sonar.batch.bootstrapper.Batch.doExecute(Batch.java:72)
2022-11-17T18:19:53.7247485Z 	at org.sonar.batch.bootstrapper.Batch.doExecute(Batch.java:72)
2022-11-17T18:19:53.7248940Z ##[error]at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:66)
	at org.sonarsource.scanner.api.internal.batch.BatchIsolatedLauncher.execute(BatchIsolatedLauncher.java:46)
2022-11-17T18:19:53.7250142Z 	at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:66)
2022-11-17T18:19:53.7250762Z 	at org.sonarsource.scanner.api.internal.batch.BatchIsolatedLauncher.execute(BatchIsolatedLauncher.java:46)
2022-11-17T18:19:53.7251867Z ##[error]at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2022-11-17T18:19:53.7252820Z 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2022-11-17T18:19:53.7253921Z ##[error]at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
2022-11-17T18:19:53.7255027Z 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
2022-11-17T18:19:53.7256603Z ##[error]at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
2022-11-17T18:19:53.7257896Z 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
2022-11-17T18:19:53.7258521Z 	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
2022-11-17T18:19:53.7259629Z ##[error]at org.sonarsource.scanner.api.internal.IsolatedLauncherProxy.invoke(IsolatedLauncherProxy.java:60)
2022-11-17T18:19:53.7260752Z 	at org.sonarsource.scanner.api.internal.IsolatedLauncherProxy.invoke(IsolatedLauncherProxy.java:60)
2022-11-17T18:19:53.7261696Z ##[error]at com.sun.proxy.$Proxy0.execute(Unknown Source)
2022-11-17T18:19:53.7262517Z 	at com.sun.proxy.$Proxy0.execute(Unknown Source)
2022-11-17T18:19:53.7263482Z ##[error]at org.sonarsource.scanner.api.EmbeddedScanner.doExecute(EmbeddedScanner.java:189)
2022-11-17T18:19:53.7264519Z 	at org.sonarsource.scanner.api.EmbeddedScanner.doExecute(EmbeddedScanner.java:189)
2022-11-17T18:19:53.7265586Z ##[error]at org.sonarsource.scanner.api.EmbeddedScanner.execute(EmbeddedScanner.java:138)
2022-11-17T18:19:53.7266631Z 	at org.sonarsource.scanner.api.EmbeddedScanner.execute(EmbeddedScanner.java:138)
2022-11-17T18:19:53.7274494Z ##[error]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: okhttp3.internal.http2.StreamResetException: stream was reset: NO_ERROR
	at okhttp3.internal.http2.Http2Stream.checkOutNotClosed$okhttp(Http2Stream.kt:648)
	at okhttp3.internal.http2.Http2Stream$FramingSink.emitFrame(Http2Stream.kt:560)
	at okhttp3.internal.http2.Http2Stream$FramingSink.write(Http2Stream.kt:535)
	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)
	at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.kt:34)
	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
2022-11-17T18:19:53.7279211Z 	at org.sonarsource.scanner.cli.Main.execute(Main.java:112)
2022-11-17T18:19:53.7281695Z 	at org.sonarsource.scanner.cli.Main.execute(Main.java:75)
2022-11-17T18:19:53.7282255Z 	at org.sonarsource.scanner.cli.Main.main(Main.java:61)
2022-11-17T18:19:53.7282814Z Caused by: okhttp3.internal.http2.StreamResetException: stream was reset: NO_ERROR
2022-11-17T18:19:53.7283412Z 	at okhttp3.internal.http2.Http2Stream.checkOutNotClosed$okhttp(Http2Stream.kt:648)
2022-11-17T18:19:53.7284048Z 	at okhttp3.internal.http2.Http2Stream$FramingSink.emitFrame(Http2Stream.kt:560)
2022-11-17T18:19:53.7284644Z 	at okhttp3.internal.http2.Http2Stream$FramingSink.write(Http2Stream.kt:535)
2022-11-17T18:19:53.7285179Z 	at okio.ForwardingSink.write(ForwardingSink.kt:29)
2022-11-17T18:19:53.7285707Z 	at okhttp3.internal.connection.Exchange$RequestBodySink.write(Exchange.kt:218)
2022-11-17T18:19:53.7286321Z 	at okio.RealBufferedSink.emitCompleteSegments(RealBufferedSink.kt:255)
2022-11-17T18:19:53.7286870Z 	at okio.RealBufferedSink.writeAll(RealBufferedSink.kt:194)
2022-11-17T18:19:53.7287413Z 	at okhttp3.RequestBody$Companion$asRequestBody$1.writeTo(RequestBody.kt:167)
2022-11-17T18:19:53.7288023Z 	at okhttp3.MultipartBody.writeOrCountBytes(MultipartBody.kt:157)
2022-11-17T18:19:53.7288545Z 	at okhttp3.MultipartBody.writeTo(MultipartBody.kt:93)
2022-11-17T18:19:53.7289098Z 	at okhttp3.internal.http.CallServerInterceptor.intercept(CallServerInterceptor.kt:59)
2022-11-17T18:19:53.7289737Z 	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
2022-11-17T18:19:53.7290385Z 	at org.sonarqube.ws.client.OkHttpClientBuilder.addHeaders(OkHttpClientBuilder.java:222)
2022-11-17T18:19:53.7291011Z 	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
2022-11-17T18:19:53.7291656Z 	at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.kt:34)
2022-11-17T18:19:53.7292299Z 	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
2022-11-17T18:19:53.7294301Z ##[error]at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.kt:95)
	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
	at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.kt:83)
2022-11-17T18:19:53.7295767Z 	at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.kt:95)
2022-11-17T18:19:53.7296487Z 	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
2022-11-17T18:19:53.7297212Z 	at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.kt:83)
2022-11-17T18:19:53.7298837Z ##[error]at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
	at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.kt:76)
2022-11-17T18:19:53.7300340Z 	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
2022-11-17T18:19:53.7301097Z 	at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.kt:76)
2022-11-17T18:19:53.7303510Z ##[error]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:203)
	... 25 more
ERROR:
2022-11-17T18:19:53.7305194Z 	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
2022-11-17T18:19:53.7305962Z 	at okhttp3.internal.connection.RealCall.getResponseWithInterceptorChain$okhttp(RealCall.kt:201)
2022-11-17T18:19:53.7306579Z 	at okhttp3.internal.connection.RealCall.execute(RealCall.kt:154)
2022-11-17T18:19:53.7307126Z 	at org.sonarqube.ws.client.HttpConnector.doCall(HttpConnector.java:203)
2022-11-17T18:19:53.7307554Z 	... 25 more
2022-11-17T18:19:53.7307792Z ERROR: 
2022-11-17T18:19:53.7900221Z ##[error]The SonarScanner did not complete successfully
2022-11-17T18:19:53.7907531Z The SonarScanner did not complete successfully
2022-11-17T18:19:53.7909262Z ##[error]18:19:53.785  Post-processing failed. Exit code: 1
2022-11-17T18:19:53.7910336Z 18:19:53.785  Post-processing failed. Exit code: 1
2022-11-17T18:19:53.8164566Z ##[error]The process 'D:\a\_tasks\SonarQubePrepare_15b84ca1-b62f-4a2a-a403-89b77a063157\5.8.0\classic-sonar-scanner-msbuild\SonarScanner.MSBuild.exe' failed with exit code 1
2022-11-17T18:19:53.9760423Z ##[section]Finishing: SonarQubeAnalyze

we fixed the problem, which was related to our reverse proxy, which did not allow the sent post-request size.

No idea why there was no error 413 printed to the console / after we changed it and set it higher (but not high enough) there was a more meaningful message.

1 Like

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