Platform Update
Prerequisites
Before starting the upgrade, please ensure the following conditions are met:
- Permission Requirements:
- Ensure you have sufficient permissions to perform the following operations, especially commands that require sudo.
- It is recommended to run the commands in this guide as a user with administrative privileges.
- Environment Requirements:
- Ensure Docker and Docker Compose are correctly installed and running.
- Please confirm your current Lighthouse version to choose the correct upgrade path.
- Data Backup: >- It is recommended to backup important data before any upgrade to prevent data loss.
The following upgrade steps require the new version and old version to be in the same installation directory (/opt).
- Get the Installation Package
Note
Please replace
x.x.x
with the actual version number
cd /opt
wget https://lighthouse-release.obs.cn-south-1.myhuaweicloud.com/packages/lighthouse_offline_x.x.x.tar.gz
- Uninstall Old Version
cd /opt/lighthouse
./lighthouse.sh uninstall
- Backup
Note
Please replace
x.x.x
with the old version number You can check the version number using/opt/lighthouse/lighthouse.sh -v
cd ..
mv lighthouse lighthouse-x.x.x
- Extract New Version
Note
Please replace
x.x.x
with the actual version number
tar -zxvf lighthouse_offline_x.x.x.tar.gz
-
Data Restoration (No Action Required)
-
Install Following Normal Procedure
cd lighthouse
./lighthouse.sh install
......
......
......
Different Installation Directories for Old and New Versions
If the new and old versions are not in the same installation directory (e.g., from /opt to /opt-new), the data restoration steps are different:
-
Upgrading from versions below 1.8.0 to 1.8.0 and above
Data Restoration:
cp -Rp lighthouse-x.x.x/data /opt-new/lighthouse-data
-
Upgrades between versions 1.8.0 and above
Data Restoration:
cp -Rp lighthouse-data /opt-new/lighthouse-data
cp -Rp lighthouse-log /opt-new/lighthouse-log