Prepare analysis on SonarQube failing as Sonar Scanner download aborted

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension) :9.9
  • how is SonarQube deployed: zip, Docker, Helm : Azure devops
  • what are you trying to achieve : added sonarqube tasks in Web application using Angular
  • what have you tried so far to achieve this: the issue is intermittent, and the sonar scanner download is failing. Recently we observed this issue.

Do not share screenshots of logs – share the text itself (bonus points for being well-formatted)!:

2024-06-24T22:53:23.2147096Z ##[debug]Evaluating condition for step: 'Prepare analysis on SonarQube'

##[debug]testing directory 'D:\Agent\_work\_temp'

Downloading: https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-6.0.0.4432.zip

##[debug]destination D:\Agent\_work\_temp\26ac7f23-3fe3-4bd8-98c9-50a8732574ef

##[debug]downloading
[debug]Agent environment resources - Disk: D:\ Available 475613.00 MB out of 511981.00 MB, Memory: Used 7753.00 MB out of 30719.00 MB, CPU: Usage 5.29%

##[debug]Agent environment resources - Disk: D:\ Available 475613.00 MB out of 511981.00 MB, Memory: Used 7758.00 MB out of 30719.00 MB, CPU: Usage 5.04%

##[debug]Agent environment resources - Disk: D:\ Available 475613.00 MB out of 511981.00 MB, Memory: Used 7770.00 MB out of 30719.00 MB, CPU: Usage 4.82%

##[debug]Agent environment resources - Disk: D:\ Available 475613.00 MB out of 511981.00 MB, Memory: Used 7769.00 MB out of 30719.00 MB, CPU: Usage 4.61%

##[debug]Agent environment resources - Disk: D:\ Available 475613.00 MB out of 511981.00 MB, Memory: Used 7768.00 MB out of 30719.00 MB, CPU: Usage 4.42%

##[debug
##[debug]Agent environment resources - Disk: D:\ Available 475611.00 MB out of 511981.00 MB, Memory: Used 7763.00 MB out of 30719.00 MB, CPU: Usage 1.35%

##[debug]Agent environment resources - Disk: D:\ Available 475611.00 MB out of 511981.00 MB, Memory: Used 7762.00 MB out of 30719.00 MB, CPU: Usage 1.34%

**##[debug]task result: Failed**

**##[error]Aborted**

##[debug]Processed: ##vso[task.issue type=error;]Aborted

##[debug]Processed: ##vso[task.complete result=Failed;]Aborted

##[debug]set SONAR_SCANNER_LOCATION=

##[debug]Processed: ##vso[task.setvariable variable=SONAR_SCANNER_LOCATION;isOutput=false;issecret=false;]

##[debug]download complete

##[debug]Downloaded file size: 1736120 bytes

##[warning]Content-Length (4370449 bytes) did not match downloaded file size (1736120 bytes).

**##[debug]Processed: ##vso[task.issue type=warning;]Content-Length (4370449 bytes) did not match downloaded file size (1736120 bytes).**

Finishing: Prepare analysis on SonarQube

Hi,

According to your log, the scanner download was aborted. That’s probably something going on on the build-agent side. It looks like you had plenty of disk and CPU available, so it’s not obvious why the job would be aborted externally, but that appears to be what happened.

 
HTH,
Ann