Sonar Server dies in few seconds after starting

Hi


I have configured sonarQube plugin and trying to get analysis of my code using SONAR. However after I start the server the process ends within few seconds.

Build Error Msg is as follows

[16:07:45][Step 2/2] ERROR: Sonar server 'http://localhost:9001' can not be reached
[16:07:45][Step 2/2] Total time: 0.046s
[16:07:45][Step 2/2] Final Memory: 1M/57M
[16:07:45][Step 2/2] INFO: ------------------------------------------------------------------------
[16:07:45][Step 2/2] ERROR: Error during Sonar runner execution
[16:07:45][Step 2/2] ERROR: java.net.ConnectException: Connection refused
[16:07:45][Step 2/2] ERROR: Caused by: Connection refused
[16:07:45][Step 2/2] ERROR:
[16:07:45][Step 2/2] ERROR: To see the full stack trace of the errors, re-run SonarQube Runner with the -e switch.
[16:07:45][Step 2/2] ERROR: Re-run SonarQube Runner using the -X switch to enable full debug logging.
[16:07:45][Step 2/2] Process exited with code 1
[16:07:45][Step 2/2] Step SonarQube Runner failed


Pls find the console msg below.

settings - JDBC URL is recommended to have the property 'useConfigs=maxPerformance'

Jvm 1    | 2014.12.03 16:51:06 INFO  app[o.s.p.m.JavaProcessLauncher] Launch process[search]: /opt/java/jdk1.8.0_25/jre/bin/java -Djava.awt.headless=true -Xmx256m -Xms256m -Xss256k -Djava.net.preferIPv4Stack=true -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:path-InitiatingOccupancyFraction=75 -XX:+Usepath-InitiatingOccupancyOnly -XX:+HeapDumpOnOutOfMemoryError -Djava.io.tmpdir=/home/project4/Desktop/sonarqube-4.5.1/temp -cp ./lib/common/*:./lib/search/* org.sonar.search.SearchServer /tmp/sq-process8824126600116233974properties
jvm 1    | 2014.12.03 16:51:12 INFO  app[o.s.p.m.Monitor] Process[search] is up
jvm 1    | 2014.12.03 16:51:12 INFO  app[o.s.p.m.JavaProcessLauncher] Launch process[web]: /opt/java/jdk1.8.0_25/jre/bin/java -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djruby.management.enabled=false -Xmx768m -XX:MaxPermSize=160m -XX:+HeapDumpOnOutOfMemoryError -Djava.io.tmpdir=/home/project4/Desktop/sonarqube-4.5.1/temp -cp ./lib/common/*:./lib/server/*:/home/project4/Desktop/sonarqube-4.5.1/lib/jdbc/mysql/mysql-connector-java-5.1.27.jar org.sonar.server.app.WebServer /tmp/sq-process6540280490490118623properties
jvm 1    | 2014.12.03 16:51:23 INFO  app[o.s.p.m.TerminatorThread] Process[search] is stopping
jvm 1    | 2014.12.03 16:51:24 INFO  app[o.s.p.m.TerminatorThread] Process[search] is stopped
wrapper  | <-- Wrapper Stopped


Thanks in advance


Ganesh

2 comments
Comment actions Permalink

Hi Ganesh,

Are you able to reach SonarQube server usign http://localhost:9001? Could you please attach screenshot of SonarQube Server Connection settings?

0
Comment actions Permalink

i would strongly recommend to solve this issue https://www.decodingdevops.com/sonarqube-not-starting-in-linux-centos-rhel-docker-solved/ here everything explained like what is the cause of issues and how to solve this to start sonarqube

0

Please sign in to leave a comment.