Issues installing Sonar Qube on Linux

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube Server / Community Build, Scanner, Plugin, and any relevant extension)
  • how is SonarQube deployed: Docker
  • what are you trying to achieve
  • what have you tried so far to achieve this

Do not share screenshots of logs – share the text itself (bonus points for being well-formatted)!

==========

I’ve installed SonarQube on Ubuntu and ran into this error :

× sonar.service - SonarQube service
     Loaded: loaded (/etc/systemd/system/sonar.service; enabled; vendor preset: enabled)
     Active: failed (Result: start-limit-hit) since Fri 2026-01-23 21:32:26 UTC; 1 day 23h ago
    Process: 4502 ExecStart=/opt/sonarqube/bin/linux-x86-64/sonar.sh start (code=exited, status=0/SUCCESS)
    Process: 4537 ExecStop=/opt/sonarqube/bin/linux-x86-64/sonar.sh stop (code=exited, status=0/SUCCESS)
   Main PID: 4502 (code=exited, status=0/SUCCESS)
        CPU: 211ms

Jan 23 21:32:26 odo-code systemd[1]: sonar.service: Scheduled restart job, restart counter is at 5.
Jan 23 21:32:26 odo-code systemd[1]: Stopped SonarQube service.
Jan 23 21:32:26 odo-code systemd[1]: sonar.service: Start request repeated too quickly.
Jan 23 21:32:26 odo-code systemd[1]: sonar.service: Failed with result 'start-limit-hit'.
Jan 23 21:32:26 odo-code systemd[1]: Failed to start SonarQube service.

I’ve already ran this echo “vm.max_map_count=2621440” | sudo tee -a /etc/sysctl.conf but still not working.

Any ideas how I could fix this?

Thanks.

Hello @odojo,

Welcome to SonarQube Community.

The error message indicates that the SonarQube service has hit the restart limit set by systemd, preventing it from starting automatically. This means the service has failed to start multiple times in a short period.

To identify the root cause of these failures, please check the SonarQube logs, usually located in the logs directory of the installation (e.g., /opt/sonarqube/logs/ ). These logs contain detailed information that can help you troubleshoot the issue.

Feel free to share the logs if you need further assistance.

Best regards!

1 Like