SonarQube Service Keeps Restarting Continuously

  • which versions are you using (SonarQube Server / Community Build) 10.6
  • how is SonarQube deployed: zip
    Hi everyone,

I’m facing an issue with my SonarQube installation where the service keeps restarting repeatedly without staying active. Here’s a snippet of the relevant logs:

less

Copy code

Dec 14 20:50:17 master systemd[1]: Stopped SonarQube service.
Dec 14 20:50:17 master systemd[1]: sonarqube.service: Consumed 26.812s CPU time.
Dec 14 20:50:17 master systemd[1]: Starting SonarQube service...
Dec 14 20:50:17 master sonar.sh[23517]: /usr/bin/java
Dec 14 20:50:17 master sonar.sh[23517]: Starting SonarQube...
Dec 14 20:50:17 master sonar.sh[23517]: Started SonarQube.
Dec 14 20:50:17 master systemd[1]: Started SonarQube service.
Dec 14 20:50:26 master sonar.sh[23755]: /usr/bin/java
Dec 14 20:50:26 master sonar.sh[23755]: Gracefully stopping SonarQube...
Dec 14 20:50:26 master sonar.sh[23755]: Removed stale pid file: ./SonarQube.pid
Dec 14 20:50:26 master sonar.sh[23755]: SonarQube was not running.
Dec 14 20:50:26 master systemd[1]: sonarqube.service: Deactivated successfully.
Dec 14 20:50:26 master systemd[1]: sonarqube.service: Scheduled restart job, restart counter is at 9.

The restart counter keeps increasing, and the service never stays active for more than a few seconds. I’ve noticed entries about removing a stale PID file and messages like “SonarQube was not running,” but I’m not sure what’s causing this.

it was running but after restarting the vm I got that issue

Has anyone encountered a similar issue, or does anyone have insights into what might be causing this restart loop? Any help would be greatly appreciated!

any help??

From our FAQ:

I created a topic, when can I expect a response?

This is an open community with people volunteering their free time to provide assistance. We’re eager to contribute to the community, but you are not guaranteed a fast response.

Be patient

  • Wait a few days before bumping a topic that hasn’t received a response.
  • Do not @name mention individuals not involved in the topic.

Contribute as much as you expect to receive

  • Contribute to the community (helping others) as much as you expect to receive help.

It is not a replacement for more structured support

  • If you need SLAs, guaranteed response, privacy, SonarSource also offers Commercial Support.