anyLogistix Professional Server was tested on Ubuntu 18.04 LTS, 20.04 LTS, and 22.04 LTS.
Before installing anyLogistix Professional Server:
- Check the system requirements. The maximum amount of RAM anyLogistix can occupy is configurable.
- Check that your primary server (to which you install anyLogistix Professional Server) has a static IP address. If you want your instance to have a dynamic IP address, you should configure a DNS server for domain name resolution.
-
Install the Team License Server.
It is an application that manages team licenses for all AnyLogic products (AnyLogic, anyLogistix, and AnyLogic Cloud) used within the company.
When it is up and running you will be able to use Team license, which is required to complete the installation (perpetual and subscription types of licenses are available).
All user licenses for the anyLogistix Professional Server are handled by the Team License Server only.
-
Ansible is required.
If it is missing from your system, the installer will not start.
Ansible is used in anyLogistix server installer to eliminate the inconvenient interaction with the docker-compose.yml file. Instead, it provides the ability to configure the application through the more user-friendly Ansible framework.
The installation procedure comprises a set of steps that are sequentially executed on the target equipment (this can be either the server, on which the installer is running, or some other equipment that is accessible from the host). All of this is wrapped into an ansible role, which can be executed with different tags to achieve various installer behavior.
The installer can be run in the default mode or one of the custom modes.
Ansible is run via the console. Therefore, the installer will also require a console to run. It is assumed that the user already has Ansible installed on their machine.
To install the application
-
Obtain the archive with the installer by doing either of the following:
- Click the direct download link.
-
Download it using wget:
sudo wget https://www.anylogistix.com/upload/builds/releases/alx3/linux64/anylogistix-pro-server-setup.tar.gz
-
Extract the archive (the archive will be extracted into the folder with the same name):
tar -xvzf anylogistix-pro-server-setup.tar.gz
-
Navigate into that folder:
cd anylogistix-pro-server-setup
-
Specify the server, to which anyLogistix must be installed.
This can be the same server, on which you have unpacked the installer or any other server:
-
To install the application on the same server you can either edit the playbook file or create the inventory file with the advanced settings:
- To edit the playbook file open it in the vim or any other editor: vim install_server_alx.yml
-
Change the hosts: all to hosts: localhost:
--- - name: Server Install become: true hosts: localhost roles: - install_server_alxNow, the installer will always target localhost.
-
To create a new inventory file with the default description for localhost directly in the folder:
cat > inventory.yml << 'EOF' --- all: hosts: localhost: ansible_connection: local ansible_python_interpreter: "{{ ansible_playbook_python }}" EOFThe resulting inventory.yml file will be used in all commands when interacting with the installer. For example:
sudo ansible-playbook install_server_alx.yml -i inventory.yml
-
To install the application on the same server you can either edit the playbook file or create the inventory file with the advanced settings:
- If the application must be installed on a different server, create an inventory file and specify all the connection settings for the required server.
-
Run the installer:
sudo ansible-playbook install_server_alx.yml
Alternatively, it can be run with the e.g., silent tag:
sudo ansible-playbook install_server_alx.yml --tags silent
- If required, answer the questions as the installer guides you through the installation steps.
The installer has 2 modes:
- Default mode — runs without tags.
-
Custom mode — runs with one of 6 tags.
Each tag implies a different sequence of steps aimed at performing specific action on the application:
It is not recommended to use more than one tag in a single ansible-playbook run.
The default mode presupposes setting up the installation parameters as the installer moves on from one step to another. User attention is required during installation.
- Installation steps in the default mode
-
-
Check if the application is already installed:
- If it is installed, update it to the latest version.
- If it is not installed, start the installation process.
- Check if Docker is installed on the machine.
- The user must accept the SLA.
- Select the workspace folder.
- Configure database connection.
- Configure proxy settings, if required.
- Configure SSL certificates, if required.
- Check the availability of ports for the database and frontend.
- The docker-compose.yml file is generated based on user-provided values.
- Install Docker (if it's not already installed).
- Pull application images.
- Launch the application.
- Wait for the application to fully start.
- End of the procedure.
-
Check if the application is already installed:
To install the application in the silent mode use the silent tag.
In this mode all default values for configuring the docker-compose.yml file are taken from the special constants file (~/installer_server_alx/defaults/main.yml). You can configure these constants before running the installer. They will be applied when the file is created.
- Installation steps with the silent tag
-
-
Check if the application is already installed:
- If it is installed, update it to the latest version.
- If it is not installed, start the installation process.
- Check if Docker is installed.
- Automatically accept the SLA.
- Check the availability of ports for the database and frontend.
- Assemble the docker-compose.yml file from the values specified in the file.
- Install Docker (if it's not already installed).
- Pull the application images.
- Start the application.
- Wait for the application to fully start.
- End of the procedure.
-
Check if the application is already installed:
To change the settings of the already installed application use the reconfigure tag.
If the application is not installed the installer will exit with a message prompting the user to install the application.
- Installation steps with the reconfigure tag
-
-
Check if the application is already installed:
- If it is already installed, start the reconfiguration process.
- If it is not installed, exit with a message prompting the user to install the application.
- Gather the current configuration settings of the already installed application from the docker-compose.yml file.
- Change the workspace folder if necessary.
- Configure a new database connection if necessary.
- Configure the proxy settings if necessary.
- Configure SSL certificates if necessary.
- Check the availability of ports for the database and frontend.
- Assemble the docker-compose.yml file from the specified values.
- Start the application.
- Wait for the application to fully start.
- End of the procedure.
-
Check if the application is already installed:
To remove the application from the server, for which the installer is run use the uninstall tag.
Additionally, you can remove:
- The database data, if the default (internal) database is used.
- The Docker, if it was installed by the installer (and not by the user).
- Installation steps with the uninstall tag
-
-
Check if the application is already installed:
- If installed, start the uninstallation process.
- If it is not installed, the installer exits.
- Request for the user to confirm that the application must be uninstalled.
- Gather the current configuration settings of the already installed application from the docker-compose.yml file.
- Stop the application if it is running.
- The user confirms the removal of Docker (if it was installed by the installer).
- The user confirms the removal of the database (if the internal database was used).
- The application is removed.
- End of the procedure.
-
Check if the application is already installed:
To start / stop / restart the installed application use the corresponding start / stop / restart tag.
-
-
Check if the application is already installed:
- If installed, start the installer with the corresponding process.
- If not installed, the installer exits.
- Find the folder containing the installed application.
- Execute the corresponding command (start / stop / restart the application).
- Wait for the application to fully start / stop.
- End of the procedure.
-
Check if the application is already installed:
To determine if the application is already installed on the machine, we will use the alxtab file (a file used by the installer to track application installation status), which is created in case of:
- Successful installation of the application via the default mode or with the silent tag.
- Successful reconfiguration of the application via the reconfigure tag.
The file can only be deleted if the application is successfully uninstalled via the uninstall tag.
The file is expected to reside in the /etc/ directory. The installer will search for it there. If the file cannot be found in the /etc/ directory, the installer will assume that the application is not installed. The file may not be in the directory, but the application may still be installed (e.g., the application was installed manually). In this case, contact our support team to help you transition to the new installer without losing data.
-
How can we improve this article?
-