Migration only database 10.6 ==> 25.5 Is this possible?

Hello

I’m currently using SonarQube Community 10.6 on Ubuntu Server 22.04, PostgreSQL 11, and Java 17.
I want to migrate SonarQube, but also take the opportunity to upgrade to Ubuntu Server 24.04.
So I was thinking of reinstalling a new server (Ubuntu 24.04, PostgreSQL 13, and Java 21), then transferring my data from the old server to the new one.
Is this possible? Should I use DB Tool or simply move the database?

Thanks for your advice.

Hello

I’m surprised, no one has ever had this need.
The migration principle is good, but at some point you have to reinstall the server to meet new requirements or for security fixes.

How do you do it?

Hi,

You can use the standard pg_dump/pg_restore to move your SonarQube db to the new installation.

For the SonarQube upgrade itself, check the documentation here: Upgrade roadmap | SonarQube Community Build Documentation

Thanks for the feedback.
I tried to back up the V10 Sonardb database.

Then, on the SonarQube 24.12 server, I tried to load this database, but I couldn’t restart the SonarQube server, and yet there were no errors in the various log files.