Today I will share the steps to upgrade from the SonarQube version 5.X to SonarQube version 6.X. We have upgrade guide which can be found http://docs.sonarqube.org/display/SONAR/Upgrading but its not complete guide thus I am sharing the steps as follows which can be followed for the production server as well. As practice shared on the oficial guide that before upgrading to the next major release, you must upgrade to know LTS e.g
Example 1 : 4.2 -> 6.1, migration path is 4.2 -> 4.5.7 LTS -> 5.6 LTS -> 6.1
Example 2 : 5.1 -> 5.6, migration path is 5.1 -> 5.6
Upgrading across multiple versions is handled automatically. However, if in your migration path you have an LTS version, you must first migrate to this LTS and then migrate to your target version.
Remember that SonarQube upgrade procedure does not have a rollback procedure, so it is mandatory that you take a full backup of the system before performing the upgrade.
Process 1: Steps to Take a Full Backup of SonarQube Server?
Be mindful that $SONAR_HOME/extensions/plugins directory where you can get the list of plugins installed.
Step 5 – List of custom coding rules installed
Be mindful that $SONAR_HOME/extensions/rules directory where you can get the list of custom coding rules.
Step 6 – List of configurations used
Be mindful that $SONAR_HOME/config directory where you can get sonar.properties and wrapper.conf file which has all the current configurations and setup.
Step 4: Update the contents of sonar.properties and wrapper.conf files (in NEW_SONARQUBE_HOME/conf) with the settings of the related files in the OLD_SONARQUBE_HOME/conf directory (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 NEW_SONARQUBE_HOME/extensions/jdbc-driver/oracle
If you use external configuration, such as a script or Windows Service to control your server, you’ll need to update it to point to NEW_SONARQUBE_HOME.
In case you used the InstallNTService.bat to install SonarQube as a Windows Service, run the OLD_SONARQUBE_HOME/bin/…/UninstallNTService.bat before running the InstallNTService.bat of the NEW_SONARQUBE_HOME.
If you install SonarQube with Sql Server, it is better to chose Latin1_General_CS_AS as collation to avoid problems.
Some Well known Troubleshooting after upgrades.
Issues – Sonarqube upgrade 5.6 to 6.1, test coverage measue is missing
Solution – You might be missing the sonar.java.binaries. Sonar-5.6 did not need those.
Issues – Some unknown issues
Solution – Whenever you have problem with SonarQube do not forget to read the log, because only in the log you can understand the real cause of errors.
I’m a DevOps/SRE/DevSecOps/Cloud Expert passionate about sharing knowledge and experiences. I have worked at Cotocus. I share tech blog at DevOps School, travel stories at Holiday Landmark, stock market tips at Stocks Mantra, health and fitness guidance at My Medic Plus, product reviews at TrueReviewNow , and SEO strategies at Wizbrand.
How to run Remote Desktop Console using command line If you may want to run Desktop Console from a batch file, for example RDC over VPN, you can use mstsc /v:servername /console command. Mstsc Creates connections to terminal servers or other remote computers, edits an existing Remote Desktop Connection (.rdp) configuration file, and migrates legacy…
In this Tutorial we are going to learn about Laravel. But most importantly you have to know about PHP first. If you don’t know about PHP and what is PHP then go to this link and learn about PHP first Click Here. I have already mentioned that in this tutorial I am going to explaining…
Step by step procedures to Install Nagios XI Server in Centos 7 #Update your centos os > yum install update > yum install wget # to install network utility e.g. ping. (Optional) > yum install net-tools > cd /tmp > mkdir software > cd /tmp/software # Download the Nagios latest package > wget https://assets.nagios.com/downloads/nagiosxi/5/xi-5.4.3.tar.gz >…
Situation For one of our clients, Build is taking 8 hours and nightly build is failing frequently. Test case execution is consuming more time than the compilation. Low confidence levels for developers on nightly builds and subsequently during integration cycle. Approach We reviewed the whole set of build scripts being used and test case suite…
How to install chefDK in RHEL, Ubantu, Mac and Windows? How to install chefDK in RHEL Step 1: Download checfdk from https://downloads.chef.io/chef-dk/ > wget https://opscode-omnibus-packages.s3.amazonaws.com/el/6/x86_64/chefdk-0.9.0-1.el6.x86_64.rpm or > curl -o chefdk-0.9.0-1.el6.x86_64.rpm https://opscode-omnibus-packages.s3.amazonaws.com/el/6/x86_64/chefdk-0.9.0-1.el6.x86_64.rpm > chmod 755 chefdk-0.9.0-1.el6.x86_64.rpm Step 2: Install chef dk > rpm -ivh chefdk-0.9.0-1.el6.x86_64.rpm Step 3: Confirm your installation. > which chef > chef -v…
Location: BuildForge Home Dir – Platform To display command syntax, use bfexport with no options. $ ./bfexport Usage: bfexport -l or: bfexport [-c comment] [-f filename] [-g] [-s] [-L] [-n] <Project name or UUID> <Version name> Options : -l: Lists all projects in the system and their project UUID. -c : Add a comment to…