Must-share information (formatted with Markdown):
- which versions are you using (SonarQube Server / Community Build, Scanner, Plugin, and any relevant extension)
26.4.0 - how is SonarQube deployed: zip, Docker, Helm
Docker - what are you trying to achieve
Upgrade from 25.9.0 to 26.4.0 - what have you tried so far to achieve this
Hello,
the tool available in the link below and probably the documentation seems to be wrong.**
Determining the update path | SonarQube Server | Sonar Documentation
With this tool, I get the following upgrade path from 25.9
25.9 > 25.12 (December release) > 16.4
But, it I do exactly this, when starting the version 26.4, I get the error:
org.sonar.server.platform.DatabaseServerCompatibility’: The version of SonarQube you are trying to upgrade from is too old. Please upgrade to the 25.12 version first.
It looks to me that the wrong schema migration is referenced here:
sonar-db-migration/src/main/java/org/sonar/server/platform/db/migration/version/DatabaseVersion.java
After migrating the DB with the 25.12 community version this is what I have in the schema_migrations table:
sonar=# SELECT * FROM schema_migrations ORDER BY version DESC LIMIT 3;
version
202506026
202506025
202506024
and If I update to 26.1 and migrate the DB again then I get this:
sonar=# SELECT * FROM schema_migrations ORDER BY version DESC LIMIT 3;
version
202601000
202506028
202506027
and only then, I’m able to update to 26.4.
So, it would be nice it the documentation and the tool could be fixed to give a working upgrade path.
Thanks