Sonarqube(community version-10.6.0) is not working locally in windows

i installed sonarqube in windows. while running sonarqube i am getting error like this.

.\StartSonar.bat
Starting SonarQube…
2024.07.01 13:35:31 INFO app[o.s.a.AppFileSystem] Cleaning or creating temp directory C:\Users\d0n7b\Downloads\sonarqube-10.6.0.92116\sonarqube-10.6.0.92116\temp
2024.07.01 13:35:31 INFO app[o.s.a.es.EsSettings] Elasticsearch listening on [HTTP: 127.0.0.1:9001, TCP: 127.0.0.1:62750]
2024.07.01 13:35:31 INFO app[o.s.a.ProcessLauncherImpl] Launch process[ELASTICSEARCH] from [C:\Users\d0n7b\Downloads\sonarqube-10.6.0.92116\sonarqube-10.6.0.92116\elasticsearch]: C:\Program Files\Eclipse Adoptium\jdk-17.0.11.9-hotspot\bin\java -Xms4m -Xmx64m -XX:+UseSerialGC -Dcli.name=server -Dcli.script=./bin/elasticsearch -Dcli.libs=lib/tools/server-cli -Des.path.home=C:\Users\d0n7b\Downloads\sonarqube-10.6.0.92116\sonarqube-10.6.0.92116\elasticsearch -Des.path.conf=C:\Users\d0n7b\Downloads\sonarqube-10.6.0.92116\sonarqube-10.6.0.92116\temp\conf\es -Des.distribution.type=tar -cp C:\Users\d0n7b\Downloads\sonarqube-10.6.0.92116\sonarqube-10.6.0.92116\elasticsearch\lib*;C:\Users\d0n7b\Downloads\sonarqube-10.6.0.92116\sonarqube-10.6.0.92116\elasticsearch\lib\cli-launcher* org.elasticsearch.launcher.CliToolLauncher
2024.07.01 13:35:31 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:\Users\d0n7b\Downloads\sonarqube-10.6.0.92116\sonarqube-10.6.0.92116\logs\sonarqube.log

ERROR: Elasticsearch died while starting up, with exit code 1
2024.07.01 13:35:43 WARN app[o.s.a.p.AbstractManagedProcess] Process exited with exit value [ElasticSearch]: 1
2024.07.01 13:35:43 INFO app[o.s.a.SchedulerImpl] Process[ElasticSearch] is stopped
2024.07.01 13:35:43 INFO app[o.s.a.SchedulerImpl] SonarQube is stopped

and current java version is

openjdk 17.0.11 2024-04-16
OpenJDK Runtime Environment Temurin-17.0.11+9 (build 17.0.11+9)
OpenJDK 64-Bit Server VM Temurin-17.0.11+9 (build 17.0.11+9, mixed mode, sharing).

i am attaching the current logs and my java version. kindly guide me to how to resolve this issue.

Welcome :slight_smile:

We need to check the %SONARQUBE_HOME%\logs\es.log
To get more insight you may set the loglevel to DEBUG before restart, see
%SONARQUBE_HOME%/conf/sonar.properties see property sonar.log.level and set
sonar.log.level=DEBUG

Gilbert

sonat.txt (64.1 KB)
i enabled the debug log and attaching the log file with this message. kindly check it.

ERROR: Elasticsearch did not exit normally - check the logs at C:\Users\d0n7b\Downloads\sonarqube-10.6.0.92116\sonarqube-10.6.0.92116\logs\sonarqube.log

ERROR: Elasticsearch died while starting up, with exit code 1

Please attach all logs = sonar.log, es.log, web.log - with sensitive parts redacted.