Template for a good bug report, formatted with Markdown:
- versions used (SonarQube 8.2, sonar-scanner-cli-4.2.0.1873-windows)
- Error:
06:32:05.988 INFO: Scanner configuration file: D:\sonarscanner\sonar_scanner\bin\..\conf\sonar-scanner.properties
06:32:06.003 INFO: Project root configuration file: D:\trailhead-code-samples-master\sonar-project.properties
06:32:06.034 INFO: SonarQube Scanner 4.2.0.1873
06:32:06.034 INFO: Java 11.0.3 AdoptOpenJDK (64-bit)
06:32:06.034 INFO: Windows Server 2016 10.0 amd64
06:32:06.191 DEBUG: keyStore is :
06:32:06.191 DEBUG: keyStore type is : pkcs12
06:32:06.191 DEBUG: keyStore provider is :
06:32:06.191 DEBUG: init keystore
06:32:06.191 DEBUG: init keymanager of type SunX509
06:32:06.378 DEBUG: Create: C:\Users\gajulm3!\.sonar\cache
06:32:06.378 INFO: User cache: C:\Users\gajulm3!\.sonar\cache
06:32:06.378 DEBUG: Create: C:\Users\gajulm3!\.sonar\cache\_tmp
06:32:06.378 DEBUG: Extract sonar-scanner-api-batch in temp...
06:32:06.394 DEBUG: Get bootstrap index...
06:32:06.394 DEBUG: Download: http://localhost:9000/sonar/batch/index
06:32:06.472 DEBUG: Get bootstrap completed
06:32:06.472 DEBUG: Create isolated classloader...
06:32:06.490 DEBUG: Start temp cleaning...
06:32:06.490 DEBUG: Temp cleaning done
06:32:06.490 DEBUG: Execution getVersion
06:32:06.506 INFO: SonarQube server null
06:32:06.506 INFO: Default locale: "en_US", source code encoding: "UTF-8"
06:32:06.506 DEBUG: Work directory: D:\trailhead-code-samples-master\.scannerwork
06:32:06.506 DEBUG: Execution execute
06:32:06.521 INFO: ------------------------------------------------------------------------
06:32:06.521 INFO: EXECUTION FAILURE
06:32:06.521 INFO: ------------------------------------------------------------------------
06:32:06.521 INFO: Total time: 0.549s
06:32:06.552 INFO: Final Memory: 3M/14M
06:32:06.552 INFO: ------------------------------------------------------------------------
06:32:06.568 ERROR: Error during SonarQube Scanner execution
java.lang.IllegalArgumentException: Logback configuration not found in classloader: /org/sonar/batch/bootstrapper/logback.xml
at org.sonar.core.config.Logback.configure(Logback.java:49)
at org.sonar.batch.bootstrapper.LoggingConfigurator.apply(LoggingConfigurator.java:50)
at org.sonar.batch.bootstrapper.LoggingConfigurator.apply(LoggingConfigurator.java:46)
at org.sonar.batch.bootstrapper.Batch.configureLogging(Batch.java:128)
at org.sonar.batch.bootstrapper.Batch.doExecute(Batch.java:70)
at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:66)
at org.sonarsource.scanner.api.internal.batch.BatchIsolatedLauncher.execute(BatchIsolatedLauncher.java:46)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at org.sonarsource.scanner.api.internal.IsolatedLauncherProxy.invoke(IsolatedLauncherProxy.java:60)
at com.sun.proxy.$Proxy0.execute(Unknown Source)
at org.sonarsource.scanner.api.EmbeddedScanner.doExecute(EmbeddedScanner.java:189)
at org.sonarsource.scanner.api.EmbeddedScanner.execute(EmbeddedScanner.java:138)
at org.sonarsource.scanner.cli.Main.execute(Main.java:112)
at org.sonarsource.scanner.cli.Main.execute(Main.java:75)
at org.sonarsource.scanner.cli.Main.main(Main.java:61)
We are facing error with sonar scanner, below are the details
-
Installed latest SonarQube on window server 2016. The web console is up and running.
-
Sonarscanner also configured on the same machine. Tested scanner with sample code and Its failing. Attached error log in the above.
-
To debug
-
Configured sonar scanner on windows 10 machines and it’s working fine. Able to see the analysis report on the sonarqube dashboard.
-
Configured sonar scanner on another windows server 2016 VM and same error.
I thought, its issue with windows server 2016. I tried with windows server 2016 on AWS. Configured sonar scanner with sonarcloud and its working.
**ERROR:**
06:32:06.490 DEBUG: Execution getVersion
06:32:06.506 INFO: SonarQube server null
the getVersion is not returning the sonarqube server version. Looks like, its failing this step.
Could you please help us on this.
Thanks,
Mohan Raja