I cannot start SonarQube

I am using sonarqube-10.7.0.96327, and set the SONAR_JAVA_PATH to java 17
I´ve tried to delete the sonar/data folder, but i get the same error
When i try to start it, both using the service, or the startsonar.bat, on windows, it returns

type or 2024.11.06 10:24:19 ERROR web[][o.s.s.p.Platform] Background initialization failed. Stopping SonarQube
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jdk.internal.loader.ClassLoaders$AppClassLoader@659e0bfd-org.sonar.server.es.IndexCreator': Initialization of bean failed; nested exception is org.sonar.server.es.ElasticsearchException: Fail to execute es requestES get request for key 'dbVendor' on index 'metadatas'
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:628)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542)
	at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:336)
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:334)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:209)
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:955)
	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932)
	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:591)
	at org.sonar.core.platform.SpringComponentContainer.startComponents(SpringComponentContainer.java:225)
	at org.sonar.server.platform.platformlevel.PlatformLevel.start(PlatformLevel.java:80)
	at org.sonar.server.platform.platformlevel.PlatformLevel4.start(PlatformLevel4.java:733)
	at org.sonar.server.platform.PlatformImpl.start(PlatformImpl.java:214)
	at org.sonar.server.platform.PlatformImpl.startLevel34Containers(PlatformImpl.java:194)
	at org.sonar.server.platform.PlatformImpl$AutoStarterRunnable.runIfNotAborted(PlatformImpl.java:362)
	at org.sonar.server.platform.PlatformImpl$1.doRun(PlatformImpl.java:113)
	at org.sonar.server.platform.PlatformImpl$AutoStarterRunnable.run(PlatformImpl.java:346)
	at java.base/java.lang.Thread.run(Thread.java:842)
Caused by: org.sonar.server.es.ElasticsearchException: Fail to execute es requestES get request for key 'dbVendor' on index 'metadatas'
	at org.sonar.server.es.EsClient.execute(EsClient.java:336)
	at org.sonar.server.es.EsClient.get(EsClient.java:182)
	at org.sonar.server.es.metadata.MetadataIndexImpl.getMetadata(MetadataIndexImpl.java:92)
	at org.sonar.server.es.metadata.MetadataIndexImpl.getDbVendor(MetadataIndexImpl.java:83)
	at org.sonar.server.es.metadata.EsDbCompatibilityImpl.hasSameDbVendor(EsDbCompatibilityImpl.java:37)
	at org.sonar.server.es.metadata.EsDbCompatibilityImpl.markAsCompatible(EsDbCompatibilityImpl.java:43)
	at org.sonar.server.es.IndexCreator.checkDbCompatibility(IndexCreator.java:191)
	at org.sonar.server.es.IndexCreator.start(IndexCreator.java:87)
	at org.sonar.core.platform.StartableBeanPostProcessor.postProcessBeforeInitialization(StartableBeanPostProcessor.java:33)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:440)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1796)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:620)
	... 17 common frames omitted
