Ubuntu Server Installation Guide for AIQ
ExcludeRecommended filesguidance
Use the Ubuntu Server installation guide only after confirming the target AIQ version, supported Ubuntu release, runtime requirement, database configuration, and foldersdeployment fromarchitecture. scheduledGraalVM scans11
The size of the Appvance IQ installation package is around 2 GB and is not expected to change until a new build is released. This folderreferences should be excluded from the daily, weekly, or monthly scheduled scanstreated as it will take up valuable scanning time. If the following folders are not excluded, you may see some unexpected behavior.version-specific.
The
Pre-install list below are some of the top Anti-virus from which the files/folders of Appvance IQ should be excluded:checklist
AVGConfirmAnti-virusCPU, memory, disk, network, DNS, firewall, and certificate requirements.AvastVerifyAnti-viruspackage repositories, runtime dependencies, browser dependencies, and service accounts.KasperskyPlanAnti-virusdatabase, repository, Test Node, backup, monitoring, and log locations.McAfeeReviewVirussecurityScanNortonpoliciesAnti-virusSymantecforEndpointantivirus,protectionWindowsendpointDefenderprotection, SSH, and sudo access.
InstallationPost-install Processvalidation
The instructions below assume that the Linux server is running Ubuntu. Ubuntu's package manager is apt-get.
If your Linux server is running Redhat / Fedora, replace the lines with corresponding yum commands.
Initial steps.sudo chmod go+w /etc/hosts sudo echo "127.0.0.1 $HOSTNAME" >> /etc/hosts sudo chmod go-w /etc/hosts sudo apt-get update -y sudo apt-get install wget -y sudo apt-get install zip -yIncrease the open files linux limit in/etc/security/limits.conf.In a text editor just add the following lines at the end of the/etc/security/limits.conffile. The leading star ( * ) character is important.* soft nofile 500000* hard nofile 500000Getting GraalVM Community edition link.Navigate to GraalVM sitehttps://www.graalvm.org/downloads/and click the download button as below. On the release page you will be able to choose the correct platform for Java 11 depending on the technology supporting the server (AArch64 or x86-64). Copy the URL related to the download link.Installing GraalVM Open JDK Community edition.Using the download URL from the previous step, follow next steps to download, unpack and setup GraalVM Open JDK.cd /opt wget https://github.com/graalvm-ce-builds/releases/download/vm-22.1.0/graalvm-ce-java<version>-linux-amd64-<version>.tar.gz // REPLACE LINK WITH PATH OBTAINED FROM PREVIOUS STEPtar -xzf graalvm-ce-java<version>-linux-amd64-<version>.tar.gz. // REPLACE LINK WITH FILE NAME WITH THE ONE FROM PREVIOUS STEPexport PATH=/<path>/<to>/<graalvm>/bin:$PATHexport JAVA_HOME=/<path>/<to>/<graalvm>cd ~java -versionWhen there are multiple versions of Java on the system.In case where system need to have more than one java version, need to select the graalvm as defaullt to AIQ can work properly.Adding a new alternative for "java" the third parameter assume that this is the only option for Java, in case there is another java version already installed, this third parameter would be 2, and so on.$ sudo update-alternatives --install /usr/bin/java java /<path>/<to>/<graalvm> 1 $ sudo update-alternatives --config javaDownload and unzip AIQcd /opt sudo mkdir aiq cd aiq wget "https://<aiq_build_url)/<aiq_build_file>.zip". (get the zip file from the latest release notes) unzip <aiq_build_file>.zip cd /opt sudo chmod +x -R aiq sudo chown -R ubuntu:ubuntu aiqFor Azure Deployments create aiq sudo user:sudo chown -R aiq:aiq aiqAIQ will be installed after this setting. Just need to configure to point to the MySQL results database.
Installing MySQL 8 Community Server
The following step is not required if you will be using a separate MySQL server. Installing a separate MySQL server is recommended.
Install local MySql 8 community server and run queries to set up the databaseIf you will be saving to another MySQL server like Amazon RDS or Oracle DB server, this step is not necessary.Install MySQL 8 community server:sudo apt-get install mysql-serverWhen prompted, enter (and note) passwordmysql -u root -p < /opt/aiq/aiq_distribution/TestNode/webapps/AppvanceServer/WEB-INF/classes/database/MySQLInitial.sqlPassword will be asked after the above query, provide validpasswordmysql -u root -p < /opt/aiq/aiq_distribution/TestNode/webapps/AppvanceServer/WEB-INF/classes/database/MySQLAppvance.sql
Optional. Install Firefox and Xvfb (for web testing with Firefox browser only, sothis step is not required if controller will not be running Firefox test designer tests.)sudo apt-get install firefox -ysudo apt-get install xvfb -y
Starting AIQ with /etc/rc.local
The following steps are related to setting the start ofConfirm AIQ services onstart boot-upafter ofreboot.
ThereEditor, areService twoSuite, optionsreports, repositories, and Test Node connectivity.
This method is preferred versus systemd as rc.local startup is compatible with one click upgrade using Lab Management.
Start aiq services as background process usingrc.local, giving write permissions toerrors.rc.local.sudo chmod -R +x /etc/rc.localsudo nano /etc/rc.localPasteDocumenttheinstalledfollowingversionslinesandintocustomer-specific/etc/rc.local:cd /opt/aiq/aiq_distribution/ && ./Appvance.shOnly in the case you want to use your controller to run Firefox test designer test cases then have your/etc/rc.locallike the following:This requires you to install the xvfb X11 window server in ubuntu.Xvfb :99 -ac -screen 0 1280x1024x24 &export DISPLAY=:99 cd /opt/aiq/aiq_distribution/ && ./Appvance.shFor Azure Deployment on Ubuntu:#!/bin/sh -eexport JAVA_HOME=/<path>/<to>/<graalvm>export PATH=/path/to/<graalvm>/bin:$PATHXvfb :99 -ac -screen 0 1280x1024x24 &export DISPLAY=:99cd /opt/aiq/aiq_distribution/ && ./Appvance.shexit 0Save file changes:PressControl + xPressy + Enter
Reboot.Navigate tohttp://servername:8080orhttps://servername:8443.Login to AIQ using appvance/appvance.deviations.
Troubleshooting
If AIQ does not start:
curl localhost:8080to check for a response.As a root checkjournalctl | grep rc.localto see if AIQ started successfully.If you see a "/etc/rc.local is not marked executable, skipping" error, run the following command to make therc.localfile executable:sudo chmod +x /etc/rc.local
Starting AIQ Using Systemd Service
Recommend this setting for test nodes that will be used for API load testing to make sure there are plenty of file handles available.
Current limitation for this method is that the one-click system upgrade using Lab Management does not support machines starting AIQ as a systemd service.
Last updated: JulyOctober 31,7, 20242026
If you have any feedback on this topic, please contact us at documentation@appvance.ai
