SonarQube stops after a few seconds

Hello,
I just downloaded SonarQube and I am running into an error. It seems to be stopping after a few seconds. I am suspecting it is either an Elasticsearch or Java problem. I read somewhere it only runs on Java 11, and I had Java 13, but once I downgraded it didnt seem to change. Changing the wrapper.conf from java to usr/bin/java didnt seem to change anything either. Here is the es.log message:

2019.12.09 16:38:58 WARN es[o.e.b.ElasticsearchUncaughtExceptionHandler] uncaught exception in thread [main]
org.elasticsearch.bootstrap.StartupException: org.elasticsearch.common.inject.CreationException: Guice creation errors:

  1. An exception was caught and reported. Message: access denied (“java.lang.RuntimePermission” “accessClassInPackage.jdk.internal.vm.annotation”)
    at unknown

1 error
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:163) ~[elasticsearch-6.8.0.jar:6.8.0]
at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:150) ~[elasticsearch-6.8.0.jar:6.8.0]
at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86) ~[elasticsearch-6.8.0.jar:6.8.0]
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124) ~[elasticsearch-cli-6.8.0.jar:6.8.0]
at org.elasticsearch.cli.Command.main(Command.java:90) ~[elasticsearch-cli-6.8.0.jar:6.8.0]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:116) ~[elasticsearch-6.8.0.jar:6.8.0]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:93) ~[elasticsearch-6.8.0.jar:6.8.0]
Caused by: org.elasticsearch.common.inject.CreationException: Guice creation errors:

  1. An exception was caught and reported. Message: access denied (“java.lang.RuntimePermission” “accessClassInPackage.jdk.internal.vm.annotation”)
    at unknown

And here is the sonar.log file:

2019.12.09 16:38:52 INFO app[o.s.a.AppFileSystem] Cleaning or creating temp directory /Users/benjaminsymes/Downloads/sonarqube-8.0/temp

2019.12.09 16:38:52 INFO app[o.s.a.es.EsSettings] Elasticsearch listening on /127.0.0.1:9001

2019.12.09 16:38:52 INFO app[o.s.a.ProcessLauncherImpl] Launch process[[key=‘es’, ipcIndex=1, logFilenamePrefix=es]] from [/Users/benjaminsymes/Downloads/sonarqube-8.0/elasticsearch]: /Users/benjaminsymes/Downloads/sonarqube-8.0/elasticsearch/bin/elasticsearch

2019.12.09 16:38:52 INFO app[o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running

2019.12.09 16:38:52 INFO app[o.e.p.PluginsService] no modules loaded

2019.12.09 16:38:52 INFO app[o.e.p.PluginsService] loaded plugin [org.elasticsearch.transport.Netty4Plugin]

OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.

2019.12.09 16:38:58 WARN app[o.s.a.p.AbstractManagedProcess] Process exited with exit value [es]: 1

2019.12.09 16:38:58 INFO app[o.s.a.SchedulerImpl] Process[es] is stopped

2019.12.09 16:38:58 INFO app[o.s.a.SchedulerImpl] SonarQube is stopped

<-- Wrapper Stopped

I feel like it could be something really simple. Any input would be greatly appreciated!
Thank you!
Benjamin

Welcome to the Community forum! (and nice bike :smiley: )

You have the exact same error message as here, have a look at your java version.

1 Like

Thank you Pierre, it was my Java version. I changed from Java 13 to Java 11 and it fixed my problem.