I am trying to upgrade my sonarqube from version 8.9.10 to a LTS version 9.9.3. Iam performing this in my kubernetes cluster .Iam also using postgresql as the db (version 10.5 for older sonarqube and version 15 for 9.9 version sonarqube). So for testing the upgrading setup we are doing the steps in a sandbox cluster where i setup the older version solar and setup 2 projects in it.
The steps i tried for upgrade :
Backed up my postgresql database from my sonarqube db and /data and /extensions folder in my sonarqube app
Deleted the es folder
3)Scaled down my statefulset of both database and sonarqube.
Upgraded the version of postgres and restored the data back into the db.
Applied the newer version of sonarqube and scaled up the sonarqube statefulset also .
and after doing this when i port-forwarded the sonarqube iam not abole to see the previous sample two projects i created in the 8.9 version are not seen in the 9.9 version . When i open the 9.9 version it ask’s me to setup the projects.
How can i get my old projects to be there even after upgrade , in my production instances there are over 51 projects .
The deprecated SONARQUBE_JDBC_USERNAME, SONARQUBE_JDBC_PASSWORD, and SONARQUBE_JDBC_URL variables have been removed. See Environment variables for up-to-date configuration variables.
So you have probably started up against the internal embedded database with no data. Switch out the configuration to that mentioned in the docs, and you should be able to finish a real upgrade.