Getting Elastic Error , Sonar Exiting

getting below error when running:C:\sonarqube\bin\windows-x86-64\StartSonar.bat
Java:java version “17.0.5” 2022-10-18 LTS
Java™ SE Runtime Environment (build 17.0.5+9-LTS-191)
Java HotSpot™ 64-Bit Server VM (build 17.0.5+9-LTS-191, mixed mode, sharing)


Starting SonarQube…
2023.11.30 15:47:44 INFO app[o.s.a.AppFileSystem] Cleaning or creating temp directory C:\sonarqube\temp
2023.11.30 15:47:44 INFO app[] Elasticsearch listening on [HTTP:, TCP:]
2023.11.30 15:47:44 INFO app[o.s.a.ProcessLauncherImpl] Launch process[ELASTICSEARCH] from [C:\sonarqube\elasticsearch]: C:\Program Files\Java\jdk-17.0.5\bin\java -Xms4m -Xmx64m -XX:+UseSerialGC -Dcli.script=./bin/elasticsearch -Dcli.libs=lib/tools/server-cli -Des.path.home=C:\sonarqube\elasticsearch -Des.path.conf=C:\sonarqube\temp\conf\es -Des.distribution.type=tar -cp C:\sonarqube\elasticsearch\lib*;C:\sonarqube\elasticsearch\lib\cli-launcher* org.elasticsearch.launcher.CliToolLauncher
2023.11.30 15:47:44 INFO app[o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
ERROR: Elasticsearch did not exit normally - check the logs at C:\sonarqube\logs\sonarqube.log

ERROR: Elasticsearch exited unexpectedly, with exit code 1
2023.11.30 15:48:14 WARN app[o.s.a.p.AbstractManagedProcess] Process exited with exit value [ElasticSearch]: 1
2023.11.30 15:48:14 INFO app[o.s.a.SchedulerImpl] Process[ElasticSearch] is stopped
2023.11.30 15:48:14 INFO app[o.s.a.SchedulerImpl] SonarQube is stopped

Any help would be appreciated.


Welcome to the community!

Per the log snippet you’ve posted

you need to check your server logs, specifically the es.log.