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.

root@xxx.xxx.xxxxx.xxxxxx.com-/opt/sonarqube-8.3.1.34397/bin/linux-x86-64 # ./sonar.sh console
Running SonarQube…
wrapper | --> Wrapper Started as Console
wrapper | Launching a JVM…
jvm 1 | Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
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-8.3.1.34397/temp
jvm 1 | 2020.05.12 10:28:18 INFO app[o.s.a.es.EsSettings] Elasticsearch listening on /127.0.0.1:44831
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-8.3.1.34397/elasticsearch]: /opt/sonarqube-8.3.1.34397/elasticsearch/bin/elasticsearch
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.(Settings.java:787)
jvm 1 | at org.elasticsearch.common.settings.Settings$Builder.(Settings.java:782)
jvm 1 | at org.elasticsearch.common.settings.Settings.(Settings.java:84)

Hi,

Welcome to the community!

What do your server logs say?

 
Ann

I tried to run Elastic manually and I see this

.com-/opt/sonarqube-8.3.1.34397/elasticsearch/bin # ./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.

Hi,

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.

 
Ann