Restart SonarQube Server remotely

16,575

Solution 1

Since SonarQube 5.4, you can restart it directly from the UI (Administrators should be able to request a server restart from web console) or using the WS /api/system/restart (WS /api/system/restart should trigger a true restart of SQ).

Solution 2

In my SonarQube instance (v5.6), I use the below curl command to restart SonarQube server

curl -u username:password -X POST https://SONAR_INSTANCE/api/system/restart

Solution 3

POST api/system/restart Since 4.3 Restart server. Available only on development mode (sonar.web.dev=true). Ruby on Rails extensions are not reloaded

Regards,

Michel

Share:
16,575
hrskrs
Author by

hrskrs

Updated on June 15, 2022

Comments

  • hrskrs
    hrskrs almost 2 years

    I implemented SonarQube on the server, and I do most of the configurations remotly. Hence whenever a plugin is installed, a restart of SonarQube is required and every time I have to explicitly (manually) restart the SonarQube server.

    Is there a way to restart SonarQube remotely?

    For example, like jenkins through http://sonar_url/restart.

  • Mario Majcica
    Mario Majcica about 8 years
    Hi Alexandre, is there a bug or a problem with this functionality? I can't restart the server by pressing that button, I get the popup saying that the page will be refreshed, but nothing happens. My SonarQube server stops replying (hangups). To get it back working the only solution is to restart the service. I'm referring to a SonarQube instance running on Windows.
  • Julien L. - SonarSource Team
    Julien L. - SonarSource Team over 7 years
    If you're using SonarQube 5.4 or 5.5, you should upgrade to 5.6, the issue has been fixed : jira.sonarsource.com/browse/SONAR-7422
  • Gayan
    Gayan over 4 years
    Also Administration -> System -> Restart Server