How Do You Troubleshoot the SonarQube Service Not Working with a “vendor preset: disabled” Error?

Problem scenario
The SonarQube service failed to start.  

You see this message:

? sonar.service - SonarQube service
   Loaded: loaded (/etc/systemd/system/sonar.service; enabled; vendor preset: disabled)
   Active: failed (Result: start-limit) since Mon 2018-05-21 14:34:34 UTC; 12min ago

May 21 14:34:33 sonarserver systemd[1]: Started SonarQube service.
May 21 14:34:34 sonarserver systemd[1]: sonar.service holdoff time over, scheduling restart.
May 21 14:34:34 sonarserver systemd[1]: start request repeated too quickly for sonar.service
May 21 14:34:34 sonarserver systemd[1]: Failed to start SonarQube service.
May 21 14:34:34 sonarserver systemd[1]: Unit sonar.service entered failed state.
May 21 14:34:34 sonarserver systemd[1]: sonar.service failed.

What do you do?

Possible solution #1
1.  Install Java.  If you need assistance, see this posting.

2.  Then run these commands:
sudo systemctl enable sonar
sudo systemctl start sonar

Possible solution #2
Use the "-l" flag when you check the status.   This allows you to see longer lines for details.  Try to resolve the problem based on the verbose output of this command:  sudo systemctl status sonar -l

Leave a comment

Your email address will not be published. Required fields are marked *