Performing the post-upgrade steps
You must perform various tasks after a SonarQube Server upgrade.
Last updated
Was this helpful?
You must perform various tasks after a SonarQube Server upgrade.
Here’s a list of steps to perform after the upgrade:
Verify the SonarScanner version.
For an Oracle database: clean up the database.
For a PostgreSQL database: clean up the database.
For a Microsoft SQL database with Windows authentication: verify the JDBC driver version.
If using an external configuration to control SonarQube Server (through a script or running as a service): update the service to point to the new installation directory.
If SonarQube Server is running as a service on Linux with SystemD, then you must configure SonarQube Server to run as a service by updating the sonarqube.service file.
If you use the Web API, check at some point the usage of deprecated Web API endpoints and parameters: see API deprecation.
See the sections below for more details on each step.
If some projects fail to reindex after the upgrade, see Reindexing a single project in Reindexing.
When upgrading SonarQube Server, you should also make sure you’re using the latest versions of the SonarScanners to take advantage of features and fixes on the scanner side. Please check the documentation pages of the scanners you use for the most recent version compatible with SonarQube Server and your build tools.
On Oracle, the database columns to be dropped are now marked as UNUSED and are not physically dropped anymore. To reclaim disk space, Oracle administrators must drop these unused columns manually. The SQL request is ALTER TABLE foo DROP UNUSED COLUMNS. The relevant tables are listed in the system table all_unused_col_tabs.
You can fix the table and index bloating by performing vacuuming in order to reclaim unused disk space. In some specific cases, a reindexis required afterward.
If you use Microsoft SQL Server with Windows Authentication, make sure that you’re using a supported version of the Microsoft SQL JDBC Driver package. The minimum supported version is the one mentioned on the Installing the database page.
If you use an external configuration, such as a script or Windows Service to control your server, you’ll need to update it to point to the new value of installation directory (<newSonarQubeHome>).
For Linux it depends how you implemented the service.
For Windows, update your service by running the following commands:
Last updated
Was this helpful?
Was this helpful?
sc delete SonarQube
<newSonarQubeHome>\bin\windows-x86-64\SonarService.bat install
