Unable to start sonarqube


(sneha) #1

Hi,

I am very new to sonarqube. I tried to start sonarqube on my linux machine first time, which i was able to successfully. For somereason my sonarqube got terminated. I tried to start and stop sonarqube using ./sonar.sh but it shows me below error in sonar.logs. Can someone please help me.
I am using sonarqube5.5
error:

[root@ip-172-31-19-36 linux-x86-64]# ./sonar.sh start
Starting SonarQube…
Started SonarQube.
[root@ip-172-31-19-36 linux-x86-64]# cd …/…
[root@ip-172-31-19-36 sonarqube-5.5]# cd logs
[root@ip-172-31-19-36 logs]# ls
access.log sonar.log
[root@ip-172-31-19-36 logs]# tail f sonar.log
tail: cannot open ‘f’ for reading: No such file or directory
==> sonar.log <==
2018.10.15 14:22:06 INFO web[o.a.c.h.Http11NioProtocol] Stopping ProtocolHandler [“http-nio-0.0.0.0-8090”]
2018.10.15 14:22:06 INFO web[o.a.c.h.Http11NioProtocol] Destroying ProtocolHandler [“http-nio-0.0.0.0-8090”]
2018.10.15 14:22:06 INFO web[o.s.s.a.TomcatAccessLog] Web server is stopped
2018.10.15 14:22:06 INFO app[o.s.p.m.Monitor] Process[es] is stopping
2018.10.15 14:22:06 INFO es[o.s.p.StopWatcher] Stopping process
2018.10.15 14:22:06 INFO es[o.elasticsearch.node] [sonar-1539613310914] stopping …
2018.10.15 14:22:07 INFO es[o.elasticsearch.node] [sonar-1539613310914] stopped
2018.10.15 14:22:07 INFO es[o.elasticsearch.node] [sonar-1539613310914] closing …
2018.10.15 14:22:07 INFO es[o.elasticsearch.node] [sonar-1539613310914] closed
2018.10.15 14:22:07 INFO app[o.s.p.m.Monitor] Process[es] is stopped


(G Ann Campbell) #2

Hi,

Take a look at the Troubleshooting Guide and let us know what you find.

 
Ann


(sneha) #3

Thank you.

But when i check for the logs this is what i found. There is a thread that was created by root but unable to stop it. Any steps that i can follow to kill or stop it?

2018.10.15 18:44:12 ERROR web[o.a.c.c.StandardContext] One or more listeners failed to start. Full details will be found in the appropriate container log file
2018.10.15 18:44:12 ERROR web[o.a.c.c.StandardContext] Context [] startup failed due to previous errors
2018.10.15 18:44:12 WARN web[o.a.c.l.WebappClassLoaderBase] The web application [ROOT] appears to have started a thread named [H2 TCP Server (tcp://172.31.19.36:7070)] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
java.net.PlainSocketImpl.socketAccept(Native Method)
java.net.AbstractPlainSocketImpl.accept(AbstractPlainSocketImpl.java:409)
java.net.ServerSocket.implAccept(ServerSocket.java:545)
java.net.ServerSocket.accept(ServerSocket.java:513)
org.h2.server.TcpServer.listen(TcpServer.java:252)
org.h2.tools.Server.run(Server.java:570)
java.lang.Thread.run(Thread.java:748)
2018.10.15 18:44:12 WARN web[o.a.c.l.WebappClassLoaderBase] The web application [ROOT] appears to have started a thread named [Timer-0] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
java.lang.Object.wait(Native Method)
java.util.TimerThread.mainLoop(Timer.java:552)
java.util.TimerThread.run(Timer.java:505)
2018.10.15 18:44:12 INFO web[o.a.c.h.Http11NioProtocol] Starting ProtocolHandler [“http-nio-0.0.0.0-8090”]
2018.10.15 18:44:12 INFO web[o.s.s.a.TomcatAccessLog] Web server is started
2018.10.15 18:44:12 INFO web[o.s.s.a.EmbeddedTomcat] HTTP connector enabled on port 8090
2018.10.15 18:44:12 WARN web[o.s.p.ProcessEntryPoint] Fail to start web
java.lang.IllegalStateException: Webapp did not start


(G Ann Campbell) #4

Hi,

Your first post says you’re on Linux, so I can only recommend kill or kill -9. Beyond that, I’ve just noticed that you’re on SonarQube version 5.5. That puts you 2 LTS versions behind. The previous LTS version is 5.6, the current LTS is 6.7.5, and the current version is 7.3 (7.4 ETA: very soon). You should upgrade at your earliest convenience.

 
Ann