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:
- 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:
- 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