Startup errors with Sonarqube/Elastic

I am installing Sonarqube for the first time on a CentOS box and this is what I am getting. I have made no changes with the config files at all, just used the port number to be dynamic instead of 9000/9001. Any help will be appreciated. # ./ console
Running SonarQube…
wrapper | --> Wrapper Started as Console
wrapper | Launching a JVM…
jvm 1 | Wrapper (Version 3.2.3)
jvm 1 | Copyright 1999-2006 Tanuki Software, Inc. All Rights Reserved.
jvm 1 |
jvm 1 | 2020.05.12 10:28:18 INFO app[o.s.a.AppFileSystem] Cleaning or creating temp directory /opt/sonarqube-
jvm 1 | 2020.05.12 10:28:18 INFO app[] Elasticsearch listening on /
jvm 1 | 2020.05.12 10:28:18 INFO app[o.s.a.ProcessLauncherImpl] Launch process[[key=‘es’, ipcIndex=1, logFilenamePrefix=es]] from [/opt/sonarqube-]: /opt/sonarqube-
jvm 1 | 2020.05.12 10:28:18 INFO app[o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
jvm 1 | Exception in thread “EventWatcher[es]” java.lang.NoClassDefFoundError: org/apache/lucene/util/SetOnce
jvm 1 | at org.elasticsearch.common.settings.Settings$Builder.(
jvm 1 | at org.elasticsearch.common.settings.Settings$Builder.(
jvm 1 | at org.elasticsearch.common.settings.Settings.(


Welcome to the community!

What do your server logs say?


I tried to run Elastic manually and I see this

.com-/opt/sonarqube- # ./elasticsearch
Java HotSpot™ 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
Error: Could not find or load main class 8:-XX:+PrintGCDetails
Caused by: java.lang.ClassNotFoundException: 8:-XX:+PrintGCDetails

I’ll dig into the logs folder to see if I can find something there and post it here.

Server log has just the same stuff I posted above in the original post.


SonarQube runs its own ES process, you shouldn’t try to run it manually.

Without the errors from the server logs, there’s little anyone can do to help you.