SonarQube is not starting, error message

Can anyone help me with the below issue. This is the first time I am trying to run Sonarqube

--> Wrapper Started as Console
Launching a JVM...
Wrapper (Version 3.2.3)
  Copyright 1999-2006 Tanuki Software, Inc.  All Rights Reserved.

2022.06.28 20:23:47 INFO  app[][o.s.a.AppFileSystem] Cleaning or creating temp directory C:\Program Files\sonarqube-\temp
2022.06.28 20:23:47 INFO  app[][] Elasticsearch listening on [HTTP:, TCP:]
2022.06.28 20:23:47 INFO  app[][o.s.a.ProcessLauncherImpl] Launch process[ELASTICSEARCH] from [C:\Program Files\sonarqube-\elasticsearch]: C:\Users\shashi\Downloads\jdk-18_windows-x64_bin\jdk-\bin\java -XX:+UseG1GC\Program Files\sonarqube-\temp -XX:ErrorFile=../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=C:\Program Files\sonarqube-\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=C:\Program Files\sonarqube-\elasticsearch -Des.path.conf=C:\Program Files\sonarqube-\temp\conf\es -cp lib/* org.elasticsearch.bootstrap.Elasticsearch
2022.06.28 20:23:47 INFO  app[][o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
Exception in thread "main" java.lang.UnsupportedOperationException: The Security Manager is deprecated and will be removed in a future release
	at java.base/java.lang.System.setSecurityManager(
	at org.elasticsearch.bootstrap.Security.setSecurityManager(
	at org.elasticsearch.bootstrap.Elasticsearch.main(
2022.06.28 20:23:47 WARN  app[][o.s.a.p.AbstractManagedProcess] Process exited with exit value [ElasticSearch]: 1
2022.06.28 20:23:47 INFO  app[][o.s.a.SchedulerImpl] Process[ElasticSearch] is stopped
2022.06.28 20:23:47 INFO  app[][o.s.a.SchedulerImpl] SonarQube is stopped
2022.06.28 20:23:48 ERROR app[][o.s.a.p.EsManagedProcess] Failed to check status
org.elasticsearch.ElasticsearchException: java.lang.InterruptedException
	at org.elasticsearch.client.RestHighLevelClient.performClientRequest(
	at org.elasticsearch.client.RestHighLevelClient.internalPerformRequest(
	at org.elasticsearch.client.RestHighLevelClient.performRequest(
	at org.elasticsearch.client.RestHighLevelClient.performRequestAndParseEntity(
	at org.sonar.application.process.EsManagedProcess.checkStatus(
	at org.sonar.application.process.EsManagedProcess.checkOperational(
	at org.sonar.application.process.EsManagedProcess.isOperational(
	at org.sonar.application.process.ManagedProcessHandler.refreshState(
	at org.sonar.application.process.ManagedProcessHandler$
Caused by: java.lang.InterruptedException: null
	at java.base/java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireSharedInterruptibly(
	at org.elasticsearch.common.util.concurrent.BaseFuture$Sync.get(
	at org.elasticsearch.common.util.concurrent.BaseFuture.get(
	at org.elasticsearch.client.RestHighLevelClient.performClientRequest(
	... 10 common frames omitted
<-- Wrapper Stopped


Welcome to the community!

What do your server logs say?


The attached snippet is what i have got in my log file


The error is about Elasticsearch. Is there anything in es.log?


I cannot find anything with name es.log or anything similar in my sonarqube folder. I only have sonar.log file


The fact that you don’t have all the logs is troublesome. I would start by making sure the user running SonarQube has full rights to $SONARQUBE-HOME, recursive.

Then I would make sure there’s nothing “helpful” like Windows Defender interfering.

And finally, by looking at the other threads in the community that have this error, it seems a common cause is that the port Elasticsearch uses, 9001, isn’t available. If that port is in use, you’ll need to either free it up or configure SonarQube (in $SONARQUBE-HOME/conf/ to use a different port for Elasticsearch.


What is the version of Java you are using? I suspect you are using Java > 17 which is not supported.

Thanks for your valuable time,
I was using java 18.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.