QMetry and Reports Offline Installation on Linux - 3 Tier

This topic describes how to install the QMetry database, the QMetry Test Management application, and the QMetry Reports tool on three Linux servers that have no internet connection. You download the Docker images on an internet-enabled machine, transfer them to the servers, and install them with the QMetry installer.

QMetry runs in Docker containers on Apache Tomcat 11.0.5, MySQL 8.4.8, and OpenJDK 17.0.2.

Deployment Architecture

3 Tiers

Installations

Server 1

QMetry Application

Server 2

QMetry Database

Server 3

QMetry Reports and QMetry Reports Database

Redis and ActiveMQ are also required for Reports. Install them with menu options 4 ( QMetry Redis) and 5 (QMetry Queue).

Pre-requisites

Confirm every item in the Pre-requisites for QMetry Application and Report Server Installation. Then confirm the following for all three servers.

Prerequisite

What to confirm

Required commands

unzip, wget, curl, vim and Docker commands are installed.

Operating Systems

CentOS, RHEL 8, RHEL 9, and RHEL 10 and Ubuntu 24.04

Docker Version

20.10.13

Docker Compose Version

v2.5.0

Installation files

Get the QMetry_Linux_Installer.zip files and Docker credentials from QMetry Support.

root user

Ensure you have root user access.

To install using a non-root user, refer to Installing QMetry as a Standard User before starting the install on both QMetry and Report servers.

Protocol

QMetry application and Report both should be configured either on https or http.

For Jira integration with QMetry, QMetry and Jira should run on the same protocol.

In addition to these, ensure the following:

  1. Configure docker service on QMetry Application, QMetry DB, and Report servers to start automatically on reboot of servers.

  2. The following Ports should be open:

    Installation

    Ports that need to be enabled and should be available for use

    QMetry Database Server

    3306

    QMetry Application

    80/443

    QMetry Report

    80/443, 8080 & 3306

  3. QMetry Application and Report Servers should be able to communicate over 80/443 Ports and Database Server 3306/DB Ports. Ports 8080 and 3306 should be enabled/open on the Reports Server to allow connections from the QMetry application server.

  4. Ports 80/443 and 3306 on the respective servers should be free and not in use by other applications. QMetry App server should be able to communicate with the reports server on port 3306.

Download and Transfer Docker Images of QMetry and Report

Follow these steps on the Internet-enabled machine:

  1. Log in to Docker. If you do not have credentials, contact QMetry Support.

    docker login
  2. Download and save each image.

    docker pull qmetry/qmetry:latest
    docker save -o /opt/qtm/qmetryapp.tar qmetry/qmetry:latest
    docker pull qmetry/qmetry:appdb848
    docker 
    save -o /opt/qtm/qmetrydb.tar qmetry/qmetry:appdb848
    docker pull qmetry/qmetry:cdcdocker save -o /opt/qtm/qmetrycdc.tar qmetry/qmetry:cdcdocker pull qmetry/qmetry:syncdocker save -o /opt/qtm/qmetrysync.tar qmetry/qmetry:syncdocker pull qmetry/qmetry:reportdb848docker save -o /opt/qtm/qmetryreportdb.tar qmetry/qmetry:reportdb848docker pull qmetry/qmetry:latest

    After the process is finished, verify the Docker image has been downloaded successfully.

    docker images
  3. Transfer QMetry_Linux_Installer.zip to each server, along with the image archives below. Transfer the supported offline Redis and ActiveMQ packages to their chosen hosts. Do not proceed until all required packages are available without internet access.

    Destination

    Image

    Server 1

    qmetryapp.tar

    Server 2

    qmetrydb.tar

    Server 3

    qmetrycdc.tar, qmetrysync.tar, qmetryreportdb.tar

Install the QMetry Database

