Skip to main content

Platform Update

Prerequisites

Before starting the upgrade, please ensure the following conditions are met:

Prerequisites
  1. 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.
  2. Environment Requirements:
    • Ensure Docker and Docker Compose are correctly installed and running.
    • Please confirm your current Lighthouse version to choose the correct upgrade path.
  3. Data Backup: >- It is recommended to backup important data before any upgrade to prevent data loss.
Note

The following upgrade steps require the new version and old version to be in the same installation directory (/opt).

  1. 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
  1. Uninstall Old Version
cd /opt/lighthouse
./lighthouse.sh uninstall
  1. 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
  1. Extract New Version
    Note

    Please replace x.x.x with the actual version number

tar -zxvf lighthouse_offline_x.x.x.tar.gz
  1. Data Restoration (No Action Required)

  2. 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