SonarQube Service Starts, Runs and then Stops?

OmniOwl picture OmniOwl · Apr 21, 2016 · Viewed 12.4k times · Source

I have a Windows 2012 R2 server and I managed to install the SonarQube 5.4 server as a Windows Service. I also set up a user so the service can actually start without the infamous "It started then stopped" error a lot of people seem to get. Before installing the server as a windows service, I checked that it worked using StartSonar.bat and it did work just fine, so I was confident when I made it into a service.

But when I try to access http://localhost:9000 there is nothing there, and it appears that shortly after starting the service it stops without any message at all. I can't tell if this is because I try to access the site (which gives me ERR_EMPTY_RESPONSEin Google Chrome) or if it just closes down after a short while.

Anyone got any insight?

Answer

Manjunath Bhavi picture Manjunath Bhavi · Feb 6, 2017

I'm a beginner. I came across the same issue and fixed it.

Ensure that the database is running.

My log file (located at sonarqube_home_dir/logs/sonar.log) included the following statement.

Caused by: org.h2.jdbc.JdbcSQLException: Wrong user name or password [28000-176]

Since I'm using the default database, I commented below lines

#sonar.jdbc.username=***
#sonar.jdbc.password=***

at sonarqube_home_dir/conf/sonar.properties.