Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Restart SonarQube Server remotely

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.

like image 931
hrskrs Avatar asked Oct 01 '15 11:10

hrskrs


People also ask

How do I restart my SonarQube server?

Restart SonarQube Restarting SonarQube can be done manually from the command line by running sonar.sh restart . In SonarQube Community Edition, you can also restart from the UI, in the Update Center. When you have Pending Changes, the restart button will be displayed in the yellow banner (see Pending Operations).

How do I access SonarQube remotely?

You need to open Settings window and find Tools > SonarLint there. Then you press the plus button and you will have connection wizard that will ask you all necessary data to configure connection. You will need URL of SonarQube server and login-password pair or token for authorization.

How do I turn off SonarQube server?

Start or Stop the Service Note: > %SONAR_HOME%\bin\windows-x86-64\SonarService. bat stop does a graceful shutdown where no new analysis report processing can start, but the tasks in progress are allowed to finish. The time a stop will take depends on the processing time of the tasks in progress.


2 Answers

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

like image 105
Alexandre - SonarSource Avatar answered Sep 24 '22 11:09

Alexandre - SonarSource


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

like image 20
Kraal Avatar answered Sep 21 '22 11:09

Kraal