Upgrade VigorACS3 by OTA on Linux

VigorACS provides OTA script for Download and Upgrade, this article will guide you on how to upgrade your ACS and keep all your data.

  • VigorACS 3 is only compatible with MariaDB 10 and above. If your MariaDB version isn’t up to date, please backup the database and upgrade MariaDB with VigorACS 3 installation.
  • 1. Backup the database

    The database will remain after the upgrade; however, we still strongly recommend backup the database of VigorACS before you start. Please refer to this article to see how to backup the database.

    2. Stop ACS service
  • Please login with root or root permission.
  • Execute vigoracs.sh in path= /usr/local/vigoracs/VigorACS/bin

    # cd /usr/local/vigoracs/VigorACS/bin/vigoracs.sh

  • Input 6 to shutdown VigorACS service.
  • 3. Download ACS 3
  • Extract VigorACS 3 OTA package via the command in your ACS 3 OTA file path.

    # tar -jxv -f VigorACS_OTA_Linux_3.5.0_r4522.tar.bz2 (-C /path/for/extract/file)

  • ※ you can use the parameter: -C to designate extracted file path.

  • Modify the permission of ota.sh and execute it.

    # cd /path/for/extract/file

    # chmod 755 ota.sh

    # ./ota.sh

  • It will start to download the latest VigorACS installation files. We can upgrade ACS after the download finishes, enter y to upgrade ACS.
  • Input 1 to select Standalone ACS

    4. Upgrade Java
  • Input 6 to upgrade Java
  • Input y to upgrade jdk
  • 5. Upgrade ACS3
  • Input 8 to upgrade ACS
  • Input 1 to use Local side database
  • Input 1 to use ACS MySQL
  • Input the password of root of MariaDB and input y to test
  • Input your Influxdb version(It’s shown on ACS UI About>Software Update>System Info)
  • Input 1 to use local Valkey
  • Input n to keep the current JBoss configuration
  • Input 0 after ACS upgrade finishes
  • Note: If the MariaDB version is before 10.6, please enter these commands to update MySQL database.

    /usr/local/mysql/bin/mysql --defaults-file=/usr/local/mysql/my.cnf -uroot -p
    use tr069
    ALTER TABLE provisioning_with_app_log_detail CHANGE COLUMN type info_type TINYINT(2) NOT NULL DEFAULT '0';
    ALTER TABLE ui_customization CHANGE COLUMN hide_wan_ip hide_network_tree_ip TINYINT(1) UNSIGNED NOT NULL DEFAULT '1';
    ALTER TABLE ui_customization CHANGE COLUMN hide_lan_ip hide_device_dashboard_ip TINYINT(1) UNSIGNED NOT NULL DEFAULT '1';

    6. Start ACS3 service
  • Execute vigoracs.sh in path= /usr/local/vigoracs/VigorACS/bin.

    # cd /usr/local/vigoracs/VigorACS/bin/vigoracs.sh

  • Input 9 to start ACS

    We will see VigorACS PID after it starts.

    Now new VigorACS3 is ready to go

    After ACS upgrade by ota.sh, the auto software upgrade will be available on ACS UI when there is a new version. ACS can be upgraded in the background by just clicking Download and Upgrade.

    Published On:2023-11-01 

    Share

    Was this helpful?   

    book icon

    Knowledge Base