Process exited with exit value [ElasticSearch]: 1

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

More logs - es.log

2025.05.25 08:54:33 WARN es[o.e.c.r.a.DiskThresholdMonitor] flood stage disk watermark [95%] exceeded on [kJLQWN-5Rz-2fSQSY0luhQ][sonarqube][C:\Users\hp\OneDrive\Desktop\sonarqube-25.5.0.107428\data\es8] free: 15.8gb[3.3%], all indices on this node will be marked read-only
2025.05.25 08:54:33 INFO es[o.e.l.ClusterStateLicenseService] license [97ab843d-2043-4a99-9f33-b6ca4a91b26a] mode [basic] - valid
2025.05.25 08:54:33 INFO es[o.e.c.f.AbstractFileWatchingService] starting file watcher …
2025.05.25 08:54:33 INFO es[o.e.c.f.AbstractFileWatchingService] file settings service up and running [tid=40]
2025.05.25 08:54:33 INFO es[o.e.g.GatewayService] recovered [1] indices into cluster_state
2025.05.25 08:54:33 INFO es[o.e.r.s.FileSettingsService] setting file [C:\Users\hp\OneDrive\Desktop\sonarqube-25.5.0.107428\temp\conf\es\operator\settings.json] not found, initializing [file_settings] as empty
2025.05.25 08:54:33 INFO es[o.e.h.n.s.HealthNodeTaskExecutor] Node [{sonarqube}{kJLQWN-5Rz-2fSQSY0luhQ}] is selected as the current health node.
2025.05.25 08:54:33 INFO es[o.e.c.r.a.AllocationService] current.health=“RED” message=“Cluster health status changed from [YELLOW] to [RED] (reason: [reconcile-desired-balance]).” previous.health=“YELLOW” reason=“reconcile-desired-balance”
2025.05.25 08:54:46 INFO es[o.e.n.Node] stopping …
2025.05.25 08:54:46 INFO es[o.e.c.f.AbstractFileWatchingService] shutting down watcher thread
2025.05.25 08:54:46 INFO es[o.e.c.f.AbstractFileWatchingService] watcher service stopped
2025.05.25 08:54:46 INFO es[o.e.n.Node] stopped
2025.05.25 08:54:46 INFO es[o.e.n.Node] closing …
2025.05.25 08:54:46 INFO es[o.e.n.Node] closed

Finally I am able fix the issue. I did below changes

  1. Installed in different drive ( not in C drive ).
  2. I have space issue in my system.
  3. Increased the heapsize ( optional )