Caused by: org.elasticsearch.ElasticsearchStatusException: Elasticsearch exception [type=no_shard_available_action_exception, reason=No shard available for [get [metadatas][dbVendor]: routing [null]]]
	at org.elasticsearch.rest.BytesRestResponse.errorFromXContent(BytesRestResponse.java:178)
	at org.elasticsearch.client.RestHighLevelClient.parseEntity(RestHighLevelClient.java:2484)
	at org.elasticsearch.client.RestHighLevelClient.parseResponseException(RestHighLevelClient.java:2461)
	at org.elasticsearch.client.RestHighLevelClient.internalPerformRequest(RestHighLevelClient.java:2184)
	at org.elasticsearch.client.RestHighLevelClient.performRequest(RestHighLevelClient.java:2137)
	at org.elasticsearch.client.RestHighLevelClient.performRequestAndParseEntity(RestHighLevelClient.java:2105)
	at org.elasticsearch.client.RestHighLevelClient.get(RestHighLevelClient.java:986)
	at org.sonar.server.es.EsClient.lambda$get$17(EsClient.java:182)
	at org.sonar.server.es.EsClient.execute(EsClient.java:334)
	... 28 common frames omitted
	Suppressed: org.elasticsearch.client.ResponseException: method [GET], host [http://tm.filter:9001], URI [/metadatas/_doc/dbVendor?stored_fields=value], status line [HTTP/1.1 503 Service Unavailable]
{"error":{"root_cause":[{"type":"no_shard_available_action_exception","reason":"No shard available for [get [metadatas][dbVendor]: routing [null]]"}],"type":"no_shard_available_action_exception","reason":"No shard available for [get [metadatas][dbVendor]: routing [null]]"},"status":503}
		at org.elasticsearch.client.RestClient.convertResponse(RestClient.java:347)
		at org.elasticsearch.client.RestClient.performRequest(RestClient.java:313)
		at org.elasticsearch.client.RestClient.performRequest(RestClient.java:288)
		at org.elasticsearch.client.RestHighLevelClient.performClientRequest(RestHighLevelClient.java:2699)
		at org.elasticsearch.client.RestHighLevelClient.internalPerformRequest(RestHighLevelClient.java:2171)
		... 33 common frames omitted
2024.11.06 10:24:19 INFO  web[][o.s.p.ProcessEntryPoint] Hard stopping process
2024.11.06 10:24:20 INFO  web[][c.z.h.HikariDataSource] HikariPool-1 - Shutdown initiated...
2024.11.06 10:24:20 INFO  web[][c.z.h.HikariDataSource] HikariPool-1 - Shutdown completed.
2024.11.06 10:24:20 INFO  web[][o.s.s.p.d.EmbeddedDatabase] Embedded database stopped
2024.11.06 10:24:21 WARN  web[][o.s.p.ProcessEntryPoint$HardStopperThread] Can not stop in 1000ms
2024.11.06 10:24:21 WARN  web[][o.a.t.u.net.Acceptor] Interrupt was received while waiting for the acceptor thread [http-nio-0.0.0.0-9000-Acceptor] to stop
java.lang.InterruptedException: null
	at java.base/java.util.concurrent.locks.AbstractQueuedSynchronizer.tryAcquireSharedNanos(AbstractQueuedSynchronizer.java:1081)
	at java.base/java.util.concurrent.CountDownLatch.await(CountDownLatch.java:276)
	at org.apache.tomcat.util.net.Acceptor.stopMillis(Acceptor.java:216)
	at org.apache.tomcat.util.net.NioEndpoint.stopInternal(NioEndpoint.java:331)
	at org.apache.tomcat.util.net.AbstractEndpoint.stop(AbstractEndpoint.java:1499)
	at org.apache.coyote.AbstractProtocol.stop(AbstractProtocol.java:752)
	at org.apache.catalina.connector.Connector.stopInternal(Connector.java:1060)
	at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:231)
	at org.apache.catalina.core.StandardService.stopInternal(StandardService.java:482)
	at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:231)
	at org.apache.catalina.core.StandardServer.stopInternal(StandardServer.java:923)
	at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:231)
	at org.apache.catalina.startup.Tomcat.stop(Tomcat.java:448)
	at org.sonar.server.app.EmbeddedTomcat.terminate(EmbeddedTomcat.java:114)
	at org.sonar.server.app.WebServer.hardStop(WebServer.java:86)
	at org.sonar.process.ProcessEntryPoint$HardStopperThread.lambda$new$0(ProcessEntryPoint.java:219)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
	at java.base/java.lang.Thread.run(Thread.java:842)
paste code here

Hey there.

Do you have more details in the logs, specifically es.log or web.log?

Here are all the logs generated by the sonar (all of the Logs folder files)
I did the following:
-Deleted the logs folder content
-Ran startsonar.bat
-Zipped the folder as logs01

This time, it kept waiting for elastic search to start:
“Waiting for Elasticsearch to be up and running”
I waited for 5 minutes

Next:
-Deleted the logs folder content
-Deleted the data folder content
-Ran startsonar.bat
-Zipped the folder as logs02

This time, the web interface showed that Sonar was starting:

But, it then, crashed, as tolds previously
See logs02.zip
logs02.zip (14.1 KB)

logs01.zip (5.8 KB)

Hey there.

The real issue is here:

2024.11.07 18:20:04 WARN es[o.e.c.r.a.DiskThresholdMonitor] high disk watermark [90%] exceeded on [oqQfd367R8C1Bn6uk7iEGQ][sonarqube][C:\Users\120898\Programming\Applications\sonarqube-10.7.0.96327\data\es8] free: 43.7gb[9.2%], shards will be relocated away from this node; currently relocating away shards totalling [0] bytes; the node is expected to continue to exceed the high disk watermark when these relocations are complete

You don’t have enough free disk space. You need at least 10%. After having enough disk space, you’ll need to trash /data/es8/ and restart.