Run Code Analysis task is failing with Error

I am using SonarQube Enterprise edition(9.6.1.59531), integrated SonarQube with AzureDevOps , using Standalone scanner.

“Prepare analysis Configuration” task was successful. There is no issue with Service connection. Run Code Analysis task is failing with below errors. Execution is successful till "Create: “C:\windows\ServiceProfiles\NetworkService.sonar\cache_tmp” folder creation. it is failing while downloading “scanner-enterprise-9.6.1.59531-all.jar”

I have no clue how to fix this issue.

Errors:

2022-10-19T09:42:48.3892123Z ##[error]Caused by: java.lang.IllegalStateException: Fail to download scanner-enterprise-9.6.1.59531-all.jar to C:\windows\ServiceProfiles\NetworkService\.sonar\cache\_tmp\fileCache10265798419020121311.tmp
	at org.sonarsource.scanner.api.internal.cache.FileCache.download(FileCache.java:100)
	at org.sonarsource.scanner.api.internal.cache.FileCache.get(FileCache.java:84)
	at org.sonarsource.scanner.api.internal.JarDownloader.lambda$getScannerEngineFiles$0(JarDownloader.java:60)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:195)
2022-10-19T09:42:48.3894612Z Caused by: java.lang.IllegalStateException: Fail to download scanner-enterprise-9.6.1.59531-all.jar to C:\windows\ServiceProfiles\NetworkService\.sonar\cache\_tmp\fileCache10265798419020121311.tmp
...
...
2022-10-19T09:42:48.3911906Z ##[error]Caused by: java.net.SocketException: Connection reset
2022-10-19T09:42:48.3912714Z Caused by: java.net.SocketException: Connection reset

More log:

