ERROR Error during SonarScanner CLI execution

  • which versions are you using - SonarQube

  • how is SonarQube deployed: Docker

  • what are you trying to achieve : iam trying to run my code analysis

  • what have you tried so far to achieve this

  • 05:23:50.117 ERROR Error during SonarScanner CLI execution

  • java.lang.IllegalStateException: Failed to get server version

  • at org.sonarsource.scanner.lib.ScannerEngineBootstrapper.getServerVersion(ScannerEngineBootstrapper.java:147)

  • at org.sonarsource.scanner.lib.ScannerEngineBootstrapper.bootstrap(ScannerEngineBootstrapper.java:111)

  • at org.sonarsource.scanner.cli.Main.analyze(Main.java:75)

  • at org.sonarsource.scanner.cli.Main.main(Main.java:63)

  • Caused by: java.lang.IllegalStateException: Call to URL [http://server-ip/api/v2/analysis/version] failed

Hey there.

Can you share the full logs, including the command you executed?