Hi,

I’m not sure if this is the right place to ask for help, but my system log 
directed me here.

So I currently have SonarQube set up on a Linux CentOS VM. Yesterday I was able 
to start up SonarQube just fine, but today I am having issues and am unsure why.

Here is the status output:

● sonar.service - SonarQube
   Loaded: loaded (/etc/systemd/system/sonar.service; enabled; vendor preset: 
disabled)
   Active: failed (Result: start-limit) since Wed 2019-06-12 11:12:49 CDT; 3min 
21s ago
  Process: 25886 ExecStart=/opt/sonarqube/bin/linux-x86-64/sonar.sh --debug 
start (code=exited, status=1/FAILURE)
Main PID: 22198 (code=exited, status=0/SUCCESS)

Jun 12 11:12:49 wx-bld07.ms.northgrum.com systemd[1]: Failed to start SonarQube.
Jun 12 11:12:49 wx-bld07.ms.northgrum.com systemd[1]: Unit sonar.service 
entered failed state.
Jun 12 11:12:49 wx-bld07.ms.northgrum.com systemd[1]: sonar.service failed.
Jun 12 11:12:49 wx-bld07.ms.northgrum.com systemd[1]: start request repeated 
too quickly for sonar.service
Jun 12 11:12:49 wx-bld07.ms.northgrum.com systemd[1]: Failed to start SonarQube.
Jun 12 11:12:49 wx-bld07.ms.northgrum.com systemd[1]: Unit sonar.service 
entered failed state.
Jun 12 11:12:49 wx-bld07.ms.northgrum.com systemd[1]: sonar.service failed.

Here is one of the journal logs:

-- The result is failed.
Jun 12 11:12:49 wx-bld07.ms.northgrum.com systemd[1]: Unit sonar.service 
entered failed state.
Jun 12 11:12:49 wx-bld07.ms.northgrum.com systemd[1]: sonar.service failed.
Jun 12 11:12:49 wx-bld07.ms.northgrum.com systemd[1]: start request repeated 
too quickly for sonar.service
Jun 12 11:12:49 wx-bld07.ms.northgrum.com systemd[1]: Failed to start SonarQube.
-- Subject: Unit sonar.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel

This repeats four times and then the service fails to start because it tried to 
restart too many times.

My question is why is the service failing to start in the first place?

Here is my sonar.properties file:

sonar.jdbc.username=sonarqubeadmin
sonar.jdbc.password=sonar
sonar.jdbc.url=jdbc:mysql://localhost:3306/sonarqube_db?useUnicode=true&characterEncoding=utf8&rewriteBatchedStatements=true&useConfigs=maxPerformance
sonar.web.host=0.0.0.0

Here is my sonar.service file:

[Unit]
Description=SonarQube
After=syslog.target network.target

[Service]
Type=forking

ExecStart=/opt/sonarqube/bin/linux-x86-64/sonar.sh --debug start
ExecStop=/opt/sonarqube/bin/linux-x86-64/sonar.sh stop

User=sonarqubeadmin
Group=sonarqubeadmin
Restart=on-failure

[Install]
WantedBy=multi-user.target

Thank you!
Shannon Hire

_______________________________________________
systemd-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to