SonarSource / mysql-migrator

Command line tool to migrate MySQL database of SonarQube 6.7-7.8 to non-MySQL
39 stars 11 forks source link

Migrator may invalidate your current license, and require license regeneration! #59

Open pancakeslp opened 4 years ago

pancakeslp commented 4 years ago

This is more of a heads up / FYI, not a "I have an issue please help me fix".

I have a commercial license for sonarqube. I planned a database migration (to use this tool), and then found afterwards that my sonarqube server was no longer accepting new analyses. This was because my server ID had changed as a result of the database upgrade.

After a chat to sonarsource support, they were able to confirm that the upgrade caused the server ID to change

The Server ID is generated from the sonar.jdbc.url configuration for your SonarQube instance – along with a randomly generated value when a database is instantiated for the first time. If your Database connection string changes, or your Database is wiped and started from scratch, the Server ID will change.

To keep my sonarqube running smoothly I un-migrated the database. Currently I'm chatting to sonarsource team to regenerate my license so I can use my new database with sonarqube.

Their documentation (now?) lists criteria where the the license may be invalidated https://docs.sonarqube.org/latest/instance-administration/license-manager/ along with steps to request a new license.