6

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.

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
hrskrs
  • 4,447
  • 5
  • 38
  • 52

3 Answers3

8

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).

  • 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. – Mario Majcica Apr 26 '16 at 13:30
  • If you're using SonarQube 5.4 or 5.5, you should upgrade to 5.6, the issue has been fixed : https://jira.sonarsource.com/browse/SONAR-7422 – Julien L. - SonarSource Team Sep 01 '16 at 15:08
  • Also `Administration` -> `System` -> `Restart Server` – Gayan Weerakutti Nov 23 '19 at 06:42
  • cannot find ```Restart Server``` – Falco Alexander Aug 23 '23 at 11:05
1

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

Kraal
  • 2,779
  • 1
  • 19
  • 36
1

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
FatherMathew
  • 960
  • 12
  • 15