Customers with versions prior to 3.29 of Segura® who wish to update their application offline to version 3.29 or later must follow the instructions provided in this article.
Requirements
- Set the correct server time.
- Take a snapshot before the update.
- The Arbitrator must be removed from the cluster (only for environments with an Arbitrator).
When Segura® initiates the update process, it will be unavailable until the activity is complete.
Take a snapshot
Snapshots should be taken only when Segura® instances are offline. This ensures the ability to revert to a previous version if necessary.
- You can shut down a Segura® instance using the following command:
sudo orbit shutdown
- Once the instance is completely shut down, take a snapshot in the hypervisor.
- Reboot your Segura® instance and update the application.
How to update offline versions prior to 3.29
Before updating Segura®, always run a snapshot on your hypervisor and backup using the Orbit CLI.
If you use the Segura® Arbitrator, remove it from the cluster before updating Segura®. Learn more in our documentation.
To update Segura® offline, follow these steps:
- In another machine with access to the internet, download the update package to a separate device:
wget https://repo:[email protected]/bullseye-se-update.sh --no-check-certificate
- Create a folder for the update files inside the
/var/update
directory. Use the following command:
sudo install -d /var/update -g mt4adm -o mt4adm
- Upload the file downloaded in step 1 to Segura®'s server (via
scp
, for example):
scp -P 59022 <update_file_name> mt4adm@<IP>:/var/update
- Add a "#" symbol to comment every line in
resolv.conf
to prevent it from trying to connect to the internet during the update:
sudo vim /etc/resolv.conf
- Give the user permission to run the update file:
sudo chmod +x <update_file_name>
- In our example, we named the update file
bullseye-se-update.sh
, so our command is:
sudo chmod +x bullseye-se-update.sh
- Run the package using the following command:
sudo bash <update_file_name>
- Run the following command to reboot the device:
sudo orbit shutdown --reboot
- Run the package one more time using the following command:
sudo bash <update_file_name>
-
Type Y to agree with the EULA terms.
-
After running the update file, return to
resolv.conf
and remove the '#' symbol from all previously modified lines. -
Run the following command to reboot the device:
sudo orbit shutdown --reboot
- After the reboot is complete, run the following command and type Y to confirm:
sudo orbit application init
- A message in the terminal will indicate that the update was successful. To check the current version, run the following command:
sudo orbit version