To install the QMetry database, do the following:

  1. Place the QMetry_Linux_Installer.zip file and qmetrydb.tar file in the same directory.

    sudo -icd <installation files directory>
    docker load -i qmetrydb.tar
    sudo docker images
    
  2. Switch to the root user and extract the installer.

    unzip QMetry_Linux_Installer.zip
  3. Run the installer

    cd QMetry_Linux_Installer 
    chmod +x install.sh
    ./install.sh
  4. At the online installation prompt, enter N to install offline.

    Options

    Allowed Values

    Default Value

    Recommended Value

    Do you want to make an online installation (Y/N)?

    Y, y, N, n

    Y

    N

  5. If the installer prompts for Docker credentials, enter the credentials from the installation package.

  6. On the QMetry Installation Menu, enter 1 to install the QMetry database.

    image-20260331-061107.png
  7. Enter the following parameter.

    Options

    Details

    Example

    Enter QMetry database password for root user

    Enter QMetry Application Database Password for the root user.

    QMetry@123

  8. When the installer displays QMetry RDS Installation is complete., enter 0 to exit the installer.

  9. Verify that the MySQL container is running.

    docker ps
    
  10. Configure remote database access so that the QMetry Application and Reports servers can connect.

    docker exec -it qmetryapp_db bash
    mysql -uroot -p; 
    GRANT ALL PRIVILEGES ON *.* TO 'root'@'%'; 
  11. Verify MySQL

    Once the script finishes executing, run docker ps to check if the MySQL Docker container is available with the name: qmetryapp_db

Note

MySQL 8.4.8 is installed on port 3306 with username root and password as specified in step 6.

Install QMetry Application

To install QMetry Application, perform the following steps:

  1. Place QMetry_Linux_Installer.zip and qmetryapp.tar in the same directory.

  2. Go to that directory and load the application image.

    sudo docker load -i qmetryapp.tar
    
  3. Switch to the root user and extract the installer.

       sudo su
       unzip QMetry_Linux_Installer.zip
  4. Run the installer

    cd QMetry_Linux_Installer
    chmod +x install.sh
    ./install.sh
  5. At the online installation prompt, enter N to install offline.

    Options

    Allowed Values

    Default Value

    Recommended Value

    Do you want to make an online installation (Y/N)?

    Y, y, N, n

    Y

    N

  6. If the installer prompts for Docker credentials, enter the credentials from the installation package.

  7. On the QMetry Installation Menu, enter 2 to install the QMetry application.

    image-20260331-061107.png
  8. Enter the application data directory. QMetry stores attachments, licenses, imports, and exports in this directory. The installer creates the directory if it does not exist.

    Options

    Example

    Please enter QMetry application directory

    /opt/QMetry_Linux_Installer

  9. Enter the configuration parameters

    Options

    Details

    Default Value

    Example

    Enter QMetry database hostname

    Enter QMetry Database Host as DNS/IP Address

    localhost

    192.168.0.100

    Enter the QMetry database port

    Enter QMetry Database Port. If it is unchanged, use "3306" as the Database port.

    3306

    3306

    Enter QMetry database schema

    QMetryApplication Database schema name.

    qmetry

    qmetry

    Enter QMetry database username

    Enter Database's Username

    -

    root

    Enter QMetry database password for root user

    Enter QMetryApplication Database Password for the root user.

    -

    QMetry@123

    Enter Email for QMetryadmin user

    Enter QMetryuser email address for Admin.

    -

    [email protected]

    Enter password for QMetryadmin user

    Enter QMetryuser password for Admin.

    -

    Admin@123

    Enter Min. Heap Memory for the web server in GB

    Enter Heap Memory in GB

    2

    2

    Enter Max. Heap Memory for the web server in GB

    Enter Heap Memory in GB

    4

    4

    Enter QMetryDatabase Connection Pool Size

    Enter Pool Size in number format

    100

    100

  10. Wait for the installation to finish. When the installer displays QMetry Application Installation is complete, enter 0 to exit the installer.

  11. Verify that the containers are running.

    docker ps
  12. Get QMetry License and Install it.

    Choose the option that matches your license type.

    • Evaluation: Use the evaluation license, valid for 30 days, that you received with the installation.

    • Commercial:

      • QMetry Support needs your server's domain name and MAC address.

      • Find the MAC address and email it to

        ifconfig (MAC address of Ethernet card, e.g., eth0/eth1)

    When you receive license.key from QMetry Support, follow the Steps to Apply License file.

  13. Access the Application

    QSvrlog into QMetry application.png

    To open QMetry, do the following:

    • In a browser, enter http://<your IP address OR domain name>

    • Log in with the following credentials:

      • Username: admin

      • Password: <user specified password in Step # 9 >

  14. Set the Base URL

    To set the Base URL, do the following:

    • Open your profile and edit it.

    • In the Base URL box, enter the URL of the QMetry application, for example, https://your.qmetry.url.

    • Click Update.

  15. Configure additional Tomcat settings

    QMetry installs with a default configuration for minimum and maximum heap memory. You can adjust these settings to match your hardware configuration. For more information, refer to Additional Configuration.

