I want to migrate the existing data from the internal PostgreSQL 12 database (used by SonarQube 7.9) to an AWS RDS PostgreSQL 13 database. Once the migration is complete, I intend to connect the new SonarQube 9.9 instance to this AWS RDS PostgreSQL 13 database.
Steps I Have Taken:
Data Export Using pg_dump:
I used pg_dump to export the data from the internal PostgreSQL 12 database.
Restore Data to AWS RDS PostgreSQL 13:
I restored the pg_dump output to the AWS RDS PostgreSQL 13.
Configure SonarQube 9.9 to Use the Restored Database:
I modified the sonar.properties file in the SonarQube 9.9 instance to point to the AWS RDS PostgreSQL 13 database.
Start the New SonarQube 9.9 Instance:
After configuring, I attempted to start the SonarQube 9.9 instance.
Issues Faced:
Schema Mismatch Error: I encountered a schema mismatch error, and SonarQube 9.9 is not starting.
Unable to See Data: I am not able to see any of the migrated data.
Questions:
Are there specific compatibility issues or steps I may have missed when migrating from SonarQube 7.9 with PostgreSQL 12 to SonarQube 9.9 with PostgreSQL 13?
What are the recommended steps to resolve the schema mismatch error?
Are there any best practices for using pg_dump and restoring SonarQube databases, particularly when moving between versions
And then what about the SonarQube DB Copy Tool is suitable for this scenario. DB Copy Tool is free or paid one. SonarQube database copy tool
We do support PostgreSQL from 11 to 15, so you shouldn’t have any issues there.
Regarding the best practices for upgrading PostgreSQL, you should check their official documentation.
The SonarQube DB Copy Tool is meant for the case you were moving from PostgreSQL to Oracle or MSSQL.
As for the error you are getting, could you post your logs?
Without looking at your logs, only at your post, I understood that you are attempting to migrate from SonarQube 7.9 straight to 9.9. That won’t work. In the page that you linked, if you scroll a bit more, you are going to find some migration path examples, one of which is the migration from 7.9 LTA to 9.9 LTA: 7.9 LTA > 8.9 LTA > 9.9 LTA (one intermediary step).
So what I would try is:
Starting with the restored DB into AWS RDS PostgreSQL 13
Configure SonarQube 7.9 to use it and ensure that the PostgreSQL upgrade worked
I have upgraded SonarQube from version 7.9 to 8.9, and I can see all the projects. However, I am unable to see any plugins in version 8.9.
I found the following message regarding the Marketplace: “Plugins available in the Marketplace are not provided or supported by SonarSource. Please reach out directly to their maintainers for support.”
After that, I proceeded with the upgrade from version 8.9 to 9.9, but now I am unable to see the projects, and I get a popup message as shown in the screenshot below.
This is SonarQube version 9.9. I’m not able to see the project and issues. However, in the third screenshot, I can see the project, but I’m not able to find any plugins. Where can I get the upgraded plugins?
Now, I can see the projects and issues, but I’m unable to find the plugin. Where can I find the plugins? I tried looking in the marketplace but couldn’t find them.