Not able to start SonarQube in WIndows

Hi Team,

Not able to start SonarQube in Windows 10 x64 bit OS.
Version: sonarqube-8.8.0.42792, CommunityEdition.

Error:
“C:\WINDOWS\system32>“C:\sonarqube-8.8.0.42792\bin\windows-x86-64\StartSonar.bat”
wrapper | → Wrapper Started as Console
wrapper | Launching a JVM…
jvm 1 | Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
jvm 1 | Copyright 1999-2006 Tanuki Software, Inc. All Rights Reserved.
jvm 1 |
jvm 1 | 2021.07.07 13:03:57 INFO app[o.s.a.AppFileSystem] Cleaning or creating temp directory C:\sonarqube-8.8.0.42792\temp
jvm 1 | 2021.07.07 13:03:57 INFO app[o.s.a.es.EsSettings] Elasticsearch listening on [HTTP: 127.0.0.1:9001, TCP: 127.0.0.1:56354]
jvm 1 | 2021.07.07 13:03:57 INFO app[o.s.a.ProcessLauncherImpl] Launch process[[key=‘es’, ipcIndex=1, logFilenamePrefix=es]] from [C:\sonarqube-8.8.0.42792\elasticsearch]: C:\Program Files\Java\jdk-11.0.10\bin\java -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -Djava.io.tmpdir=C:\sonarqube-8.8.0.42792\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 -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 -Djava.locale.providers=COMPAT -Xmx512m -Xms512m -XX:MaxDirectMemorySize=256m -XX:+HeapDumpOnOutOfMemoryError -Delasticsearch -Des.path.home=C:\sonarqube-8.8.0.42792\elasticsearch -Des.path.conf=C:\sonarqube-8.8.0.42792\temp\conf\es -cp lib/* org.elasticsearch.bootstrap.Elasticsearch
jvm 1 | 2021.07.07 13:03:57 INFO app[o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
jvm 1 | Java HotSpot™ 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
jvm 1 | 2021.07.07 13:04:11 INFO app[o.s.a.SchedulerImpl] Process[es] is up
jvm 1 | 2021.07.07 13:04:11 INFO app[o.s.a.ProcessLauncherImpl] Launch process[[key=‘web’, ipcIndex=2, logFilenamePrefix=web]] from [C:\sonarqube-8.8.0.42792]: C:\Program Files\Java\jdk-11.0.10\bin\java -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djava.io.tmpdir=C:\sonarqube-8.8.0.42792\temp -XX:-OmitStackTraceInFastThrow --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED -Xmx512m -Xms128m -XX:+HeapDumpOnOutOfMemoryError -Dhttp.nonProxyHosts=localhost|127.|[::1] -cp ./lib/common/;C:\sonarqube-8.8.0.42792\lib\jdbc\h2\h2-1.4.199.jar org.sonar.server.app.WebServer C:\sonarqube-8.8.0.42792\temp\sq-process7207345749995952667properties
jvm 1 | 2021.07.07 13:04:35 WARN app[startup] ####################################################################################################################
jvm 1 | 2021.07.07 13:04:35 WARN app[startup] Default Administrator credentials are still being used. Make sure to change the password or deactivate the account.
jvm 1 | 2021.07.07 13:04:35 WARN app[startup] ####################################################################################################################
jvm 1 | 2021.07.07 13:04:46 WARN app[startup] ####################################################################################################################
jvm 1 | 2021.07.07 13:04:46 WARN app[startup] Default Administrator credentials are still being used. Make sure to change the password or deactivate the account.
jvm 1 | 2021.07.07 13:04:46 WARN app[startup] ####################################################################################################################
jvm 1 | 2021.07.07 13:04:48 INFO app[o.s.a.SchedulerImpl] Process[web] is stopped
jvm 1 | 2021.07.07 13:04:48 INFO app[o.s.a.SchedulerImpl] Process[es] is stopped
jvm 1 | 2021.07.07 13:04:48 INFO app[o.s.a.SchedulerImpl] SonarQube is stopped
wrapper | ← Wrapper Stopped”

Kindly help me to resolve this issue.

Hello @sna and welcome to the community :wave:

did you already had a look at the logs ? Anything interesting in there?

also please note that you should probably upgrade to SQ 8.9.1 which is the current LTS if you are just starting with SQ.

Hi Tobias,

Thankyou for your reply.
I initially tried with SQ 8.9.1, but observed the same error. Then I tried with SQ 8.8 and again the same issue.

I’m attaching logs for your reference.
Also, free space of the ‘C’ drive is around 2GB. Is this causing the error, in anyway?

Regards,
S N Abhilash

es.log (16.3 KB)

web.log (60.6 KB)

sonar.20210707.log (11.1 KB)

yep as you can see from the logs you provided

es.log:

web.log:

you need to free up some storage for ES to allow write operations

Hi @Tobias_Trabelsi ,

Kindly let me know how much free space is required for Elastic Search write operations.
Total space is 238 GB, of which 236 GB is already filled.

less than 95% of the disk, so something like ~15 GB in your case roughly calculated , but for a production instance i would pay really close attention to this threshold in order to ensure service

Thankyou. I will try out your suggestion.

great. let me know how it goes

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