Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SonarQube Service Starts, Runs and then Stops?

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?

like image 984
OmniOwl Avatar asked Nov 17 '25 12:11

OmniOwl


1 Answers

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.

like image 92
Manjunath Bhavi Avatar answered Nov 19 '25 09:11

Manjunath Bhavi



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!