Unable to start SonarQube on Windows - tw

I am unable to start using the latest version of SonarQube. I have attached the content of the sonar log. Does anyone know what the issue is here?

–> Wrapper Started as Console
Launching a JVM…
Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
Copyright 1999-2006 Tanuki Software, Inc. All Rights Reserved.

2020.09.16 10:58:26 INFO app[o.s.a.AppFileSystem] Cleaning or creating temp directory C:\sonarqube\temp
2020.09.16 10:58:26 INFO app[o.s.a.es.EsSettings] Elasticsearch listening on /127.0.0.1:9001
2020.09.16 10:58:26 INFO app[o.s.a.ProcessLauncherImpl] Launch process[[key=‘es’, ipcIndex=1, logFilenamePrefix=es]] from [C:\sonarqube\elasticsearch]: C:\Program Files\Java\jdk-11.0.8\bin\java -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -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 -Dlog4j.shutdownHookEnabled=false -Dlog4j2.disable.jmx=true -Djava.io.tmpdir=C:\sonarqube\temp -XX:ErrorFile=…/logs/es_hs_err_pid%p.log -Xmx512m -Xms512m -XX:+HeapDumpOnOutOfMemoryError -Delasticsearch -Des.path.home=C:\sonarqube\elasticsearch -Des.path.conf=C:\sonarqube\temp\conf\es -cp lib/* org.elasticsearch.bootstrap.Elasticsearch
2020.09.16 10:58:26 INFO app[o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
Java HotSpot™ 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
2020.09.16 10:58:27 INFO app[o.e.p.PluginsService] no modules loaded
2020.09.16 10:58:27 INFO app[o.e.p.PluginsService] loaded plugin [org.elasticsearch.transport.Netty4Plugin]
2020.09.16 10:58:38 INFO app[o.s.a.SchedulerImpl] Process[es] is up
2020.09.16 10:58:38 INFO app[o.s.a.ProcessLauncherImpl] Launch process[[key=‘web’, ipcIndex=2, logFilenamePrefix=web]] from [C:\sonarqube]: C:\Program Files\Java\jdk-11.0.8\bin\java -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djava.io.tmpdir=C:\sonarqube\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\lib\jdbc\h2\h2-1.4.199.jar org.sonar.server.app.WebServer C:\sonarqube\temp\sq-process18362135038791124700properties
2020.09.16 10:58:39 INFO app[o.s.a.SchedulerImpl] Process[web] is stopped
2020.09.16 10:58:39 INFO app[o.s.a.SchedulerImpl] Process[es] is stopped
2020.09.16 10:58:39 INFO app[o.s.a.SchedulerImpl] SonarQube is stopped
<-- Wrapper Stopped

hi, anything interesting in web.log?

Hi, thanks for your response. This is what I see in the web log. Any idea why the web server isn’t starting? 2020.09.16 11:34:13 INFO web[][o.s.p.ProcessEntryPoint] Starting web 2020.09.16 11:34:14 ERROR web[][o.s.s.a.EmbeddedTomcat] Fail to start web server org.apache.catalina.LifecycleException: Failed to initialize connector [Connector[HTTP/1.1-9000]] at org.apache.catalina.core.StandardService.initInternal(StandardService.java:559) at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136) at org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:848) at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:173) at org.apache.catalina.startup.Tomcat.start(Tomcat.java:440) at org.sonar.server.app.EmbeddedTomcat.start(EmbeddedTomcat.java:65) at org.sonar.server.app.WebServer.start(WebServer.java:52) at org.sonar.process.ProcessEntryPoint.launch(ProcessEntryPoint.java:97) at org.sonar.process.ProcessEntryPoint.launch(ProcessEntryPoint.java:81) at org.sonar.server.app.WebServer.main(WebServer.java:99) 2020.09.16 11:34:14 WARN web[][o.s.p.ProcessEntryPoint] Fail to start web java.lang.RuntimeException: org.apache.catalina.LifecycleException: Failed to initialize connector [Connector[HTTP/1.1-9000]] at com.google.common.base.Throwables.propagate(Throwables.java:241) at org.sonar.server.app.EmbeddedTomcat.start(EmbeddedTomcat.java:69) at org.sonar.server.app.WebServer.start(WebServer.java:52) at org.sonar.process.ProcessEntryPoint.launch(ProcessEntryPoint.java:97) at org.sonar.process.ProcessEntryPoint.launch(ProcessEntryPoint.java:81) at org.sonar.server.app.WebServer.main(WebServer.java:99) Caused by: org.apache.catalina.LifecycleException: Failed to initialize connector [Connector[HTTP/1.1-9000]] at org.apache.catalina.core.StandardService.initInternal(StandardService.java:559) at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136) at org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:848) at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:173) at org.apache.catalina.startup.Tomcat.start(Tomcat.java:440) at org.sonar.server.app.EmbeddedTomcat.start(EmbeddedTomcat.java:65) ... 4 common frames omitted 2020.09.16 11:34:14 INFO web[][o.s.p.ProcessEntryPoint] Hard stopping process

the trace is incomplete here, can you please post the full file ?

web.log (2.3 KB)

wow that’s quite short. what about ce.log ? es.log ?

I don’t have ce.log. Attaching es.loges.log (27.2 KB)

are you starting SonarQube on the default port 9000? It may be already busy on your host.

Yes. How would I change the default port?

Ok, that was it. I changed it to 8080 in conf/sonar.properties and it started. Thanks for your help.

glad you figured it out :slight_smile:

For future visitors here: the property to change in sonar.properties is

sonar.web.port=8080

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