Installation error

version : sonarqube-9.9.1.69595
OS : windows 11

[log]
2023.05.31 09:06:54 INFO app[o.s.a.AppFileSystem] Cleaning or creating temp directory D:\sonarqube-9.9.1.69595\temp
2023.05.31 09:06:54 INFO app[o.s.a.es.EsSettings] Elasticsearch listening on [HTTP: 127.0.0.1:9001, TCP: 127.0.0.1:2233]
2023.05.31 09:06:54 INFO app[o.s.a.ProcessLauncherImpl] Launch process[ELASTICSEARCH] from [D:\sonarqube-9.9.1.69595\elasticsearch]: C:\Program Files\ojdkbuild\java-17-openjdk-17.0.3.0.6-1\bin\java -XX:+UseG1GC -Djava.io.tmpdir=D:\sonarqube-9.9.1.69595\temp -XX:ErrorFile=D:\sonarqube-9.9.1.69595\logs\es_hs_err_pid%p.log -Des.networkaddress.cache.ttl=60 -Des.networkaddress.cache.negative.ttl=10 -XX:+AlwaysPreTouch -Xss1m -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djna.nosys=true -Djna.tmpdir=D:\sonarqube-9.9.1.69595\temp -XX:-OmitStackTraceInFastThrow -Dio.netty.noUnsafe=true -Dio.netty.noKeySetOptimization=true -Dio.netty.recycler.maxCapacityPerThread=0 -Dio.netty.allocator.numDirectArenas=0 -Dlog4j.shutdownHookEnabled=false -Dlog4j2.disable.jmx=true -Dlog4j2.formatMsgNoLookups=true -Djava.locale.providers=COMPAT -Dcom.redhat.fips=false -Xmx512m -Xms512m -XX:MaxDirectMemorySize=256m -XX:+HeapDumpOnOutOfMemoryError -Delasticsearch -Des.path.home=D:\sonarqube-9.9.1.69595\elasticsearch -Des.path.conf=D:\sonarqube-9.9.1.69595\temp\conf\es -cp lib/* org.elasticsearch.bootstrap.Elasticsearch
2023.05.31 09:06:54 INFO app[o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
2023.05.31 09:06:55 ERROR app[o.s.a.p.EsManagedProcess] Failed to check status
org.elasticsearch.ElasticsearchException: java.util.concurrent.ExecutionException: org.elasticsearch.client.ResponseException: method [GET], host [http://127.0.0.1:9001], URI [/], status line [HTTP/1.1 404 Not Found]

Not Found

Not Found


HTTP Error 404. The requested resource is not found.

at org.elasticsearch.client.RestHighLevelClient.performClientRequest(RestHighLevelClient.java:2695)
at org.elasticsearch.client.RestHighLevelClient.internalPerformRequest(RestHighLevelClient.java:2171)
at org.elasticsearch.client.RestHighLevelClient.performRequest(RestHighLevelClient.java:2137)
at org.elasticsearch.client.RestHighLevelClient.performRequestAndParseEntity(RestHighLevelClient.java:2105)
at org.elasticsearch.client.ClusterClient.health(ClusterClient.java:151)
at org.sonar.application.es.EsConnectorImpl.getClusterHealthStatus(EsConnectorImpl.java:64)

What do the other log files say?

I get an error when installing the product. This is the relevant log file.
es.2023-05-31.log (55.9 KB)

Hi,

port 9001 is already in use

2023.05.31 09:07:04 ERROR es[o.e.b.Bootstrap] Exception
org.elasticsearch.http.BindHttpException: Failed to bind to 127.0.0.1:9001
[…]
Caused by: java.net.BindException: Address already in use: bind

I guess there’s some zombie process from a former installation attempt !?

Check the details via cmd =

netstat -aon | find "9001" this will give you the process id

Then you may use
tasklist /FI "pid eq <pid>" to get the process id details first or kill the process straight via
taskkill /F /pid <pid>

and try again.

Gilbert