Cannot download scanner-developer-

Hello. I am currently evaluating Developer edition Sonar Qube and just wanted to simply manually run a scan using sonar-scanner command.

Steps I have done so far:

  1. Installed the SonarQube on my Ubuntu Virtual machine using Docker image:
sudo docker pull sonarqube


sudo docker run -d --name sonarqube -e SONAR_ES_BOOTSTRAP_CHECKS_DISABLE=true -p 9000:9000 sonarqube:10.4.1-developer
  1. Connect to the SonarQube server via my and activate the Developer license via the provided key

  2. Add my first SonarQube project and taking note of the Project Key

  3. On my local Windows machine, I have installed SonarScanner (SonarScanner CLI)

and added it to my PATH

  1. I have also installed using the following URL:

and then add this to my PATH also.

  1. Follow instructions how to manually scan my project (GitHub - sonarsource-cfamily-examples/windows-msbuild-otherci-sq: An example C++ repository manually built with MSBuild on Windows analyzed on SonarQube)

  2. On the SonarQube server, go to User → My Account → Security and generate a project analysis token(i will further refer to it as MY_TOKEN)

  3. I have created a that contains the following:


# =====================================================
#   Properties that will be shared amongst all modules
# =====================================================
# SQ standard properties
  1. Try to run sonar-scanner command to check if everything seems to work. However, the error is returned:
PS C:\Users\\Desktop\WORK\my_project\my_project-fw> sonar-scanner -X
08:45:47.159 INFO: Scanner configuration file: C:\Users\\Desktop\WORK\Tools\sonar-scanner-\bin\..\conf\
08:45:47.169 INFO: Project root configuration file: C:\Users\\Desktop\WORK\my_project\my_project-fw\
08:45:47.196 INFO: SonarScanner
08:45:47.196 INFO: Java 17.0.7 Eclipse Adoptium (64-bit)
08:45:47.196 INFO: Windows 10 10.0 amd64
08:45:47.334 DEBUG: keyStore is : 
08:45:47.335 DEBUG: keyStore type is : pkcs12
08:45:47.335 DEBUG: keyStore provider is :   
08:45:47.335 DEBUG: init keystore
08:45:47.336 DEBUG: init keymanager of type SunX509
08:45:47.551 DEBUG: Create: C:\Users\\.sonar\cache
08:45:47.552 INFO: User cache: C:\Users\\.sonar\cache
08:45:47.552 DEBUG: Create: C:\Users\\.sonar\cache\_tmp
08:45:47.555 DEBUG: Extract sonar-scanner-api-batch in temp...
08:45:47.558 DEBUG: Get bootstrap index...
08:45:47.559 DEBUG: Download:
08:45:47.617 DEBUG: Get bootstrap completed
08:45:47.621 DEBUG: Download to C:\Users\\.sonar\cache\_tmp\fileCache8513639260937298928.tmp
08:45:47.633 INFO: ------------------------------------------------------------------------
08:45:47.634 INFO: ------------------------------------------------------------------------
08:45:47.635 INFO: Total time: 0.494s
08:45:47.661 INFO: Final Memory: 4M/34M
08:45:47.661 INFO: ------------------------------------------------------------------------
08:45:47.661 ERROR: Error during SonarScanner execution
org.sonarsource.scanner.api.internal.ScannerException: Unable to execute SonarScanner analysis
        at org.sonarsource.scanner.api.internal.IsolatedLauncherFactory.lambda$createLauncher$0(
        at java.base/ Source)
        at org.sonarsource.scanner.api.internal.IsolatedLauncherFactory.createLauncher(
        at org.sonarsource.scanner.api.internal.IsolatedLauncherFactory.createLauncher(
        at org.sonarsource.scanner.api.EmbeddedScanner.doStart(
        at org.sonarsource.scanner.api.EmbeddedScanner.start(
        at org.sonarsource.scanner.cli.Main.execute(
        at org.sonarsource.scanner.cli.Main.main(
Caused by: java.lang.IllegalStateException: Fail to download scanner-developer- to C:\Users\\.sonar\cache\_tmp\fileCache8513639260937298928.tmp
        at org.sonarsource.scanner.api.internal.cache.FileCache.get(
        at org.sonarsource.scanner.api.internal.JarDownloader.lambda$getScannerEngineFiles$0(
        at java.base/$3$1.accept(Unknown Source)
        at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(Unknown Source)
        at java.base/ Source)
        at java.base/ Source)
        at java.base/$ReduceOp.evaluateSequential(Unknown Source)
        at java.base/ Source)
        at java.base/ Source)
        at org.sonarsource.scanner.api.internal.JarDownloader.getScannerEngineFiles(
        at org.sonarsource.scanner.api.internal.IsolatedLauncherFactory.lambda$createLauncher$0(
        ... 7 more
Caused by: Connection reset
        at java.base/ Source)
        at java.base/ Source)
        at java.base/$ Source)
        at java.base/$ Source)
        at org.sonarsource.scanner.api.internal.shaded.okio.Okio$
        at org.sonarsource.scanner.api.internal.shaded.okio.AsyncTimeout$
        at org.sonarsource.scanner.api.internal.shaded.okhttp.internal.http1.Http1ExchangeCodec$
        at org.sonarsource.scanner.api.internal.shaded.okhttp.internal.http1.Http1ExchangeCodec$
        at org.sonarsource.scanner.api.internal.shaded.okhttp.internal.connection.Exchange$
        at org.sonarsource.scanner.api.internal.shaded.okio.RealBufferedSource$
        at java.base/ Source)
        at java.base/java.nio.file.Files.copy(Unknown Source)
        at org.sonarsource.scanner.api.internal.ServerConnection.downloadFile(
        at org.sonarsource.scanner.api.internal.JarDownloader$
        ... 19 more

I would appreciate if someone could shed some light and help me setup SonarQube. What could be the issue with downloading the scanner-developer ? As I have read somewhere (Fail to download scanner-developer-, this could be related to antivirus. Could that be the case and should I contact my system administrators regarding this? Is there anything else to check/debug?


Rather than a virus scan, my first thought is a proxy. Your initial calls from the scanner to SonarQube work fine, so SonarQube is up and running, and its URL is correctly configured. It’s only when you start downloading artifacts that it stops working. I would talk to your network folks.