Context:
- Azure DevOps build pipeline
- Self-hosted build agents
- SonarQube Version 9.5 (build 56709) Community Edition
- Both build agents server and SonarQube server running on Windows 2016
2022-06-24T20:56:25.1288780Z ##[section]Starting: Running SonarQube analysis
2022-06-24T20:56:25.1439120Z ==============================================================================
2022-06-24T20:56:25.1439488Z Task : Run Code Analysis
2022-06-24T20:56:25.1439801Z Description : Run scanner and upload the results to the SonarQube server.
2022-06-24T20:56:25.1440103Z Version : 4.28.0
2022-06-24T20:56:25.1440307Z Author : sonarsource
2022-06-24T20:56:25.1440933Z Help : Version: 4.28.0. This task is not needed for Maven and Gradle projects since the scanner should be run as part of the build.
[More Information](http://redirect.sonarsource.com/doc/install-configure-scanner-tfs-ts.html)
2022-06-24T20:56:25.1441759Z ==============================================================================
2022-06-24T20:56:26.1161461Z [command]E:\1\_work\_tasks\SonarQubePrepare_15b84ca1-b62f-4a2a-a403-89b77a063157\4.28.0\classic-sonar-scanner-msbuild\SonarScanner.MSBuild.exe end
2022-06-24T20:56:26.1163265Z SonarScanner for MSBuild 5.5.3
2022-06-24T20:56:26.1163869Z Using the .NET Framework version of the Scanner for MSBuild
2022-06-24T20:56:26.1164211Z Post-processing started.
2022-06-24T20:56:26.1164837Z 20:56:25.894 20:56:25.894 WARNING: The following projects do not have a valid ProjectGuid and were not built using a valid solution (.sln) thus will be skipped from analysis...
2022-06-24T20:56:26.1167234Z C:\Windows\ServiceProfiles\NetworkService\AppData\Local\Temp\ps0gkct2.2ya\WorkerExtensions.csproj, C:\Windows\ServiceProfiles\NetworkService\AppData\Local\Temp\5ogvoss4.d11\WorkerExtensions.csproj, C:\Windows\ServiceProfiles\NetworkService\AppData\Local\Temp\qk1pxupy.hic\WorkerExtensions.csproj, C:\Windows\ServiceProfiles\NetworkService\AppData\Local\Temp\hpf3refo.s1j\WorkerExtensions.csproj, C:\Windows\ServiceProfiles\NetworkService\AppData\Local\Temp\er1cmpoq.dxd\WorkerExtensions.csproj, C:\Windows\ServiceProfiles\NetworkService\AppData\Local\Temp\oodml3xk.32x\WorkerExtensions.csproj, C:\Windows\ServiceProfiles\NetworkService\AppData\Local\Temp\cip1cy1i.oo1\WorkerExtensions.csproj, C:\Windows\ServiceProfiles\NetworkService\AppData\Local\Temp\gv2aksgj.z1o\WorkerExtensions.csproj, C:\Windows\ServiceProfiles\NetworkService\AppData\Local\Temp\yhntgctj.53p\WorkerExtensions.csproj, C:\Windows\ServiceProfiles\NetworkService\AppData\Local\Temp\2s0djr52.c0n\WorkerExtensions.csproj
2022-06-24T20:56:26.2545781Z Calling the TFS Processor executable...
2022-06-24T20:56:26.5167674Z Attempting to locate the CodeCoverage.exe tool...
2022-06-24T20:56:26.5209860Z Attempting to locate the CodeCoverage.exe tool using setup configuration...
2022-06-24T20:56:26.5394069Z Code coverage command line tool: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Team Tools\Dynamic Code Coverage Tools\CodeCoverage.exe
2022-06-24T20:56:26.5713484Z Fetching code coverage report information from TFS...
2022-06-24T20:56:26.5737554Z Attempting to locate a test results (.trx) file...
2022-06-24T20:56:26.8216792Z Looking for TRX files in: E:\1\_work\89\TestResults
2022-06-24T20:56:26.8230237Z No test results files found
2022-06-24T20:56:27.0541271Z Did not find any binary coverage files in the expected location.
2022-06-24T20:56:27.0572459Z Falling back on locating coverage files in the agent temp directory.
2022-06-24T20:56:27.0597777Z Searching for coverage files in E:\1\_work\_temp
2022-06-24T20:56:27.0605485Z All matching files: count=6
2022-06-24T20:56:27.0607346Z E:\1\_work\_temp\9366f36a-7236-45dd-b797-c49fb857d230\build-agents$_build-agents_2022-06-24.20_55_49.coverage
2022-06-24T20:56:27.0608163Z E:\1\_work\_temp\build-agents$_build-agents_2022-06-24_20_54_39\In\build-agents\build-agents$_build-agents_2022-06-24.20_54_25.coverage
2022-06-24T20:56:27.0609306Z E:\1\_work\_temp\build-agents$_build-agents_2022-06-24_20_55_54\In\build-agents\build-agents$_build-agents_2022-06-24.20_55_49.coverage
2022-06-24T20:56:27.0610106Z E:\1\_work\_temp\build-agents$_build-agents_2022-06-24_20_56_22\In\build-agents\build-agents$_build-agents_2022-06-24.20_56_18.coverage
2022-06-24T20:56:27.0610945Z E:\1\_work\_temp\d5388715-308d-44da-bd00-ea806d4cac73\build-agents$_build-agents_2022-06-24.20_54_25.coverage
2022-06-24T20:56:27.0611816Z E:\1\_work\_temp\f22dd6f4-2f26-49c0-a5f7-98391abe18e9\build-agents$_build-agents_2022-06-24.20_56_18.coverage
2022-06-24T20:56:27.3730823Z Unique coverage files: count=3
2022-06-24T20:56:27.3731482Z E:\1\_work\_temp\9366f36a-7236-45dd-b797-c49fb857d230\build-agents$_build-agents_2022-06-24.20_55_49.coverage
2022-06-24T20:56:27.3732162Z E:\1\_work\_temp\build-agents$_build-agents_2022-06-24_20_54_39\In\build-agents\build-agents$_build-agents_2022-06-24.20_54_25.coverage
2022-06-24T20:56:27.3732971Z E:\1\_work\_temp\build-agents$_build-agents_2022-06-24_20_56_22\In\build-agents\build-agents$_build-agents_2022-06-24.20_56_18.coverage
2022-06-24T20:56:27.3910480Z Executing file C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Team Tools\Dynamic Code Coverage Tools\CodeCoverage.exe
2022-06-24T20:56:27.3912065Z Args: analyze /output:E:\1\_work\_temp\9366f36a-7236-45dd-b797-c49fb857d230\build-agents$_build-agents_2022-06-24.20_55_49.coveragexml E:\1\_work\_temp\9366f36a-7236-45dd-b797-c49fb857d230\build-agents$_build-agents_2022-06-24.20_55_49.coverage
2022-06-24T20:56:27.3913171Z Working directory: E:\1\_work\_temp\9366f36a-7236-45dd-b797-c49fb857d230
2022-06-24T20:56:27.3914068Z Timeout (ms):60000
2022-06-24T20:56:27.3915069Z Process id: 5724
2022-06-24T20:56:28.1156651Z Process returned exit code 0
2022-06-24T20:56:28.1202805Z Executing file C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Team Tools\Dynamic Code Coverage Tools\CodeCoverage.exe
2022-06-24T20:56:28.1208131Z Args: analyze /output:E:\1\_work\_temp\build-agents$_build-agents_2022-06-24_20_54_39\In\build-agents\build-agents$_build-agents_2022-06-24.20_54_25.coveragexml E:\1\_work\_temp\build-agents$_build-agents_2022-06-24_20_54_39\In\build-agents\build-agents$_build-agents_2022-06-24.20_54_25.coverage
2022-06-24T20:56:28.1209292Z Working directory: E:\1\_work\_temp\build-agents$_build-agents_2022-06-24_20_54_39\In\build-agents
2022-06-24T20:56:28.1210505Z Timeout (ms):60000
2022-06-24T20:56:28.1211097Z Process id: 7096
2022-06-24T20:56:31.7835216Z Process returned exit code 0
2022-06-24T20:56:31.7988814Z Executing file C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Team Tools\Dynamic Code Coverage Tools\CodeCoverage.exe
2022-06-24T20:56:31.9157750Z Args: analyze /output:E:\1\_work\_temp\build-agents$_build-agents_2022-06-24_20_56_22\In\build-agents\build-agents$_build-agents_2022-06-24.20_56_18.coveragexml E:\1\_work\_temp\build-agents$_build-agents_2022-06-24_20_56_22\In\build-agents\build-agents$_build-agents_2022-06-24.20_56_18.coverage
2022-06-24T20:56:31.9159433Z Working directory: E:\1\_work\_temp\build-agents$_build-agents_2022-06-24_20_56_22\In\build-agents
2022-06-24T20:56:31.9160315Z Timeout (ms):60000
2022-06-24T20:56:31.9160680Z Process id: 4120
2022-06-24T20:56:31.9198058Z Process returned exit code 0
2022-06-24T20:56:31.9369328Z Coverage report conversion completed successfully.
2022-06-24T20:56:31.9542131Z The TFS Processor has finished
2022-06-24T20:56:31.9543153Z Calling the SonarScanner CLI...
2022-06-24T20:56:32.2274492Z INFO: Scanner configuration file: E:\1\_work\_tasks\SonarQubePrepare_15b84ca1-b62f-4a2a-a403-89b77a063157\4.28.0\classic-sonar-scanner-msbuild\sonar-scanner-4.6.2.2472\bin\..\conf\sonar-scanner.properties
2022-06-24T20:56:32.2289074Z INFO: Project root configuration file: E:\1\_work\89\.sonarqube\out\sonar-project.properties
2022-06-24T20:56:32.3870753Z INFO: SonarScanner 4.6.2.2472
2022-06-24T20:56:32.3871201Z INFO: Java 11.0.15 Oracle Corporation (64-bit)
2022-06-24T20:56:32.3871863Z INFO: Windows Server 2016 10.0 amd64
2022-06-24T20:56:32.8172201Z INFO: User cache: C:\Windows\ServiceProfiles\NetworkService\.sonar\cache
2022-06-24T20:56:33.0810441Z INFO: ------------------------------------------------------------------------
2022-06-24T20:56:33.0811216Z INFO: EXECUTION FAILURE
2022-06-24T20:56:33.0880707Z INFO: ------------------------------------------------------------------------
2022-06-24T20:56:33.0882763Z ##[error]ERROR: SonarQube server [https://sonarqube.xxxxxx.com.co] can not be reached
2022-06-24T20:56:33.0885208Z ERROR: SonarQube server [https://sonarqube.xxxxxx.com.co] can not be reached
2022-06-24T20:56:33.0885719Z INFO: Total time: 0.875s
2022-06-24T20:56:33.0976783Z ##[error]ERROR: Error during SonarScanner execution
2022-06-24T20:56:33.0977851Z ERROR: Error during SonarScanner execution
2022-06-24T20:56:33.0978194Z INFO: Final Memory: 4M/24M
2022-06-24T20:56:33.0978615Z INFO: ------------------------------------------------------------------------
2022-06-24T20:56:33.0979674Z ##[error]org.sonarsource.scanner.api.internal.ScannerException: Unable to execute SonarScanner analysis
2022-06-24T20:56:33.0981056Z org.sonarsource.scanner.api.internal.ScannerException: Unable to execute SonarScanner analysis
2022-06-24T20:56:33.0987569Z ##[error]at org.sonarsource.scanner.api.internal.IsolatedLauncherFactory.lambda$createLauncher$0(IsolatedLauncherFactory.java:85)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at org.sonarsource.scanner.api.internal.IsolatedLauncherFactory.createLauncher(IsolatedLauncherFactory.java:74)
2022-06-24T20:56:33.0994830Z at org.sonarsource.scanner.api.internal.IsolatedLauncherFactory.lambda$createLauncher$0(IsolatedLauncherFactory.java:85)
2022-06-24T20:56:33.0998411Z at java.base/java.security.AccessController.doPrivileged(Native Method)
2022-06-24T20:56:33.0999103Z at org.sonarsource.scanner.api.internal.IsolatedLauncherFactory.createLauncher(IsolatedLauncherFactory.java:74)
2022-06-24T20:56:33.1000744Z ##[error]at org.sonarsource.scanner.api.internal.IsolatedLauncherFactory.createLauncher(IsolatedLauncherFactory.java:70)
2022-06-24T20:56:33.1001993Z at org.sonarsource.scanner.api.internal.IsolatedLauncherFactory.createLauncher(IsolatedLauncherFactory.java:70)
2022-06-24T20:56:33.1004384Z ##[error]at org.sonarsource.scanner.api.EmbeddedScanner.doStart(EmbeddedScanner.java:185)
at org.sonarsource.scanner.api.EmbeddedScanner.start(EmbeddedScanner.java:123)
2022-06-24T20:56:33.1005699Z at org.sonarsource.scanner.api.EmbeddedScanner.doStart(EmbeddedScanner.java:185)
2022-06-24T20:56:33.1006309Z at org.sonarsource.scanner.api.EmbeddedScanner.start(EmbeddedScanner.java:123)
2022-06-24T20:56:33.1008176Z ##[error]at org.sonarsource.scanner.cli.Main.execute(Main.java:73)
at org.sonarsource.scanner.cli.Main.main(Main.java:61)
2022-06-24T20:56:33.1009316Z at org.sonarsource.scanner.cli.Main.execute(Main.java:73)
2022-06-24T20:56:33.1009803Z at org.sonarsource.scanner.cli.Main.main(Main.java:61)
2022-06-24T20:56:33.1017445Z ##[error]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: org.sonarsource.scanner.api.internal.shaded.okhttp.internal.http2.StreamResetException: stream was reset: HTTP_1_1_REQUIRED
at org.sonarsource.scanner.api.internal.shaded.okhttp.internal.http2.Http2Stream.takeHeaders(Http2Stream.java:159)
2022-06-24T20:56:33.1024119Z Caused by: java.lang.IllegalStateException: Fail to get bootstrap index from server
2022-06-24T20:56:33.1025164Z at org.sonarsource.scanner.api.internal.BootstrapIndexDownloader.getIndex(BootstrapIndexDownloader.java:42)
2022-06-24T20:56:33.1026283Z at org.sonarsource.scanner.api.internal.JarDownloader.getScannerEngineFiles(JarDownloader.java:58)
2022-06-24T20:56:33.1027028Z at org.sonarsource.scanner.api.internal.JarDownloader.download(JarDownloader.java:53)
2022-06-24T20:56:33.1027766Z at org.sonarsource.scanner.api.internal.IsolatedLauncherFactory.lambda$createLauncher$0(IsolatedLauncherFactory.java:76)
2022-06-24T20:56:33.1030014Z ... 7 more
2022-06-24T20:56:33.1031115Z Caused by: org.sonarsource.scanner.api.internal.shaded.okhttp.internal.http2.StreamResetException: stream was reset: HTTP_1_1_REQUIRED
2022-06-24T20:56:33.1031909Z at org.sonarsource.scanner.api.internal.shaded.okhttp.internal.http2.Http2Stream.takeHeaders(Http2Stream.java:159)
2022-06-24T20:56:33.1037856Z ##[error]at org.sonarsource.scanner.api.internal.shaded.okhttp.internal.http2.Http2ExchangeCodec.readResponseHeaders(Http2ExchangeCodec.java:136)
at org.sonarsource.scanner.api.internal.shaded.okhttp.internal.connection.Exchange.readResponseHeaders(Exchange.java:115)
at org.sonarsource.scanner.api.internal.shaded.okhttp.internal.http.CallServerInterceptor.intercept(CallServerInterceptor.java:94)
2022-06-24T20:56:33.1042475Z at org.sonarsource.scanner.api.internal.shaded.okhttp.internal.http2.Http2ExchangeCodec.readResponseHeaders(Http2ExchangeCodec.java:136)
2022-06-24T20:56:33.1044672Z at org.sonarsource.scanner.api.internal.shaded.okhttp.internal.connection.Exchange.readResponseHeaders(Exchange.java:115)
2022-06-24T20:56:33.1046581Z at org.sonarsource.scanner.api.internal.shaded.okhttp.internal.http.CallServerInterceptor.intercept(CallServerInterceptor.java:94)
2022-06-24T20:56:33.1060418Z ##[error]at org.sonarsource.scanner.api.internal.shaded.okhttp.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:142)
at org.sonarsource.scanner.api.internal.shaded.okhttp.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.java:43)
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:
2022-06-24T20:56:33.1068228Z at org.sonarsource.scanner.api.internal.shaded.okhttp.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:142)
2022-06-24T20:56:33.1069329Z at org.sonarsource.scanner.api.internal.shaded.okhttp.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.java:43)
2022-06-24T20:56:33.1070562Z at org.sonarsource.scanner.api.internal.shaded.okhttp.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:142)
2022-06-24T20:56:33.1071427Z at org.sonarsource.scanner.api.internal.shaded.okhttp.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:117)
2022-06-24T20:56:33.1072253Z at org.sonarsource.scanner.api.internal.shaded.okhttp.internal.cache.CacheInterceptor.intercept(CacheInterceptor.java:94)
2022-06-24T20:56:33.1073787Z at org.sonarsource.scanner.api.internal.shaded.okhttp.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:142)
2022-06-24T20:56:33.1075044Z at org.sonarsource.scanner.api.internal.shaded.okhttp.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:117)
2022-06-24T20:56:33.1075873Z at org.sonarsource.scanner.api.internal.shaded.okhttp.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.java:93)
2022-06-24T20:56:33.1076735Z at org.sonarsource.scanner.api.internal.shaded.okhttp.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:142)
2022-06-24T20:56:33.1077685Z at org.sonarsource.scanner.api.internal.shaded.okhttp.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.java:88)
2022-06-24T20:56:33.1078633Z at org.sonarsource.scanner.api.internal.shaded.okhttp.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:142)
2022-06-24T20:56:33.1079509Z at org.sonarsource.scanner.api.internal.shaded.okhttp.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:117)
2022-06-24T20:56:33.1080332Z at org.sonarsource.scanner.api.internal.shaded.okhttp.RealCall.getResponseWithInterceptorChain(RealCall.java:221)
2022-06-24T20:56:33.1081099Z at org.sonarsource.scanner.api.internal.shaded.okhttp.RealCall.execute(RealCall.java:81)
2022-06-24T20:56:33.1081800Z at org.sonarsource.scanner.api.internal.ServerConnection.callUrl(ServerConnection.java:115)
2022-06-24T20:56:33.1082573Z at org.sonarsource.scanner.api.internal.ServerConnection.downloadString(ServerConnection.java:99)
2022-06-24T20:56:33.1083306Z at org.sonarsource.scanner.api.internal.BootstrapIndexDownloader.getIndex(BootstrapIndexDownloader.java:39)
2022-06-24T20:56:33.1083813Z ... 10 more
2022-06-24T20:56:33.1084066Z ERROR:
2022-06-24T20:56:33.1342386Z ##[error]The SonarScanner did not complete successfully
2022-06-24T20:56:33.1543611Z The SonarScanner did not complete successfully
2022-06-24T20:56:33.1548511Z ##[error]20:56:33.125 Post-processing failed. Exit code: 1
2022-06-24T20:56:33.1549757Z 20:56:33.125 Post-processing failed. Exit code: 1
2022-06-24T20:56:33.1553210Z ##[error]The process 'E:\1\_work\_tasks\SonarQubePrepare_15b84ca1-b62f-4a2a-a403-89b77a063157\4.28.0\classic-sonar-scanner-msbuild\SonarScanner.MSBuild.exe' failed with exit code 1
2022-06-24T20:56:33.1576174Z ##[section]Finishing: Running SonarQube analysis
I used CURL to download file from batch/index with success, so it doesn’t seem a network issue.