More Information](http://redirect.sonarsource.com/doc/install-configure-scanner-tfs-ts.html)
2022-10-19T09:41:50.5734671Z ==============================================================================
2022-10-19T09:41:50.8708005Z [command]C:\windows\system32\cmd.exe /D /S /C "J:\_workB\_tasks\SonarQubeAnalyze_6d01813a-9589-4b15-8491-8164aeb38055\5.8.0\sonar-scanner\bin\sonar-scanner.bat"
2022-10-19T09:41:51.1232131Z INFO: Scanner configuration file: J:\_workB\_tasks\SonarQubeAnalyze_6d01813a-9589-4b15-8491-8164aeb38055\5.8.0\sonar-scanner\bin\..\conf\sonar-scanner.properties
2022-10-19T09:41:51.1239323Z INFO: Project root configuration file: NONE
2022-10-19T09:41:51.1869892Z 15:11:51.182 INFO: SonarScanner 4.7.0.2747
2022-10-19T09:41:51.1870418Z 15:11:51.182 INFO: Java 11.0.7 Oracle Corporation (64-bit)
2022-10-19T09:41:51.1870845Z 15:11:51.182 INFO: Windows Server 2019 10.0 amd64
2022-10-19T09:41:51.3225594Z 15:11:51.307 DEBUG: keyStore is : 
2022-10-19T09:41:51.3226848Z 15:11:51.307 DEBUG: keyStore type is : pkcs12
2022-10-19T09:41:51.3227335Z 15:11:51.307 DEBUG: keyStore provider is : 
2022-10-19T09:41:51.3227729Z 15:11:51.307 DEBUG: init keystore
2022-10-19T09:41:51.3228130Z 15:11:51.307 DEBUG: init keymanager of type SunX509
2022-10-19T09:41:51.5006207Z 15:11:51.495 DEBUG: Create: C:\windows\ServiceProfiles\NetworkService\.sonar\cache
2022-10-19T09:41:51.5009758Z 15:11:51.495 INFO: User cache: C:\windows\ServiceProfiles\NetworkService\.sonar\cache
2022-10-19T09:41:51.5010540Z 15:11:51.495 DEBUG: Create: C:\windows\ServiceProfiles\NetworkService\.sonar\cache\_tmp
2022-10-19T09:41:51.5035355Z 15:11:51.495 DEBUG: Extract sonar-scanner-api-batch in temp...
2022-10-19T09:41:51.5072133Z 15:11:51.495 DEBUG: Get bootstrap index...
2022-10-19T09:41:51.5073541Z 15:11:51.495 DEBUG: Download: http://10.0.253.11:9000/batch/index
2022-10-19T09:41:51.5718427Z 15:11:51.557 DEBUG: Get bootstrap completed
2022-10-19T09:41:51.5785569Z 15:11:51.573 DEBUG: Download http://10.0.253.11:9000/batch/file?name=scanner-enterprise-9.6.1.59531-all.jar to C:\windows\ServiceProfiles\NetworkService\.sonar\cache\_tmp\fileCache10265798419020121311.tmp
2022-10-19T09:42:48.3702406Z ##[error]15:12:48.360 ERROR: SonarQube server [http://10.0.253.11:9000] can not be reached
2022-10-19T09:42:48.3707197Z 15:12:48.360 ERROR: SonarQube server [http://10.0.253.11:9000] can not be reached
2022-10-19T09:42:48.3708353Z 15:12:48.360 INFO: ------------------------------------------------------------------------
2022-10-19T09:42:48.3709280Z 15:12:48.360 INFO: EXECUTION FAILURE

Regards,
Gopal.

Hi Gopal,

My first stop for this “connection reset” error would be your network folks. I suspect they have something “helpful” on the network that’s interfering with the download. Can you check with them?

If they deny responsibility, can you provide the full analysis log, starting from the analysis command?

 
Ann

Hi Ann,

I informed Network team. They are checking , but there is no clue as of now.

I am getting two different errors when I use two different scanners (Standalone scanner, MSBuild scanner).

Errors when Standalone scanner is used. PrepareAnalysis task is successful. RunCodeAnalysis is failing with error

=====
2022-10-24T05:08:53.9932679Z ##[section]Starting: Prepare analysis on SonarQube
2022-10-24T05:08:54.0084823Z ==============================================================================
2022-10-24T05:08:54.0085215Z Task         : Prepare Analysis Configuration
2022-10-24T05:08:54.0085529Z Description  : Prepare SonarQube analysis configuration
2022-10-24T05:08:54.0085801Z Version      : 5.8.0
2022-10-24T05:08:54.0086022Z Author       : sonarsource
2022-10-24T05:08:54.0086527Z Help         : Version: 5.8.0. [More Information](http://redirect.sonarsource.com/doc/install-configure-scanner-tfs-ts.html)
2022-10-24T05:08:54.0087003Z ==============================================================================
2022-10-24T05:09:02.1523393Z ##[section]Finishing: Prepare analysis on SonarQube




2022-10-24T05:09:18.2520134Z ##[section]Starting: Run Code Analysis
2022-10-24T05:09:18.2682378Z ==============================================================================
2022-10-24T05:09:18.2682738Z Task         : Run Code Analysis
2022-10-24T05:09:18.2683078Z Description  : Run scanner and upload the results to the SonarQube server.
2022-10-24T05:09:18.2683367Z Version      : 5.8.0
2022-10-24T05:09:18.2683593Z Author       : sonarsource
2022-10-24T05:09:18.2684201Z Help         : Version: 5.8.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-10-24T05:09:18.2684862Z ==============================================================================
2022-10-24T05:09:19.2762791Z [command]C:\windows\system32\cmd.exe /D /S /C "J:\_workB\_tasks\SonarQubeAnalyze_6d01813a-9589-4b15-8491-8164aeb38055\5.8.0\sonar-scanner\bin\sonar-scanner.bat"
2022-10-24T05:09:19.5158198Z INFO: Scanner configuration file: J:\_workB\_tasks\SonarQubeAnalyze_6d01813a-9589-4b15-8491-8164aeb38055\5.8.0\sonar-scanner\bin\..\conf\sonar-scanner.properties
2022-10-24T05:09:19.5225298Z INFO: Project root configuration file: NONE
2022-10-24T05:09:19.5731377Z 10:39:19.569 INFO: SonarScanner 4.7.0.2747
2022-10-24T05:09:19.5731902Z 10:39:19.569 INFO: Java 11.0.7 Oracle Corporation (64-bit)
2022-10-24T05:09:19.5732322Z 10:39:19.569 INFO: Windows Server 2019 10.0 amd64
2022-10-24T05:09:19.7073596Z 10:39:19.694 DEBUG: keyStore is : 
2022-10-24T05:09:19.7074075Z 10:39:19.694 DEBUG: keyStore type is : pkcs12
2022-10-24T05:09:19.7074535Z 10:39:19.694 DEBUG: keyStore provider is : 
2022-10-24T05:09:19.7074912Z 10:39:19.694 DEBUG: init keystore
2022-10-24T05:09:19.7076021Z 10:39:19.694 DEBUG: init keymanager of type SunX509
2022-10-24T05:09:19.8946725Z 10:39:19.881 DEBUG: Create: C:\windows\ServiceProfiles\NetworkService\.sonar\cache
2022-10-24T05:09:19.8951183Z 10:39:19.881 INFO: User cache: C:\windows\ServiceProfiles\NetworkService\.sonar\cache
2022-10-24T05:09:19.8951755Z 10:39:19.881 DEBUG: Create: C:\windows\ServiceProfiles\NetworkService\.sonar\cache\_tmp
2022-10-24T05:09:19.8975501Z 10:39:19.881 DEBUG: Extract sonar-scanner-api-batch in temp...
2022-10-24T05:09:19.9009835Z 10:39:19.897 DEBUG: Get bootstrap index...
2022-10-24T05:09:19.9010527Z 10:39:19.897 DEBUG: Download: http://xx.xx.xx.xx:9000/batch/index
2022-10-24T05:09:19.9841421Z 10:39:19.975 DEBUG: Get bootstrap completed
2022-10-24T05:09:19.9896510Z 10:39:19.975 DEBUG: Download http://xx.xx.xx.xx:9000/batch/file?name=scanner-enterprise-9.6.1.59531-all.jar to C:\windows\ServiceProfiles\NetworkService\.sonar\cache\_tmp\fileCache4797912115657989140.tmp
2022-10-24T05:10:16.7632102Z ##[error]10:40:16.741 ERROR: SonarQube server [http://xx.xx.xx.xx:9000] can not be reached
2022-10-24T05:10:16.7635345Z 10:40:16.741 ERROR: SonarQube server [http://xx.xx.xx.xx:9000] can not be reached
2022-10-24T05:10:16.7636190Z 10:40:16.757 INFO: ------------------------------------------------------------------------
2022-10-24T05:10:16.7636866Z 10:40:16.757 INFO: EXECUTION FAILURE
2022-10-24T05:10:16.7637521Z 10:40:16.757 INFO: ------------------------------------------------------------------------
2022-10-24T05:10:16.7638212Z 10:40:16.757 INFO: Total time: 57.266s
2022-10-24T05:10:16.7793265Z 10:40:16.773 INFO: Final Memory: 3M/68M
2022-10-24T05:10:16.7795724Z ##[error]10:40:16.773 ERROR: Error during SonarScanner execution
2022-10-24T05:10:16.7796727Z 10:40:16.773 ERROR: Error during SonarScanner execution
2022-10-24T05:10:16.7797214Z 10:40:16.773 INFO: ------------------------------------------------------------------------
2022-10-24T05:10:16.7798113Z ##[error]org.sonarsource.scanner.api.internal.ScannerException: Unable to execute SonarScanner analysis
2022-10-24T05:10:16.7799092Z org.sonarsource.scanner.api.internal.ScannerException: Unable to execute SonarScanner analysis
2022-10-24T05:10:16.7800585Z ##[error]at org.sonarsource.scanner.api.internal.IsolatedLauncherFactory.lambda$createLauncher$0(IsolatedLauncherFactory.java:85)
2022-10-24T05:10:16.7804369Z ##[error]at java.base/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)
2022-10-24T05:10:16.7805462Z 
2022-10-24T05:10:16.7805811Z 	at java.base/java.security.AccessController.doPrivileged(Native Method)
2022-10-24T05:10:16.7806391Z 	at org.sonarsource.scanner.api.internal.IsolatedLauncherFactory.createLauncher(IsolatedLauncherFactory.java:74)
2022-10-24T05:10:16.7808643Z ##[error]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)
2022-10-24T05:10:16.7809904Z 
2022-10-24T05:10:16.7810298Z 	at org.sonarsource.scanner.api.EmbeddedScanner.doStart(EmbeddedScanner.java:185)
2022-10-24T05:10:16.7810866Z 	at org.sonarsource.scanner.api.EmbeddedScanner.start(EmbeddedScanner.java:123)
2022-10-24T05:10:16.7811373Z 	at org.sonarsource.scanner.cli.Main.execute(Main.java:73)
2022-10-24T05:10:16.7812110Z ##[error]at org.sonarsource.scanner.cli.Main.main(Main.java:61)
2022-10-24T05:10:16.7813568Z 	at org.sonarsource.scanner.cli.Main.main(Main.java:61)
2022-10-24T05:10:16.7814888Z ##[error]Caused by: java.lang.IllegalStateException: Fail to download scanner-enterprise-9.6.1.59531-all.jar to C:\windows\ServiceProfiles\NetworkService\.sonar\cache\_tmp\fileCache4797912115657989140.tmp
2022-10-24T05:10:16.7816471Z Caused by: java.lang.IllegalStateException: Fail to download scanner-enterprise-9.6.1.59531-all.jar to C:\windows\ServiceProfiles\NetworkService\.sonar\cache\_tmp\fileCache4797912115657989140.tmp
2022-10-24T05:10:16.7819566Z ##[error]at org.sonarsource.scanner.api.internal.cache.FileCache.download(FileCache.java:100)
	at org.sonarsource.scanner.api.internal.cache.FileCache.get(FileCache.java:84)
	at org.sonarsource.scanner.api.internal.JarDownloader.lambda$getScannerEngineFiles$0(JarDownloader.java:60)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:195)
	at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1654)
	at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484)
2022-10-24T05:10:16.7821823Z 	at org.sonarsource.scanner.api.internal.cache.FileCache.download(FileCache.java:100)
2022-10-24T05:10:16.7825334Z 	at org.sonarsource.scanner.api.internal.cache.FileCache.get(FileCache.java:84)
2022-10-24T05:10:16.7825959Z 	at org.sonarsource.scanner.api.internal.JarDownloader.lambda$getScannerEngineFiles$0(JarDownloader.java:60)
2022-10-24T05:10:16.7826575Z 	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:195)
2022-10-24T05:10:16.7827166Z 	at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1654)
2022-10-24T05:10:16.7827746Z 	at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484)
2022-10-24T05:10:16.7829727Z ##[error]at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)
	at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:913)
	at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
	at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:578)
