Running SonarQube as a service vis systemctl exits immediatley

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
    ** SonarQube, sonarqube-8.9.0.43852
  • what are you trying to achieve
    ** run it as a service
  • what have you tried so far to achieve this
    ** changed ExecStart to call the sonar.sh start

systemctl status sonarqube tells me that the service is deactivating:

Active: deactivating (stop-sigterm)

it should run in the name of a sonar user as set in the sonarqube.service:

User=sonar
Group=sonar

What do I miss?

Hi,

Welcome to the community!

What do your server logs say?

 
Ann

Hi @Laszlo_Kremer,

You can call the sonar-application.jar directly. There is no need to call the sonar.sh script when working with systemd. Take a look at the template in the docs Operating the Server | SonarQube Docs

The wrapper script can swallow some errors that you need to retrieve from the logs as @ganncamp mentioned

Hope that helps

Actually, this helped:

sudo journalctl -u sonarqube

I’ve found that the ExecStart was wrong in my case, I had to correct from /bin/nohup to /usr/bin/nohup

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.