Restart SonarQube Server remotely
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
hrskrs
Updated on June 15, 2022Comments
-
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 ofSonarQube
is required and every time I have to explicitly (manually) restart theSonarQube
server.Is there a way to restart
SonarQube
remotely?For example, like
jenkins
throughhttp://sonar_url/restart
. -
Mario Majcica about 8 yearsHi 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 over 7 yearsIf 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 over 4 yearsAlso
Administration
->System
->Restart Server