2022-10-24T05:10:16.7831792Z 	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)
2022-10-24T05:10:16.7832393Z 	at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:913)
2022-10-24T05:10:16.7832959Z 	at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
2022-10-24T05:10:16.7834559Z ##[error]at org.sonarsource.scanner.api.internal.JarDownloader.getScannerEngineFiles(JarDownloader.java:61)
	at org.sonarsource.scanner.api.internal.JarDownloader.download(JarDownloader.java:53)
2022-10-24T05:10:16.7836251Z 
2022-10-24T05:10:16.7836707Z 	at org.sonarsource.scanner.api.internal.JarDownloader.getScannerEngineFiles(JarDownloader.java:61)
2022-10-24T05:10:16.7837304Z 	at org.sonarsource.scanner.api.internal.JarDownloader.download(JarDownloader.java:53)
2022-10-24T05:10:16.7838482Z ##[error]at org.sonarsource.scanner.api.internal.IsolatedLauncherFactory.lambda$createLauncher$0(IsolatedLauncherFactory.java:76)
	... 7 more
2022-10-24T05:10:16.7840007Z 	at org.sonarsource.scanner.api.internal.IsolatedLauncherFactory.lambda$createLauncher$0(IsolatedLauncherFactory.java:76)
2022-10-24T05:10:16.7840496Z 	... 7 more
2022-10-24T05:10:16.7841136Z ##[error]Caused by: java.net.SocketException: Connection reset
2022-10-24T05:10:16.7841971Z Caused by: java.net.SocketException: Connection reset
2022-10-24T05:10:16.7847176Z ##[error]at java.base/java.net.SocketInputStream.read(SocketInputStream.java:186)
	at java.base/java.net.SocketInputStream.read(SocketInputStream.java:140)
	at org.sonarsource.scanner.api.internal.shaded.okio.Okio$2.read(Okio.java:140)
	at org.sonarsource.scanner.api.internal.shaded.okio.AsyncTimeout$2.read(AsyncTimeout.java:237)
	at org.sonarsource.scanner.api.internal.shaded.okio.RealBufferedSource.indexOf(RealBufferedSource.java:358)
	at org.sonarsource.scanner.api.internal.shaded.okio.RealBufferedSource.readUtf8LineStrict(RealBufferedSource.java:230)
	at org.sonarsource.scanner.api.internal.shaded.okhttp.internal.http1.Http1ExchangeCodec.readHeaderLine(Http1ExchangeCodec.java:242)
	at org.sonarsource.scanner.api.internal.shaded.okhttp.internal.http1.Http1ExchangeCodec.readResponseHeaders(Http1ExchangeCodec.java:213)
	at org.sonarsource.scanner.api.internal.shaded.okhttp.internal.connection.Exchange.readResponseHeaders(Exchange.java:115)
