Fail to download libraries from server

As of this morning we receive this error when running sonar-runner, yesterday our scans were working:

SonarQube Runner 2.4
Java 1.8.0_141 Oracle Corporation (64-bit)
Linux 4.9.77-31.58.amzn1.x86_64 amd64
INFO: Error stacktraces are turned on.
INFO: Runner configuration file: /opt/sonar-runner/conf/
INFO: Project configuration file: NONE
INFO: Default locale: "en_US", source code encoding: "UTF-8" (analysis is platform dependent)
INFO: Work directory: /opt/sonar-runner-2.4/bin/./.sonar
INFO: SonarQube Server
INFO: ------------------------------------------------------------------------
INFO: ------------------------------------------------------------------------
Total time: 1.063s
Final Memory: 5M/241M
INFO: ------------------------------------------------------------------------
ERROR: Error during Sonar runner execution
java.lang.IllegalStateException: Fail to download libraries from server
at org.sonar.runner.impl.Jars.dowloadFiles(
at org.sonar.runner.impl.JarDownloader.checkVersionAndDownload(
at org.sonar.runner.impl.BatchLauncher$
at Method)
at org.sonar.runner.impl.BatchLauncher.doExecute(
at org.sonar.runner.impl.BatchLauncher.execute(
at org.sonar.runner.api.EmbeddedRunner.doExecute(
at org.sonar.runner.api.Runner.execute(
at org.sonar.runner.Main.executeTask(
at org.sonar.runner.Main.execute(
at org.sonar.runner.Main.main(
Caused by: java.lang.ArrayIndexOutOfBoundsException: 1
at org.sonar.runner.impl.Jars.dowloadFiles(
... 12 more
1 Like

We had the same issue using mvn org.sonarsource.scanner.maven:sonar-maven-plugin:3.2:sonar. The issue is described in .

Updating the scanner to the latest version ( fixed the issue.


Yes, updating the version of sonar scanner worked for me as well.