Performing the update
Once you have determined your update path and tested your update, you can perform your SonarQube Server update.
Now that you have Determining the update path and performed the Pre-update steps, you can proceed with your update
Updating a ZIP file instance
Before you update, make sure you know how to Installation overview from the ZIP file and check that your environment Server host requirements of the version you’re updating to.
To update from the ZIP file:
Download and unzip the SonarQube Server distribution of your edition in a fresh directory, let’s say
<newSonarqubeHome>.If you’re using third-party plugins, manually install plugins that are compatible with your version of SonarQube Server. Use the Plugin version matrix to ensure that the versions you install are compatible with your server version. Simply copying plugins from the old server to the new is not recommended; incompatible or duplicate plugins could cause startup errors. Analysis of all languages provided by your edition is available by default without plugins.
Update the contents of
sonar.propertiesfile (in<newSonarqubeHome>/conf) with the settings in the<oldSonarqubeHome>/confdirectory (web server URL, database, ldap settings, etc.). Do not copy-paste the old files. If you are using the Oracle DB, copy its JDBC driver into<newSonarqubeHome>/extensions/jdbc-driver/oracle.Stop your old SonarQube Server.
Start your new SonarQube Server.
Browse to
http://yourSonarQubeServerURL/setupand follow the setup instructions.Reanalyze your projects for a better experience.
Updating a Docker image instance
To update SonarQube Server using the Docker image:
Stop and remove the existing SonarQube Server container:
$ docker stop <container_id>
$ docker rm <container_id>2. Set up and start your container.
where <image_name> depends on the update target:
for SonarQube Community Build:
sonarqubefor SonarQube Server Editions: check the tags currently available on the DockerHub page.
3. Go to http://yourSonarQubeServerURL/setup and follow the setup instructions.
4. Reanalyze your projects for a better experience.
If you’re updating with an Oracle database or you’re using plugins, you can reuse your extensions volume from the previous version to avoid moving plugins or drivers. Use the Plugin version matrix to ensure that your plugins are compatible with your version. Analysis of all languages provided by your edition is available by default without plugins.
If updating from 8.9.x LTA to 9.9.x LTA (Release cycle model: Please note that the
ltstag on Docker images is replaced with every new LTA release. If you want to avoid an automatic major update, we recommend using the corresponding9.9-<edition>tag instead of relying on thelts-<edition>tag.Unless you intend to delete the database and start new when running your image, be careful not to use
-vtodocker-compose downand, be careful when running commands likedocker system pruneordocker volume prune; regardless if you use anexternal: trueparameter, your database volumes will not persist beyond the initial startup and shutdown of SonarQube Server.
Updating a Helm chart instance
We highly recommend to Setting up autoscaling during long-running updates.
If you’re updating with an Oracle database or you’re using plugins, you can reuse your extensions Persistent Volume Claims from the previous version to avoid moving plugins or drivers. Use the Plugin version matrix to ensure that your plugins are compatible with your version. Analysis of all languages provided by your edition is available by default without plugins.
Please verify that any custom configurations or custom values.yaml files contain only parameters that are still compatible with the targeted chart, and adjust them if needed. Some default values assigned to parameters may have changed between versions of the chart,or other parameters could have been removed.
Standard procedure
Change the SonarQube Server version parameter on your
values.yaml:Developer and Enterprise Editions:
image.tagData Center Edition:
searchNodes.image.tagandapplicationNodes.image.tag
Redeploy SonarQube Server with the same helm chart:
3. If you’re updating a Data Center Edition: after SonarQube Server’s search pods are running and ready, only one application (app) replica will be running and ready. You can confirm that it’s because of the ongoing update by inspecting the logs of the pod for this text: The database must be manually upgraded. Please backup the database and browse /setup.
4. Go to http://yourSonarQubeServerURL/setup and follow the setup instructions.
5. Reanalyze your projects to get fresh data.
If updating from 8.9.x LTA to 9.9.x LTA
Update from 8.9.x LTA to 9.9.x LTA
To install SonarQube 9.9 LTA, use the sonarqube Helm chart. The sonarqube-lts Helm chart is no longer maintained and cannot be used to install the new LTS.
For SonarQube 9.9 LTA Community, Developer, and Enterprise Editions, the Helm chart version to use is
8.x.x. SeesonarqubeArtifactHub for more information.For SonarQube 9.9 LTA Data Center Edition, the Helm chart version to use is
7.x.x. Seesonarqube-dceArtifactHub for more information.
As SonarQube only requires to persist the database, the general update process will consist of uninstalling your instance before installing the new LTA.
If you are using an external database, you don’t have any persistent data inside kubernetes. Therefore, there is no action required.
Instead, if you rely on the embedded PostgreSQL chart (not recommended), uninstalling the chart will keep the PVC alive. The PVC can then be reused either:
by specifying
postgresql.existingClaimin thevalues.yamlfileby not changing parameter values, but making sure you install the new chart in the same namespace (auto-generated name will be the same).
Related pages
Last updated
Was this helpful?

