All quality profiles do not have rules when SonarQube is updated to 5.4

We are currently launching a production server version 5.1.2, which we plan to upgrade.

Tests have shown that upgrading to 5.3 works as expected.

However, updating from 5.1.2 → 5.4 or 5.1.2 → 5.3 → 5.4 leads to the fact that all quality profiles from the 5.1.2 instance become empty - no rules are assigned at all.

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

Has anyone else experienced this? Is there any work?

Thanks in advance.

+6
source share
2 answers

The upgrade instructions in the Administration (System Update) view are different from the instructions here: Upgrading

I would modify the first instructions as follows (in the italic text, the changed / added lines), and I will try to keep Upgrading in sync.

  • Copy the list of installed plugins and stop your old SonarQube server.
  • Download the new version of SonarQube and run it on an empty database (for example, bundled with DB).
  • Install (from the update center) the plugins you need.
  • Install your own plugins (if any).
  • Update the conf / sonar.properties file to use the appropriate configurations from the old instance, including connection information for your production database.
  • Stop your new SonarQube server.
  • Delete the following folders from the new SonarQube server: data, temp
  • Launch the new SonarQube: you're done!
+10
source

I had the same problem as today, starting from 4.5.6 to 5.4. I managed to get around the problem by returning to 4.5.6 and then moving back the old way, that is, ignoring the new update instructions.

The environment was Windows10 / Postgresql4.3

Further research showed that I skipped a step in the new instructions, namely deleting the data / es directory.

I migrated several times, and if I run the default default database to check and update plugins, but forgot to delete the / es data directory before switching to postgresql, then the quality profiles will get null rules, but if I follow the instructions correctly, the profiles will correctly transferred.

Please check your procedures against http://docs.sonarqube.org/display/SONAR/Upgrading

Hope this helps

+5
source

All Articles