2022-10-24T05:10:16.7850409Z 	at java.base/java.net.SocketInputStream.read(SocketInputStream.java:186)
2022-10-24T05:10:16.7850944Z 	at java.base/java.net.SocketInputStream.read(SocketInputStream.java:140)
2022-10-24T05:10:16.7851476Z 	at org.sonarsource.scanner.api.internal.shaded.okio.Okio$2.read(Okio.java:140)
2022-10-24T05:10:16.7852065Z 	at org.sonarsource.scanner.api.internal.shaded.okio.AsyncTimeout$2.read(AsyncTimeout.java:237)
2022-10-24T05:10:16.7852697Z 	at org.sonarsource.scanner.api.internal.shaded.okio.RealBufferedSource.indexOf(RealBufferedSource.java:358)
2022-10-24T05:10:16.7853402Z 	at org.sonarsource.scanner.api.internal.shaded.okio.RealBufferedSource.readUtf8LineStrict(RealBufferedSource.java:230)
2022-10-24T05:10:16.7854156Z 	at org.sonarsource.scanner.api.internal.shaded.okhttp.internal.http1.Http1ExchangeCodec.readHeaderLine(Http1ExchangeCodec.java:242)
2022-10-24T05:10:16.7854949Z 	at org.sonarsource.scanner.api.internal.shaded.okhttp.internal.http1.Http1ExchangeCodec.readResponseHeaders(Http1ExchangeCodec.java:213)
2022-10-24T05:10:16.7857282Z ##[error]at org.sonarsource.scanner.api.internal.shaded.okhttp.internal.http.CallServerInterceptor.intercept(CallServerInterceptor.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.connection.ConnectInterceptor.intercept(ConnectInterceptor.java:43)
2022-10-24T05:10:16.7858631Z 
2022-10-24T05:10:16.7859138Z 	at org.sonarsource.scanner.api.internal.shaded.okhttp.internal.http.CallServerInterceptor.intercept(CallServerInterceptor.java:94)
2022-10-24T05:10:16.7859900Z 	at org.sonarsource.scanner.api.internal.shaded.okhttp.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:142)
2022-10-24T05:10:16.7860654Z 	at org.sonarsource.scanner.api.internal.shaded.okhttp.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.java:43)
2022-10-24T05:10:16.7862367Z ##[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.http.RealInterceptorChain.proceed(RealInterceptorChain.java:117)
2022-10-24T05:10:16.7863950Z 	at org.sonarsource.scanner.api.internal.shaded.okhttp.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:142)
2022-10-24T05:10:16.7864710Z 	at org.sonarsource.scanner.api.internal.shaded.okhttp.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:117)
2022-10-24T05:10:16.7866937Z ##[error]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)
2022-10-24T05:10:16.7869039Z 	at org.sonarsource.scanner.api.internal.shaded.okhttp.internal.cache.CacheInterceptor.intercept(CacheInterceptor.java:94)
2022-10-24T05:10:16.7869930Z 	at org.sonarsource.scanner.api.internal.shaded.okhttp.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:142)
2022-10-24T05:10:16.7870672Z 	at org.sonarsource.scanner.api.internal.shaded.okhttp.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:117)
2022-10-24T05:10:16.7873760Z ##[error]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)
2022-10-24T05:10:16.7875565Z 	at org.sonarsource.scanner.api.internal.shaded.okhttp.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.java:93)
2022-10-24T05:10:16.7876315Z 	at org.sonarsource.scanner.api.internal.shaded.okhttp.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:142)
2022-10-24T05:10:16.7877123Z 	at org.sonarsource.scanner.api.internal.shaded.okhttp.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.java:88)
2022-10-24T05:10:16.7881847Z ##[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.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.downloadFile(ServerConnection.java:80)
	at org.sonarsource.scanner.api.internal.JarDownloader$ScannerFileDownloader.download(JarDownloader.java:73)
	at org.sonarsource.scanner.api.internal.cache.FileCache.download(FileCache.java:98)
