Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

All quality profiles have no rules when SonarQube is upgraded to 5.4

We are currently running a production server at version 5.1.2 which we are planning to upgrade.

Tests have shown that upgrading to 5.3 works as expected.

However, upgrading from 5.1.2 -> 5.4 or 5.1.2 -> 5.3 -> 5.4 results in all quality profiles from the 5.1.2 instance becoming empty - no rules assigned at all.

Worse, backing up the rules and attempting to restore them fails silently.

Has anyone else experienced this? Is there a work-around?

Thanks in advance.

like image 244
playtime222 Avatar asked Mar 17 '16 14:03

playtime222


1 Answers

The update instructions in the Administration view (System Upgrades) differ from the instructions here: Upgrading

I would change the first instructions as follows (in cursive text the changed/added lines) and I'd try to keep the Upgrading instructions in sync.

  1. Copy the list of installed plugins and stop your old SonarQube server.
  2. Download the new SonarQube version and start it on an empty DB (the bundled H2 DB for instance).
  3. Install (from the update center) the plugins you want.
  4. Install your custom plugins (if any).
  5. Update the conf/sonar.properties file to use the relevant configurations from your old instance, including the connection information for your production DB.
  6. Stop your new SonarQube server.
  7. Remove the following folders from the new SonarQube server: data, temp
  8. Start the new SonarQube instance: you're done!
like image 182
Stephan LV Avatar answered Feb 07 '23 07:02

Stephan LV