Linux | Ubuntu Server Installation Guide for AIQ (GraalVM 11 Based)
RecommendedExclude guidancefiles and folders from scheduled scans
UseThe size of the UbuntuAppvance ServerIQ installation guidepackage onlyis afteraround confirming2 the target AIQ version, supported Ubuntu release, runtime requirement, database configuration,GB and deploymentis architecture.not GraalVMexpected 11to referenceschange until a new build is released. This folder should be treatedexcluded from the daily, weekly, or monthly scheduled scans as version-specific.it will take up valuable scanning time. If the following folders are not excluded, you may see some unexpected behavior.
Pre-install
The checklistlist below are some of the top Anti-virus from which the files/folders of Appvance IQ should be excluded:
ConfirmAVGCPU, memory, disk, network, DNS, firewall, and certificate requirements.Anti-virusVerifyAvastpackage repositories, runtime dependencies, browser dependencies, and service accounts.Anti-virusPlanKasperskydatabase, repository, Test Node, backup, monitoring, and log locations.Anti-virusReviewMcAfeesecurityViruspoliciesScan- Norton
forAnti-virus - Symantec
antivirus,Endpointendpointprotection - Windows
protection, SSH, and sudo access.Defender
Post-installInstallation validationProcess
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.
ConfirmInitial 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 -y- Increase 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 500000 - Getting GraalVM Community edition link.
Navigate to GraalVM site https://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 -version - When 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 java - Download and unzip AIQ
cd /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 aiq
For Azure Deployments create aiq sudo user:sudo chown -R aiq:aiq aiq
AIQ 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 database
If 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-server- When prompted, enter (and note) password
mysql -u root -p < /opt/aiq/aiq_distribution/TestNode/webapps/AppvanceServer/WEB-INF/classes/database/MySQLInitial.sql - Password will be asked after the above query, provide valid
passwordmysql -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, so this 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 of AIQ services starton afterboot-up reboot.
There Serviceare Suite,two reports, 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 using
rc.local, giving write permissions torc.local.sudo chmod -R +x /etc/rc.localsudo nano /etc/rc.local DocumentPasteinstalledtheversionsfollowingandlinescustomer-specificintodeviations./etc/rc.local:cd /opt/aiq/aiq_distribution/ && ./Appvance.sh
Only 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.sh
For 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 0
- Save file changes:
- Press Control + x
- Press y + Enter
- Reboot.
- Navigate to
http://servername:8080orhttps://servername:8443. - Login to AIQ using appvance/appvance.
Troubleshooting
If AIQ does not start:
curl localhost:8080to check for a response.- As a root check
journalctl | 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
- If you see a "
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: OctoberJuly 7,31, 20262024
If you have any feedback on this topic, please contact us at documentation@appvance.ai