2022-10-24T05:10:16.7885362Z 	at org.sonarsource.scanner.api.internal.shaded.okhttp.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:142)
2022-10-24T05:10:16.7886441Z 	at org.sonarsource.scanner.api.internal.shaded.okhttp.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:117)
2022-10-24T05:10:16.7887695Z 	at org.sonarsource.scanner.api.internal.shaded.okhttp.RealCall.getResponseWithInterceptorChain(RealCall.java:221)
2022-10-24T05:10:16.7889918Z 	at org.sonarsource.scanner.api.internal.shaded.okhttp.RealCall.execute(RealCall.java:81)
2022-10-24T05:10:16.7891754Z 	at org.sonarsource.scanner.api.internal.ServerConnection.callUrl(ServerConnection.java:115)
2022-10-24T05:10:16.7892972Z 	at org.sonarsource.scanner.api.internal.ServerConnection.downloadFile(ServerConnection.java:80)
2022-10-24T05:10:16.7893676Z 	at org.sonarsource.scanner.api.internal.JarDownloader$ScannerFileDownloader.download(JarDownloader.java:73)
2022-10-24T05:10:16.7894743Z ##[error]... 19 more
10:40:16.773 ERROR:
2022-10-24T05:10:16.7895442Z 
2022-10-24T05:10:16.7895671Z 	... 19 more
2022-10-24T05:10:16.7896398Z ##[error]10:40:16.773 ERROR: Re-run SonarScanner using the -X switch to enable full debug logging.
2022-10-24T05:10:16.7897061Z 
2022-10-24T05:10:16.7897439Z 10:40:16.773 ERROR: Re-run SonarScanner using the -X switch to enable full debug logging.
2022-10-24T05:10:16.8512395Z ##[error]The process 'J:\_workB\_tasks\SonarQubeAnalyze_6d01813a-9589-4b15-8491-8164aeb38055\5.8.0\sonar-scanner\bin\sonar-scanner.bat' failed with exit code 1
2022-10-24T05:10:16.8596740Z ##[section]Finishing: Run Code Analysis

=====

Errors when MSBuild scanner was used. Prepare analysis tasks is failed.

