Cannot upgrade sonarqube from 8.9 to 9.X "database must be upgraded manually"

Must-share information (formatted with Markdown):

  • Current Sonarqube versionl: 8.9
  • How is SonarQube deployed: Docker (CloudRun GCP) + CloudSQL database (GCP)
  • What are you trying to achieve: We want to upgrade from 8.9 to 9.9 LTS and then switch to developer edition
  • What have you tried so far to achieve this:
    ** Upgrading Postgres from version 13 to 15
    ** Before doing this we got a constant error message of The version of SonarQube you are trying to upgrade from is too old. Please upgrade to the 9.9 Long-Term Active version first." despite us going from 8.9 to 9.9.
    We pulled the image via docker pull sonarqube:9.9-community

I’ve tried appending /setup to the end of my url but the wheel just spins and eventually I get “Service Unavailable”

I have since dropped and recreated my sonarqube database, the error message has changed to Database needs to be migrated. Please refer to https://docs.sonarsource.com/sonarqube-server/2025.1/server-upgrade-and-maintenance/upgrade/upgrade-the-server/roadmap

Still, when trying to go to /setup I get a “SonarQube is under maintenance” message

Hi,

Sorry, I know you just said this but I need to verify: When you browse to [my SonarQube URL]/setup, you get a maintenance message?

What do your server logs say?

 
Ann