Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Steps to upgrade existing QMetry to latest version

Pre-requisites

Important Pre-requisites to check before upgrade to the latest version.

  • Proceed with this upgrade ONLY IF your current QMetry version is on or above v8.6 and below v8.9.0.033. To check: Go to QMetry > About section.

  • Mysql version of QMetry Reports and QMetry Application should be 5.7.29.

  • Ensure internet connectivity is enabled on the server for this upgrade.

  • SSL configuration would need to be re-done as a new docker gets installed. You refer the article SSL Certificate Configuration for Tomcat in Docker for reference.

  • With this upgrade, QMetry application data such as attachments, license and log files will be moved outside of the docker container for ease of access and stored in the specified directory at the time of the upgrade. Please ensure there is sufficient space on this location before beginning the upgrade.

  • Make sure to have minimum free disk space available is more than the size of (attachments + import + export + logs) files. 

...

Step 1: Download Required Files

  • You can generate a request on the QMetry Support Portal, to get the latest version of QMetry Upgrade Installer. 

  • Download the QMetryUpgrade.zip file to your QMetry Application Server once you receive it. Please note that it must be downloaded outside docker.

...

  • Syntax : docker exec qmetry_rds_1 sh -c 'exec mysqldump -uroot -p<password> --triggers --routines --hex-blob --single-transaction --lock-tables --no-create-db qmetry' > /opt/qmetry_backup_<date>.sql

  • For example: docker exec qmetry_rds_1 sh -c 'exec mysqldump -uroot -pqmetry --triggers --routines --hex-blob --single-transaction --lock-tables --no-create-db qmetry' > /opt/qmetry_backup_2021-01-01.sql

Verify that your database has been backed up properly and is available for later use in case of any emergency.

...

1. Execute the following command. Next, it will ask for docker's credentials. Enter the required credentials. Please contact QMetry Support, if you do not have the credentials.

  • docker login

After entering docker credentials, it will show the success message as shown below. 

...

2. Make sure QMetry and MySQL docker container must be running to ensure a successful upgrade. Check the running containers using the following command.

  • docker ps

If the docker containers are not running, start them using the below commands (replace container name according to the application container name).

  • docker start <container name>

3. Go to the directory where the QMetryUpgrade.zip file is downloaded and unzip file using the following command.

  • unzip QMetryUpgrade.zip

4. Execute the following commands.

  • cd QMetryUpgrade

  • sudo su

5. Make sure to have existing docker volumes and docker container names as per following.

  • Check docker volumes name using the below command.

    • docker volume ls

  • Docker volume name should be qmetryapp_attachment.

  • Check docker container name using the below command.

    • docker ps

  • Docker container name should be qmetry_app_1. 

  • If any of this name is not same as above, then update upgrade.sh file for changed value with the respective names using following steps.

    • Open the file – upgrade.sh in edit mode

      • vi upgrade.sh

    • Update the file for changed value with the respective names of volume and container.

      • Press i to change the file mode to insert.

      • Update the variable value according to the existing docker volume and docker container name.

        • exist_attachment_volume → Value from docker volume ls for attachment 

        • exist_qmetry_container → Value from docker ps for qmetry

      • Press Esc, and then type :wq to save the changes.

...

6. Give permission to upgrade.sh file through the following command.

  • chmod +x upgrade.sh

  • sh upgrade.sh

7. While running script file will ask for enter directory path where QMetry application's data can be stored. This directory will now onward stores the QMetry application's files related data. 

...

  • Check the running containers using the following command.

    • docker ps

  • Restart both docker containers using the below commands (replace container name according to the application container name).

    • docker stop <container name>

    • docker start <container name>

Step 5: Installing / Upgrading Jira add-on for the Integration of QMetry and Jira.

...

  • After upgrade to latest QMetry docker container, if everything is working as expected with all existing data as previously exist then one can execute following commands to remove old versions of QMetry application's docker container, docker images, docker volumes, and backup.

    • docker rm qmetryapp_backup 

    • docker image prune -af

    • docker volume prune -f

  • Additionally, delete directory "QMetryBackup" from the path where upgrade.sh file was executed for upgrade activity. 

If you are facing any issues during the installation process, kindly generate a support ticket on Support Portal for assistance.