===
2022-10-24T05:28:43.3970964Z ##[section]Starting: Prepare analysis on SonarQube
2022-10-24T05:28:43.4109384Z ==============================================================================
2022-10-24T05:28:43.4109764Z Task         : Prepare Analysis Configuration
2022-10-24T05:28:43.4110146Z Description  : Prepare SonarQube analysis configuration
2022-10-24T05:28:43.4110410Z Version      : 5.8.0
2022-10-24T05:28:43.4110639Z Author       : sonarsource
2022-10-24T05:28:43.4111147Z Help         : Version: 5.8.0. [More Information](http://redirect.sonarsource.com/doc/install-configure-scanner-tfs-ts.html)
2022-10-24T05:28:43.4111629Z ==============================================================================
2022-10-24T05:28:45.3631608Z [command]J:\_workB\_tasks\SonarQubePrepare_15b84ca1-b62f-4a2a-a403-89b77a063157\5.8.0\classic-sonar-scanner-msbuild\SonarScanner.MSBuild.exe begin /k:SmartCare_SmartCare_AYPrH9zVia6bruOSawl6
2022-10-24T05:28:45.6581283Z SonarScanner for MSBuild 5.8
2022-10-24T05:28:45.6584504Z Using the .NET Framework version of the Scanner for MSBuild
2022-10-24T05:28:45.7215825Z Pre-processing started.
2022-10-24T05:28:45.8467735Z Preparing working directories...
2022-10-24T05:28:46.1136452Z 10:58:46.109  Updating build integration targets...
2022-10-24T05:28:46.3254522Z 10:58:46.313  Fetching analysis configuration settings...
2022-10-24T05:29:43.1461273Z ##[error]10:59:43.128  Failed to request and parse 'http://xx.xx.xx.xx:9000/api/settings/values?component=SmartCare_SmartCare_AYPrH9zVia6bruOSawl6': An error occurred while sending the request.
2022-10-24T05:29:43.1464375Z 10:59:43.128  Failed to request and parse 'http://xx.xx.xx.xx:9000/api/settings/values?component=SmartCare_SmartCare_AYPrH9zVia6bruOSawl6': An error occurred while sending the request.
2022-10-24T05:29:43.1471302Z 
2022-10-24T05:29:43.1472290Z ##[error]Unhandled Exception:
2022-10-24T05:29:43.1553343Z ##[error]System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a receive. ---> System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. ---> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host
   at System.Net.Sockets.Socket.EndReceive(IAsyncResult asyncResult)
   at System.Net.Sockets.NetworkStream.EndRead(IAsyncResult asyncResult)
   --- End of inner exception stack trace ---
   at System.Net.Sockets.NetworkStream.EndRead(IAsyncResult asyncResult)
   at System.Net.Connection.ReadCallback(IAsyncResult asyncResult)
   --- End of inner exception stack trace ---
   at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
   at System.Net.Http.HttpClientHandler.GetResponseCallback(IAsyncResult ar)
   --- End of inner exception stack trace ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at SonarScanner.MSBuild.PreProcessor.WebClientDownloader.<TryDownloadIfExists>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at SonarScanner.MSBuild.PreProcessor.SonarWebService.<>c__DisplayClass20_0.<<GetComponentProperties>b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at SonarScanner.MSBuild.PreProcessor.SonarWebService.<DoLogExceptions>d__17`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at SonarScanner.MSBuild.PreProcessor.SonarWebService.<GetComponentProperties>d__20.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at SonarScanner.MSBuild.PreProcessor.SonarWebService.<GetProperties>d__12.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at SonarScanner.MSBuild.PreProcessor.TeamBuildPreProcessor.<FetchArgumentsAndRulesets>d__14.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at SonarScanner.MSBuild.PreProcessor.TeamBuildPreProcessor.<DoExecute>d__12.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at SonarScanner.MSBuild.PreProcessor.TeamBuildPreProcessor.<Execute>d__11.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at SonarScanner.MSBuild.BootstrapperClass.<PreProcess>d__10.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at SonarScanner.MSBuild.BootstrapperClass.<Execute>d__8.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at SonarScanner.MSBuild.Program.<Execute>d__4.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at SonarScanner.MSBuild.Program.<Execute>d__3.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at SonarScanner.MSBuild.Program.<Main>d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at SonarScanner.MSBuild.Program.<Main>(String[] args)
2022-10-24T05:29:43.1566397Z System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a receive. ---> System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. ---> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host
2022-10-24T05:29:43.1567730Z    at System.Net.Sockets.Socket.EndReceive(IAsyncResult asyncResult)
2022-10-24T05:29:43.1568198Z    at System.Net.Sockets.NetworkStream.EndRead(IAsyncResult asyncResult)
2022-10-24T05:29:43.1569081Z    --- End of inner exception stack trace ---
2022-10-24T05:29:43.1569508Z    at System.Net.Sockets.NetworkStream.EndRead(IAsyncResult asyncResult)
2022-10-24T05:29:43.1569951Z    at System.Net.Connection.ReadCallback(IAsyncResult asyncResult)
2022-10-24T05:29:43.1570362Z    --- End of inner exception stack trace ---
2022-10-24T05:29:43.1570783Z    at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
2022-10-24T05:29:43.1571248Z    at System.Net.Http.HttpClientHandler.GetResponseCallback(IAsyncResult ar)
2022-10-24T05:29:43.1571674Z    --- End of inner exception stack trace ---
2022-10-24T05:29:43.1572091Z    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
2022-10-24T05:29:43.1572582Z    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2022-10-24T05:29:43.1573138Z    at SonarScanner.MSBuild.PreProcessor.WebClientDownloader.<TryDownloadIfExists>d__5.MoveNext()
2022-10-24T05:29:43.1573657Z --- End of stack trace from previous location where exception was thrown ---
2022-10-24T05:29:43.1574125Z    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
2022-10-24T05:29:43.1574616Z    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2022-10-24T05:29:43.1575208Z    at SonarScanner.MSBuild.PreProcessor.SonarWebService.<>c__DisplayClass20_0.<<GetComponentProperties>b__0>d.MoveNext()
2022-10-24T05:29:43.1575765Z --- End of stack trace from previous location where exception was thrown ---
2022-10-24T05:29:43.1576215Z    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
2022-10-24T05:29:43.1576718Z    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2022-10-24T05:29:43.1577260Z    at SonarScanner.MSBuild.PreProcessor.SonarWebService.<DoLogExceptions>d__17`1.MoveNext()
2022-10-24T05:29:43.1577748Z --- End of stack trace from previous location where exception was thrown ---
2022-10-24T05:29:43.1578216Z    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
2022-10-24T05:29:43.1578722Z    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2022-10-24T05:29:43.1579272Z    at SonarScanner.MSBuild.PreProcessor.SonarWebService.<GetComponentProperties>d__20.MoveNext()
2022-10-24T05:29:43.1579767Z --- End of stack trace from previous location where exception was thrown ---
2022-10-24T05:29:43.1580233Z    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
2022-10-24T05:29:43.1580734Z    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2022-10-24T05:29:43.1581254Z    at SonarScanner.MSBuild.PreProcessor.SonarWebService.<GetProperties>d__12.MoveNext()
2022-10-24T05:29:43.1581748Z --- End of stack trace from previous location where exception was thrown ---
2022-10-24T05:29:43.1582212Z    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
2022-10-24T05:29:43.1582703Z    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2022-10-24T05:29:43.1583269Z    at SonarScanner.MSBuild.PreProcessor.TeamBuildPreProcessor.<FetchArgumentsAndRulesets>d__14.MoveNext()
2022-10-24T05:29:43.1583798Z --- End of stack trace from previous location where exception was thrown ---
2022-10-24T05:29:43.1584260Z    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
2022-10-24T05:29:43.1585380Z    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2022-10-24T05:29:43.1585924Z    at SonarScanner.MSBuild.PreProcessor.TeamBuildPreProcessor.<DoExecute>d__12.MoveNext()
2022-10-24T05:29:43.1586428Z --- End of stack trace from previous location where exception was thrown ---
2022-10-24T05:29:43.1586877Z    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
2022-10-24T05:29:43.1587381Z    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2022-10-24T05:29:43.1587990Z    at SonarScanner.MSBuild.PreProcessor.TeamBuildPreProcessor.<Execute>d__11.MoveNext()
2022-10-24T05:29:43.1588477Z --- End of stack trace from previous location where exception was thrown ---
2022-10-24T05:29:43.1588942Z    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
2022-10-24T05:29:43.1589445Z    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2022-10-24T05:29:43.1589943Z    at SonarScanner.MSBuild.BootstrapperClass.<PreProcess>d__10.MoveNext()
2022-10-24T05:29:43.1590415Z --- End of stack trace from previous location where exception was thrown ---
2022-10-24T05:29:43.1590878Z    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
2022-10-24T05:29:43.1591378Z    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2022-10-24T05:29:43.1591865Z    at SonarScanner.MSBuild.BootstrapperClass.<Execute>d__8.MoveNext()
2022-10-24T05:29:43.1592334Z --- End of stack trace from previous location where exception was thrown ---
2022-10-24T05:29:43.1592796Z    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
2022-10-24T05:29:43.1593281Z    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2022-10-24T05:29:43.1593766Z    at SonarScanner.MSBuild.Program.<Execute>d__4.MoveNext()
2022-10-24T05:29:43.1594220Z --- End of stack trace from previous location where exception was thrown ---
2022-10-24T05:29:43.1594667Z    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
2022-10-24T05:29:43.1595168Z    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2022-10-24T05:29:43.1595653Z    at SonarScanner.MSBuild.Program.<Execute>d__3.MoveNext()
2022-10-24T05:29:43.1596085Z --- End of stack trace from previous location where exception was thrown ---
2022-10-24T05:29:43.1596546Z    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
2022-10-24T05:29:43.1597133Z    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2022-10-24T05:29:43.1597704Z    at SonarScanner.MSBuild.Program.<Main>d__2.MoveNext()
2022-10-24T05:29:43.1598153Z --- End of stack trace from previous location where exception was thrown ---
2022-10-24T05:29:43.1598614Z    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
2022-10-24T05:29:43.1599119Z    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2022-10-24T05:29:43.1599582Z    at SonarScanner.MSBuild.Program.<Main>(String[] args)
2022-10-24T05:29:43.1747535Z ##[error]The process 'J:\_workB\_tasks\SonarQubePrepare_15b84ca1-b62f-4a2a-a403-89b77a063157\5.8.0\classic-sonar-scanner-msbuild\SonarScanner.MSBuild.exe' failed with exit code 3762504530
2022-10-24T05:29:43.1855493Z ##[section]Finishing: Prepare analysis on SonarQube

===

I googled for the error:

“System.Net.Http.HttpRequestException: An error occurred while sending the request. —> System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a receive. —> System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. —> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host”

I got the below link. It says TLS 1.2 is required.

Our Networks folk had followed this link and did some changes. The issue is still there.

I posted all the log information in the above two posts.

Regards,
Gopal.

Hi,

This error is pretty clear. If the SonarQube URL is correct you need to talk to your network folks.

This error is pretty clear too.
If SonarQube closed the connection, which I sincerely doubt, you’ll at least find the request in the access log. And if you do, then there should be something in one of the other logs (probably web.log) about closing the connection. But I doubt the request ever got to SonarQube. Again, I would go back to your network folks.

 
Ann

Hi Ann,

Thanks for your reply.

SonarQube URL (http://10.0.253.11:9000/projects) is correct. I integrated the server with AzureDevOps and I am able to see the Project from AzureDevOps in SonarQube Web UI.

I just ran the AzureDevOps pipeline once again to check the logs

I see below logs in acess.log file. No other log file has any logs.

10.0.253.1 - - [25/Oct/2022:18:21:35 +0530] “GET /api/server/version HTTP/1.1” 200 - “-” “-” “AYPkV5vYgMuJzklqAEeI”
10.0.253.1 - - [25/Oct/2022:18:21:37 +0530] “GET /api/server/version HTTP/1.1” 200 - “-” “-” “AYPkV5vYgMuJzklqAEeJ”
10.0.253.1 - - [25/Oct/2022:18:21:37 +0530] “GET /api/editions/is_valid_license HTTP/1.1” 200 23 “-” “-” “AYPkV5vYgMuJzklqAEeK”
10.0.253.1 - - [25/Oct/2022:18:21:37 +0530] “GET /api/settings/values?component=SmartCare_SmartCare_AYPrH9zVia6bruOSawl6 HTTP/1.1” 200 - “-” “-” “AYPkV5vYgMuJzklqAEeL”
10.0.253.1 - - [25/Oct/2022:18:21:56 +0530] “GET /api/settings/values?component=SmartCare_SmartCare_AYPrH9zVia6bruOSawl6 HTTP/1.1” 200 - “-” “-” “AYPkV5vYgMuJzklqAEeM”
10.0.253.1 - - [25/Oct/2022:18:22:15 +0530] “GET /api/settings/values?component=SmartCare_SmartCare_AYPrH9zVia6bruOSawl6 HTTP/1.1” 200 - “-” “-” “AYPkV5vYgMuJzklqAEeN”

Regards,
Gopal.

Hi Gopal,

I don’t know what to tell you. The access log shows 200 responses - success. The fact that analysis isn’t receiving that 200 / successful response just tells me - again - that there’s something between SonarQube and the build agent that’s interfering.

 
:woman_shrugging:
Ann

Hi Ann,

I got your point. I posted my observations to close the loop for the questions/statements you posted.

I have another question related to below log statements.

2022-10-25T07:12:23.3275672Z 12:42:23.312 DEBUG: Create: C:\windows\ServiceProfiles\NetworkService\.sonar\cache
2022-10-25T07:12:23.3279139Z 12:42:23.312 INFO: User cache: C:\windows\ServiceProfiles\NetworkService\.sonar\cache
2022-10-25T07:12:23.3280650Z 12:42:23.312 DEBUG: Create: C:\windows\ServiceProfiles\NetworkService\.sonar\cache\_tmp
2022-10-25T07:12:23.3306778Z 12:42:23.327 DEBUG: Extract sonar-scanner-api-batch in temp...
2022-10-25T07:12:23.3338630Z 12:42:23.327 DEBUG: Get bootstrap index...
2022-10-25T07:12:23.3339484Z 12:42:23.327 DEBUG: Download: http://xx.xx.xx.xx:9000/batch/index
2022-10-25T07:12:23.3962216Z 12:42:23.390 DEBUG: Get bootstrap completed
2022-10-25T07:12:23.4018555Z 12:42:23.390 DEBUG: Download http://xx.xx.xx.xx:9000/batch/file?name=scanner-enterprise-9.6.1.59531-all.jar to C:\windows\ServiceProfiles\NetworkService\.sonar\cache\_tmp\fileCache15282666106412521291.tmp

I logged into the server and found that "C:\windows\ServiceProfiles\NetworkService" folder path is already present. The issue here is the “Run Analysis” task is not able to create ".sonar\cache_tmp" folders in the above folder path.

What could be the issue? What permissions need to be given in order for the Run Analysis task to create ".sonar\cache_tmp" folders.

I tried manually to create ".sonar\cache_tmp" folders, but I could not create them.

Regards,
Gopal.

Hi Gopal,

We try to keep it to one topic per thread. Otherwise, it gets messy, fast.

Please create a new thread for your new question.

 
Ann

Hi Ann,

I created new thread here.

Regards,
Gopal.