I have configured sonarqube Community Build 9.9 on my server
JAVA version is 17
I have directly configured sonarqube from zip file
Initially sonarqube server was running perfectly, but later it stopped and and now when I am trying to restart it then its erroring while starting elasticserach
In logs its generating only two files
sonar.log
nohup.log
Below is the error found in nohup.log file :
2025.06.17 07:30:18 DEBUG app[ ][jdk.event.security] X509Certificate: Alg:SHA1withRSA, Serial:50946cec18ead59c4dd597ef758fa0ad, Subject:CN=XRamp Global Certification Authority, O=XRamp Security Services Inc, OU=www.xrampsecurity.com, C=US, Issuer:CN=XRamp Global Certification Authority, O=XRamp Security Services Inc, OU=www.xrampsecurity.com, C=US, Key type:RSA, Length:2048, Cert Id:-952474086, Valid from:11/1/04, 5:14 PM, Valid until:1/1/35, 5:37 AM
Error: Unable to initialize main class org.elasticsearch.bootstrap.Elasticsearch
Caused by: java.lang.NoClassDefFoundError: joptsimple/OptionSpec
2025.06.17 07:30:18 WARN app[][o.s.a.p.AbstractManagedProcess] Process exited with exit value [ElasticSearch]: 1
2025.06.17 07:30:18 DEBUG app[][o.s.a.p.ManagedProcessLifecycle] StopWatcher[ElasticSearch] tryToMoveTo ElasticSearch from STARTED to HARD_STOPPING => true
2025.06.17 07:30:18 DEBUG app[][o.s.a.p.ManagedProcessLifecycle] StopWatcher[ElasticSearch] tryToMoveTo ElasticSearch from HARD_STOPPING to FINALIZE_STOPPING => true
2025.06.17 07:30:18 INFO app[][o.s.a.SchedulerImpl] Process[ElasticSearch] is stopped
2025.06.17 07:30:18 DEBUG app[][o.s.a.p.ManagedProcessLifecycle] StopWatcher[ElasticSearch] tryToMoveTo ElasticSearch from FINALIZE_STOPPING to STOPPED => true
2025.06.17 07:30:18 DEBUG app[][o.s.a.NodeLifecycle] HardStopper-0 tryToMoveTo from STARTING to HARD_STOPPING => true
2025.06.17 07:30:18 DEBUG app[][o.s.a.p.ManagedProcessLifecycle] HardStopper-0 tryToMoveTo Compute Engine from INIT to HARD_STOPPING => false
2025.06.17 07:30:18 DEBUG app[][o.s.a.p.ManagedProcessLifecycle] HardStopper-0 tryToMoveTo Web Server from INIT to HARD_STOPPING => false
2025.06.17 07:30:18 DEBUG app[][o.s.a.p.ManagedProcessLifecycle] HardStopper-0 tryToMoveTo ElasticSearch from STOPPED to HARD_STOPPING => false
2025.06.17 07:30:18 DEBUG app[][o.s.a.NodeLifecycle] HardStopper-0 tryToMoveTo from HARD_STOPPING to FINALIZE_STOPPING => true
2025.06.17 07:30:18 DEBUG app[][o.s.a.NodeLifecycle] HardStopper-0 tryToMoveTo from FINALIZE_STOPPING to STOPPED => true
2025.06.17 07:30:18 INFO app[][o.s.a.SchedulerImpl] SonarQube is stopped
2025.06.17 07:30:18 DEBUG app[][o.s.a.NodeLifecycle] Shutdown Hook tryToMoveTo from STOPPED to STOPPING => false
Only the latest version of SonarQube Community Build is considered active, so you’ll need to update and see if the situation is still replicable before we can help you.
Hey Ann, thanks for replying
I have downloaded the latest sonarqube (sonarqube-25.6.0.109173), but it is still failing with the same error
Now also two logs files are getting generated
nohub.log
sonar.log
I think you’re going to have to look outside of SonarQube for this to find what’s preventing the creation of that log. SonarQube won’t run if it can’t write to its logs. You probably have some “helpful” process on the host that (at a guess) suddenly decided to lock down permissions, perhaps in the logs directory, perhaps more broadly.