Sonarqube is stopped for windows 10

Microsoft Windows [Version 10.0.18363.1440]
(c) 2019 Microsoft Corporation. All rights reserved.

D:\SonarQube Setup\sonarqube-7.9.6\sonarqube-7.9.6\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.04.06 00:15:18 INFO  app[][o.s.a.AppFileSystem] Cleaning or creating temp directory D:\SonarQube Setup\sonarqube-7.9.6\sonarqube-7.9.6\temp
jvm 1    | 2021.04.06 00:15:18 INFO  app[][o.s.a.es.EsSettings] Elasticsearch listening on /127.0.0.1:9001
jvm 1    | 2021.04.06 00:15:18 INFO  app[][o.s.a.ProcessLauncherImpl] Launch process[[key='es', ipcIndex=1, logFilenamePrefix=es]] from [D:\SonarQube Setup\sonarqube-7.9.6\sonarqube-7.9.6\elasticsearch]: D:\SonarQube Setup\jdk-11.0.10_windows-x64_bin\jdk-11.0.10\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=D:\SonarQube Setup\sonarqube-7.9.6\sonarqube-7.9.6\temp -XX:ErrorFile=../logs/es_hs_err_pid%p.log -Xms512m -Xmx512m -XX:+HeapDumpOnOutOfMemoryError -Delasticsearch -Des.path.home=D:\SonarQube Setup\sonarqube-7.9.6\sonarqube-7.9.6\elasticsearch -Des.path.conf=D:\SonarQube Setup\sonarqube-7.9.6\sonarqube-7.9.6\temp\conf\es -cp lib/* org.elasticsearch.bootstrap.Elasticsearch
jvm 1    | 2021.04.06 00:15:18 INFO  app[][o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
jvm 1    | Java HotSpot(TM) 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.04.06 00:15:19 INFO  app[][o.e.p.PluginsService] no modules loaded
jvm 1    | 2021.04.06 00:15:19 INFO  app[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.transport.Netty4Plugin]
jvm 1    | 2021.04.06 00:15:35 INFO  app[][o.s.a.SchedulerImpl] Process[es] is up
jvm 1    | 2021.04.06 00:15:35 INFO  app[][o.s.a.ProcessLauncherImpl] Launch process[[key='web', ipcIndex=2, logFilenamePrefix=web]] from [D:\SonarQube Setup\sonarqube-7.9.6\sonarqube-7.9.6]: D:\SonarQube Setup\jdk-11.0.10_windows-x64_bin\jdk-11.0.10\bin\java -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djava.io.tmpdir=D:\SonarQube Setup\sonarqube-7.9.6\sonarqube-7.9.6\temp --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/*;D:\SonarQube Setup\sonarqube-7.9.6\sonarqube-7.9.6\lib\jdbc\h2\h2-1.3.176.jar org.sonar.server.app.WebServer D:\SonarQube Setup\sonarqube-7.9.6\sonarqube-7.9.6\temp\sq-process3449255439339705439properties
jvm 1    | 2021.04.06 00:15:37 INFO  app[][o.s.a.SchedulerImpl] Process[web] is stopped
jvm 1    | 2021.04.06 00:15:37 INFO  app[][o.s.a.SchedulerImpl] Process[es] is stopped
jvm 1    | 2021.04.06 00:15:37 INFO  app[][o.s.a.SchedulerImpl] SonarQube is stopped
wrapper  | <-- Wrapper Stopped

D:\SonarQube Setup\sonarqube-7.9.6\sonarqube-7.9.6\bin\windows-x86-64>

Please let me know how to resolve this issue.

I have jdk 11 set up and sonarqube community edition running.

Hey there.

You should have multiple log files in your /logs/ directory, such as web.log, es.log… anything interesting?

Our documentation on Troubleshooting is a good reference.

es.log (7.1 KB) README.txt (88 Bytes) sonar.log (6.4 KB) web.log (4.7 KB)

Please have a look and let me know if any changes required .

Hi there.

2021.04.06 20:25:53 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:846)
	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)
2021.04.06 20:25:53 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:160)
	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:846)
	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

Something else is probably already running on port 9000 (another SonarQube instance, perhaps)? What happens if you browse localhost:9000?

Anyhow, you can adjust the port by adjusting sonar.web.port in your conf/sonar.properties file, but I would check to make sure you don’t already have a running SonarQube instance by mistake.

9000 port killed ![Port_Changed|690x425]

Step-1
Hi, I have killed the process using port 9000 , again some processes are coming up. Please let me know how can i kill the processes permanently and make 9000 port available.

Step -2
I have updated sonar.web.port=9008 in sonar.properties file. But it is giving same error.

Please guide me to fix this issue.

This is your server – you will need to figure out what the process is that’s running on port 9000 :slight_smile:

Can you show the same error in the web.log file here?