How to upgrade SonarQube server

If you followed my blog on How to setup a SonarQube server in Azure using this blog will show you how to upgrade it.

  1. Take inventory for plugins installed on current version.
  2. Download desired version from https://www.sonarqube.org/downloads/
  3. Once the download is complete unblock the file
    1. Right-click the zip
    2. Click the unblock button
  4. Unzip into new location leaving the old server folder
  5. Using Services stop your SonarQube
  6. Using the batch file in \bin of current server run UninstallNTService.bat
  7. Using Sql Server Management Studio to back up your database
  8. Copy settings from \conf\sonar.properties file to new install
    1. Do not copy entire file
  9. Using the batch file in \bin of new server run InstallNTService.bat
  10. Using Services change the Log on as as described in I can’t run SonarQube as a Windows Service
  11. Using Services start server
  12. Visit http://yourserver/setup and follow the directions
  13. Re-install/Upgrade plugins

Comments (7) -

  • Greg Duncan

    2/21/2017 3:02:58 PM | Reply

    Because I hate when I do this (and as actual proof someone read the post ;)

    "4. Unzip into new location leaving the odd server folder..."

    odd folder? lol

    • Donovan

      2/21/2017 3:15:44 PM | Reply

      In my defense it was old and odd! LOL  Thanks for the catch. I will correct.

  • Mike Jones

    3/23/2017 5:20:42 AM | Reply

    Hi Donovan,
    Can you can share any scripts that you used to automate some or all of the upgrade process?
    Thanks
    Mike

    • Donovan

      3/23/2017 12:32:07 PM | Reply

      I did not use any scripts.

      • Donovan

        3/23/2017 12:34:20 PM | Reply

        All the batch files are in the zip you download.

  • Karthik

    7/13/2017 7:29:21 AM | Reply

    Is there CLI commands for this step?
    Visit http://yourserver/setup and follow the directions

    • Donovan

      7/13/2017 12:13:55 PM | Reply

      Not that I am aware of.

Add comment

Loading