Note

Recommended: Back up the application data directory on a regular schedule. Periodic backups help prevent data loss if a disaster occurs.

Install QMetry Reports

Note

Reports installation requires Redis Server and ActiveMQ Server. Refer to the Redis and Automation installation sections for setup steps.

Pre-requisites

Before you install QMetry reports, verify the following requirements.

  • QMetry App is installed and running.

  • QMetry App DNS/IP is configured in profile section.

  • Active MQ and Redis containers are running and configured in QMetry App.

  • The services are reachable from the report server: Redis (6379), ActiveMQ (61616, 8161), App (80, 443), App DB (3306).

Download Docker Images of Reports

  1. Docker Login

    Contact QMetry Support to get your Docker credentials.

    docker login
  2. Download and Save the Report Docker Images

    docker pull qmetry/qmetry:cdc
    docker pull qmetry/qmetry:sync
    docker pull qmetry/qmetry:reportdb848

    Save the images

    docker save -o /opt/qtm/qmetrycdc.tar 
    qmetry/qmetry:cdc_docker save -o /opt/qtm/qmetrysync.tar 
    qmetry/qmetry:sync
    docker save -o /opt/qtm/qmetryreportdb.tar 
    qmetry/qmetry:reportdb848
    docker images
  3. Transfer the Files

    Transfer the qmetrycdc.tar, qmetrysync.tar, and qmetryreportdb.tar files to the Report server

  4. Load the Images

    sudo docker load -i qmetrycdc.tar
    sudo docker load -i qmetrysync.tar
    sudo docker load -i qmetryreportdb.tar
  5. Verify the Images

    sudo docker images

Steps to Install QMetry Reports

