Unable to launch sonar server version:8.4

Hi Team,

Unable to launch sonar server.
attaching logs.es.log (3.7 KB) sonar.log (3.6 KB)

Hey there.

Looks like the Web Server process stopped first.

2020.08.06 16:41:46 INFO app[o.s.a.SchedulerImpl] Process[web] is stopped

There should be a web.log file in your logs folder that gives you details on why it stopped.

This also seems like a pretty big clue:

WARNING - Unable to load the Wrapper’s native library ‘wrapper.dll’.
The file is located on the path at the following location but
could not be loaded:
Please verify that the file is readable by the current user
and that the file has not been corrupted in any way.
One common cause of this problem is running a 32-bit version
of the Wrapper with a 64-bit version of Java, or vica versa.
This is a 32-bit JVM.
Reported cause:
C:\sonarqube-\bin\windows-x86-64\lib\wrapper.dll: Can’t load AMD 64-bit .dll on a IA 32-bit platform
System signals will not be handled correctly.

Are you using a 32-bit platform? SonarQube does not support running on a 32-bit machine, or with a 32-bit JVM.

Hi Colin,
Thanks for quick response!
I use 64-bit windows machine for running sonar server.
web.log (22.6 KB)
Attached web log file.
Please have a look an help me.
JDK used : jdk-8u251-windows-x64

Looks like you might have provided some database credentials while using the embedded database.

2020.08.06 17:17:01 ERROR web[][o.s.s.p.PlatformImpl] Web server startup failed
java.lang.IllegalStateException: Unable to start database
Caused by: org.h2.jdbc.JdbcSQLInvalidAuthorizationSpecException: Wrong user name or password [28000-199]
	at org.h2.message.DbException.getJdbcSQLException(DbException.java:459)
	at org.h2.message.DbException.getJdbcSQLException(DbException.java:427)
	at org.h2.message.DbException.get(DbException.java:205)
	at org.h2.message.DbException.get(DbException.java:181)
	at org.h2.message.DbException.get(DbException.java:170)

Did you provide any details to sonar.jdbc.* configuration parameters?

Yea, i have edited “sonar.jdbc.*” which i have commented now, now its up…Thank you!
Can you help me one more thing…using sonar qube server: 8.4 and license link is pointing to 8.2 version(evaluation one) can both be synqed?Can i be able to evaluate QNX based code?

To be clear, if you were trying to connect to an external database… you probably aren’t now. :smiley:

I’m not sure what you mean by “license link”. If your Server ID has changed and you need a new license, you should get in touch with contact@sonarsource.com.

SonarQube v8.4 supports analysis of code compiled with the QNX compiler.

I mean the evaluation licence points to sonar version 8.2 and the sonar server i have installed is v8.4, now can i be evaluate ? or do i need to get licence for version8.4?

Your license isn’t tied to a SonarQube version, but a Server ID that is typically persisted through upgrades of the SonarQube platform. However if you’re just evaluating on the embedded database, you may need to get a new license.


Thank you colin,we have got licence upgrade to qnx supported version, now i see

CFamily plugin supports multithreaded analysis:

  • to enable multithreaded analysis
    please specify the number of threads to use
    by setting the following property to your analysis:

  • if you do not want to enable multithreading
    please explicitly disable it
    by setting the following property to your analysis:

  • visit the documentation page for more information
    (Our LINK)

INFO: Using 1 thread for analysis according to value of “sonar.cfamily.threads” property.
INFO: Cache is explicitly disabled: Optional[false]
INFO: ------------------------------------------------------------------------
INFO: ------------------------------------------------------------------------
INFO: Total time: 46.979s
INFO: Final Memory: 87M/247M
INFO: ------------------------------------------------------------------------
ERROR: Error during SonarScanner execution
java.lang.IndexOutOfBoundsException: Index 2 out of bounds for length 2
at java.base/jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:64)
at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:70)
at java.base/jdk.internal.util.Preconditions.checkIndex(Preconditions.java:248)
at java.base/java.util.Objects.checkIndex(Objects.java:372)
at java.base/java.util.ArrayList.get(ArrayList.java:458)
at com.sonar.cpp.analyzer.MsvcDriver$ArgumentCursor.readPrefix(MsvcDriver.java:397)
at com.sonar.cpp.analyzer.QccDriver.onCapture(QccDriver.java:57)
at com.sonar.cpp.plugin.CFamilySensor.process(CFamilySensor.java:479)
at com.sonar.cpp.plugin.CFamilySensor.execute(CFamilySensor.java:317)
at org.sonar.scanner.sensor.AbstractSensorWrapper.analyse(AbstractSensorWrapper.java:48)
at org.sonar.scanner.sensor.ModuleSensorsExecutor.execute(ModuleSensorsExecutor.java:85)
at org.sonar.scanner.sensor.ModuleSensorsExecutor.execute(ModuleSensorsExecutor.java:62)
at org.sonar.scanner.scan.ModuleScanContainer.doAfterStart(ModuleScanContainer.java:82)
at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:137)
at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:123)
at org.sonar.scanner.scan.ProjectScanContainer.scan(ProjectScanContainer.java:388)
at org.sonar.scanner.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:384)
at org.sonar.scanner.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:353)
at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:137)
at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:123)
at org.sonar.scanner.bootstrap.GlobalContainer.doAfterStart(GlobalContainer.java:144)
at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:137)
at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:123)
at org.sonar.batch.bootstrapper.Batch.doExecute(Batch.java:72)
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(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
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)
ERROR: Re-run SonarScanner using the -X switch to enable full debug logging.

Please help!!