I am trying install Sonar Community version , please find below logs the Sonar process is not coming up due to " Waiting for Elasticsearch to be up and running"
Full logs :
SONAR LOGS
C:\sonarqube-25.5.0.107428\bin\windows-x86-64>StartSonar.bat install
Starting SonarQube…
2025.05.24 16:08:16 INFO app[o.s.a.AppFileSystem] Cleaning or creating temp directory C:\sonarqube-25.5.0.107428\temp
2025.05.24 16:08:16 INFO app[o.s.a.es.EsSettings] Elasticsearch listening on [HTTP: 127.0.0.1:9001, TCP: 127.0.0.1:{}]
2025.05.24 16:08:16 INFO app[o.s.a.ProcessLauncherImpl] Launch process[ELASTICSEARCH] from [C:\sonarqube-25.5.0.107428\elasticsearch]: C:\Program Files\Java\jdk-17\bin\java -Xms4m -Xmx64m -XX:+UseSerialGC -Dcli.name=server -Dcli.script=./bin/elasticsearch -Dcli.libs=lib/tools/server-cli -Des.path.home=C:\sonarqube-25.5.0.107428\elasticsearch -Des.path.conf=C:\sonarqube-25.5.0.107428\temp\conf\es -Des.distribution.type=tar -cp C:\sonarqube-25.5.0.107428\elasticsearch\lib*;C:\sonarqube-25.5.0.107428\elasticsearch\lib\cli-launcher* org.elasticsearch.launcher.CliToolLauncher
2025.05.24 16:08:16 INFO app[o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
Standard Commons Logging discovery in action with spring-jcl: please remove commons-logging.jar from classpath in order to avoid potential conflicts
ERROR: Elasticsearch did not exit normally - check the logs at C:\sonarqube-25.5.0.107428\logs\sonarqube.log
ERROR: Elasticsearch died while starting up, with exit code 1
2025.05.24 16:08:30 WARN app[o.s.a.p.AbstractManagedProcess] Process exited with exit value [ElasticSearch]: 1
2025.05.24 16:08:30 INFO app[o.s.a.SchedulerImpl] Process[ElasticSearch] is stopped
2025.05.24 16:08:30 INFO app[o.s.a.SchedulerImpl] SonarQube is stopped
Java Version
C:\sonarqube-25.5.0.107428\bin\windows-x86-64>java -version
java version “17.0.15” 2025-04-15 LTS
Java™ SE Runtime Environment (build 17.0.15+9-LTS-241)
Java HotSpot™ 64-Bit Server VM (build 17.0.15+9-LTS-241, mixed mode, sharing)
SONARQUBE HOME
C:\sonarqube-25.5.0.107428\bin\windows-x86-64>echo %SONARQUBE_HOME%
C:\sonarqube-25.5.0.107428
JAVAHOME
C:\sonarqube-25.5.0.107428\bin\windows-x86-64>echo %JAVA_HOME%
C:\Program Files\Java\jdk-17
PATH
C:\sonarqube-25.5.0.107428\bin\windows-x86-64>echo %PATH%
C:\Python313\Scripts;C:\Python313;C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\wbin;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\WINDOWS\System32\OpenSSH;C:\Program Files\PuTTY;C:\Program Files\Git\cmd;C:\Users\hp\Downloads\terraform_1.7.4_windows_amd64;C:\Users\hp\OneDrive\Desktop\softwares\azcopy_windows_amd64_10.23.0;C:\Program Files\Microsoft SQL Server\150\Tools\Binn;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn;C:\Program Files\dotnet;C:\Program Files\Microsoft\Azure Functions Core Tools;C:\Program Files\nodejs;C:\ProgramData\chocolatey\bin;C:\sonarqube-25.5.0.107428;C:\Program Files\Java\jdk-17\bin;C:\WINDOWS\system32;C:\Users\hp\Downloads\apache-maven-3.9.1-bin\apache-maven-3.9.1\bin;C:\Users\hp\AppData\Local\Microsoft\WindowsApps;C:\Users\hp\AppData\Local\GitHubDesktop\bin;C:\Program Files\JetBrains\IntelliJ IDEA 2023.2.3\bin;;C:\Users\hp\Downloads\terraform_1.7.0_windows_386;C:\Users\hp\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\hp.dotnet\tools;C:\Users\hp\AppData\Roaming\npm