To install QMetry Reports on the second server, perform the following steps:

  1. Get the installation zip file

    sudo su -
    cd /opt
    unzip QMetry_Linux_Installer.zip
    cd QMetry_Linux_Installer/
  2. Run Reports Installer

    chmod +x install.sh
    ./install.sh
  3. Online Install Prompt

    Options

    Allowed Values

    Default Value

    Recommended Value

    Do you want to make an online installation (Y/N)?

    Y, y, N, n

    Y

    N

  4. Docker Verification

    Enter docker credentials that were shared as part of the installation package.

  5. Main Installation Menu

    Enter 3 to install QMetry Reports.

    image-20260331-061107.png
  6. Enter the report configuration parameters

    Options

    Details

    Example

    Enter App Database Host URL

    Enter Database Host Public IP/DNS of QMetry application.

    10.0.8.166

    Enter App Database Port

    Enter Database Port of QMetry application.

    3306

    Enter App Database Username

    Enter Database username of QMetry application.

    root

    Enter App Database Password

    Enter Database password of QMetry application.

    root

    Enter App Database Schema Name

    Enter Database schema name of QMetry application.

    qmetry

    Enter Report Database Host URL

    Enter Database Host Public IP/DNS of QMetry Report.

    10.0.8.221

    Enter Report Database Port

    Enter Database Port of QMetry Report Database.

    3306

    Enter Report Database Username

    Enter Database username of QMetry Reports Database.

    root

    Enter Report Database Password

    Enter Database password of QMetry Reports Database.

    root

    Enter Report Database Schema

    Enter Database schema name of QMetry Reports Database.

    qtmanalytics

    Enter MQ URL

    Enter MQ Active URL

    tcp://10.0.8.166:61616

    Enter MQ UserName

    Enter MQ Username

    admin

    Enter MQ Password

    Enter MQ Password

    admin

    Enter maximum memory to allocate for CDC app in GB

    Maximum memory allocation for the CDC container:

    • Entered memory would be used by the sync job while running full sync of data.

    • Enter 25% of total memory available on the server. For example, if the memory on the server is 24 GB, enter 6.

      • A minimum of 4 GB memory must be allocated.

    • To check the total memory, run the command: free -h

    4

    Enter maximum memory to allocate for Sync app in GB

    Maximum memory allocation for the Sync container:

    • Entered memory would be used by the sync job while running full sync of data.

    • Enter 70% of total memory available on the server. For example, if the memory on the server is 24 GB, enter 17.

      • A minimum of 8 GB of memory must be allocated.

    • To check the total memory, run the command: free -h

    4

    Enter number of CPUs to allocate for CDC app

    Number of CPUs to allocate for the CDC container. (The default is 4)

    4

    Enter number of CPUs to allocate for Sync app

    Number of CPUs to allocate for the Sync container:

    • Allocate 70% of the available CPUs. For example, if CPU has 8 cores, enter 6.

    • A minimum of 4 CPU cores must be allocated.

    • To check total CPUs, run the command : lscpu

    4

  7. Enter the report configuration parameters

    Options

    Options

    Options

    Example

    Enter QMetry Database Connection Pool Size

    Enter Pool Size in number format.

    100

    100

  8. The installation may take a while. When it finishes, QMetry displays the message: QMetry Application Installation is complete.

    Confirm that the containers are running.

    docker ps
  9. Update the Base URL

    Log into QMetry and go to your Profile section, edit the Base URL with QMetry app URL. When the full sync is complete, exit the installation by entering 0.

    image-20260416-073621.png
  10. Configure the database connection

    Configure the report database connection under Insight Configuration in the QMetry application. To configure the connection, perform the following steps:

    • Login to QMetry with administrator credentials and go to Customizations.

    • Select Insight Configuration and open Database Configuration tab.

    • Under Database Configuration tab, enter the following details:

      • Host: Enter Report Database Host URL from the report configuration table.

      • Port: 3306

      • Username: <Enter Report database username>

      • Password: <Enter Report database password>

      • Database Name: <Report DB schema specified during installation>

    • Select Test to confirm a successful connection, and then select Test & Save.

      image-20260416-074350.png
  11. Set up the report data sync

    On the Sync Data tab, set up the Report Data Sync from your reports server to QMetry Reporting.

    • Report Server URL: Enter your report server domain URL followed by port 8081. Confirm that port 8081 is open on the report server.

    • Select Test to confirm a successful connection and then select Test & Save.

    You can start using QMetry Reports when the sync is completed. QMetry remains available during this time.

Note

Run Sync Data the first time after you install QMetry reports installation. The time that the sync takes depends on the amount of data in QMetry. You can monitor sync progress and status in the interface. QMetry custom reports are not accessible while the sync runs. Run the sync only during off-peak hours.

Install Automation API Features

Installing the Automation API with your on-premise QMetry installations will enable several automation API related features including faster automation result file imports into QMetry. If you plan to use Automation APIs to import test results into QMetry, refer to Install Automation API Feature for Offline Installations.

Get support

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

Publication date: