Updating ECCM involves the following steps:
ECCM services are compatible with PostgreSQL version 14.10. If you are updating to version 2.4 from version 1.6 (or earlier), before proceeding with instructions in this section do the following:
|
To ensure the ability to revert to a previous version, create a data backup before starting the update. If ECCM is installed on a virtualized server, take a system snapshot. Otherwise, create a backup of the ECCM database using PostgreSQL. |
Before installing the new version of ECCM, it is necessary to download the archive containing the system files. The files required to run the project are distributed as a .tar.gz archive and can be obtained from a public cloud storage service. Upload the archive to the server and extract it. It is recommended to extract the archive into a separate directory created in advance:
wget "https://cloud.eltex-co.ru/index.php/s/P8xDfmyo3XyEs0g/download?path=%2F&files=eccm-2.6.tar.gz" -O eccm-2.6.tar.gz mkdir eccm sudo tar -zxvf eccm-2.6.tar.gz -C eccm/ |
For your convenience, it is recommended to place the files needed to run the new version in a directory adjacent to the old one, here's the example:
|
For a multi-host installation, download and extract the archive to both the ECCM server and the database server. |
When ECCM is running on a single host (ECCM and the database are on the same server), to shut down the old version of ECCM and remove the containers, run the following command from the directory containing the old version of ECCM’s startup files:
cd <path to the directory containing ECCM 2.5 startup files> sudo ./compose-tools.sh --stop --delete-containers |
When ECCM is running on multiple hosts (ECCM on one server, the database on another), to shut down the old version of ECCM, run the commands described below.
On the ECCM server:
cd <path to the directory containing ECCM 2.5 startup files> sudo ./compose-tools.sh --stop --delete-containers |
On the database server:
cd <path to the directory containing ECCM 2.5 startup files>/postgres sudo docker compose down |
For a single-host system, after successfully shutting down the old version of ECCM, go to the directory where the archive containing the new version of ECCM was extracted and run the following command:
cd <path to the directory containing ECCM 2.6 startup files> sudo ./compose-tools.sh --pull --start <IP ADDRESS> |
If the system was installed on multiple hosts, run the following commands to launch the new version of ECCM.
On the database server:
cd <path to the directory containing ECCM 2.6 startup files>/postgres sudo docker compose up -d |
On the ECCM server:
cd <path to the directory containing ECCM 2.6 startup files> sudo ./compose-tools.sh --pull --start <IP ADDRESS> --database-host <IP ADDRESS DATABASE> --database-port <PORT DATABASE> |
If a new version of ECCM is to be launched in a fault-tolerant system, the shut down system running the current version of ECCM must become the new master in the cluster.