Sonar stoped running just after start

I just need little bit of help. Sonar was running just fine yesterday, but now when I tried to start to start it it stopped within seconds. The output in my terminal is

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    | 2022.08.02 23:56:33 INFO  app[][o.s.a.AppFileSystem] Cleaning or creating temp directory C:\Users\danko\Documents\sonarqube-9.5.0.56709\temp
jvm 1    | 2022.08.02 23:56:33 INFO  app[][o.s.a.es.EsSettings] Elasticsearch listening on [HTTP: 127.0.0.1:9001, TCP: 127.0.0.1:54947]
jvm 1    | 2022.08.02 23:56:33 INFO  app[][o.s.a.ProcessLauncherImpl] Launch process[ELASTICSEARCH] from [C:\Users\danko\Documents\sonarqube-9.5.0.56709\elasticsearch]: C:\Program Files\Java\jdk-17\bin\java -XX:+UseG1GC -Djava.io.tmpdir=C:\Users\danko\Documents\sonarqube-9.5.0.56709\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:\Users\danko\Documents\sonarqube-9.5.0.56709\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:\Users\danko\Documents\sonarqube-9.5.0.56709\elasticsearch -Des.path.conf=C:\Users\danko\Documents\sonarqube-9.5.0.56709\temp\conf\es -cp lib/* org.elasticsearch.bootstrap.Elasticsearch
jvm 1    | 2022.08.02 23:56:33 INFO  app[][o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
jvm 1    | 2022.08.02 23:56:33 INFO  app[][o.s.a.SchedulerImpl] Process[es] is up
jvm 1    | 2022.08.02 23:56:33 INFO  app[][o.s.a.ProcessLauncherImpl] Launch process[WEB_SERVER] from [C:\Users\danko\Documents\sonarqube-9.5.0.56709]: C:\Program Files\Java\jdk-17\bin\java -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djava.io.tmpdir=C:\Users\danko\Documents\sonarqube-9.5.0.56709\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 --add-exports=java.base/jdk.internal.ref=ALL-UNNAMED --add-opens=java.base/java.nio=ALL-UNNAMED --add-opens=java.base/sun.nio.ch=ALL-UNNAMED --add-opens=java.management/sun.management=ALL-UNNAMED --add-opens=jdk.management/com.sun.management.internal=ALL-UNNAMED -Dcom.redhat.fips=false -Xmx512m -Xms128m -XX:+HeapDumpOnOutOfMemoryError -Dhttp.nonProxyHosts=localhost|127.*|[::1] -cp ./lib/sonar-application-9.5.0.56709.jar;C:\Users\danko\Documents\sonarqube-9.5.0.56709\lib\jdbc\h2\h2-2.1.210.jar org.sonar.server.app.WebServer C:\Users\danko\Documents\sonarqube-9.5.0.56709\temp\sq-process8241153606045859153properties
jvm 1    | WARNING: A terminally deprecated method in java.lang.System has been called
jvm 1    | WARNING: System::setSecurityManager has been called by org.sonar.process.PluginSecurityManager (file:/C:/Users/danko/Documents/sonarqube-9.5.0.56709/lib/sonar-application-9.5.0.56709.jar)
jvm 1    | WARNING: Please consider reporting this to the maintainers of org.sonar.process.PluginSecurityManager
jvm 1    | WARNING: System::setSecurityManager will be removed in a future release
jvm 1    | uncaught exception in thread [main]
jvm 1    | BindHttpException[Failed to bind to 127.0.0.1:9001]; nested: BindException[Address already in use: bind];
jvm 1    | Likely root cause: java.net.BindException: Address already in use: bind
jvm 1    |      at java.base/sun.nio.ch.Net.bind0(Native Method)
jvm 1    |      at java.base/sun.nio.ch.Net.bind(Net.java:555)
jvm 1    |      at java.base/sun.nio.ch.ServerSocketChannelImpl.netBind(ServerSocketChannelImpl.java:337)
jvm 1    |      at java.base/sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:294)
jvm 1    |      at io.netty.channel.socket.nio.NioServerSocketChannel.doBind(NioServerSocketChannel.java:134)
jvm 1    |      at io.netty.channel.AbstractChannel$AbstractUnsafe.bind(AbstractChannel.java:562)
jvm 1    |      at io.netty.channel.DefaultChannelPipeline$HeadContext.bind(DefaultChannelPipeline.java:1334)
jvm 1    |      at io.netty.channel.AbstractChannelHandlerContext.invokeBind(AbstractChannelHandlerContext.java:506)
jvm 1    |      at io.netty.channel.AbstractChannelHandlerContext.bind(AbstractChannelHandlerContext.java:491)
jvm 1    |      at io.netty.channel.DefaultChannelPipeline.bind(DefaultChannelPipeline.java:973)
jvm 1    |      at io.netty.channel.AbstractChannel.bind(AbstractChannel.java:260)
jvm 1    |      at io.netty.bootstrap.AbstractBootstrap$2.run(AbstractBootstrap.java:356)
jvm 1    |      at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:164)
jvm 1    |      at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:469)
jvm 1    |      at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:500)
jvm 1    |      at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:986)
jvm 1    |      at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
jvm 1    |      at java.base/java.lang.Thread.run(Thread.java:833)
jvm 1    | For complete error details, refer to the log at C:\Users\danko\Documents\sonarqube-9.5.0.56709\logs\sonarqube.log
jvm 1    | 2022.08.02 23:56:39 WARN  app[][o.s.a.p.AbstractManagedProcess] Process exited with exit value [ElasticSearch]: 1
jvm 1    | 2022.08.02 23:56:39 INFO  app[][o.s.a.SchedulerImpl] Process[ElasticSearch] is stopped
jvm 1    | 2022.08.02 23:56:40 INFO  app[][o.s.a.SchedulerImpl] Process[Web Server] is stopped
jvm 1    | 2022.08.02 23:56:40 INFO  app[][o.s.a.SchedulerImpl] SonarQube is stopped
wrapper  | <-- Wrapper Stopped```

I'm really confused about what's going in since as I mentioned it was running yesterday.

Welcome :slight_smile:

Not sure if Sonarqube server is able to run on Java17,
see Prerequisites and Overview | SonarQube Docs

Java

The SonarQube server require Java version 11 and the SonarQube scanners require Java version 11 or 17.

The stacktrace

BindHttpException[Failed to bind to 127.0.0.1:9001]; nested: BindException[Address already in use: bind];

shows that port 9001 is already in use. Maybe some zombie java process from a former try to
start Sonarqube !? Did you already check the task manager details ?

Gilbert