Upgrade AppViewX

AppViewX upgrades are performed exclusively through the Interactive UI, launched via ./install.sh. There is no separate CLI-only upgrade process. The wizard supports two upgrade types and handles all data migration automatically.

Upgrade Types

Type Description When to Use
Blue-Green Installs AppViewX on new infrastructure and migrates data from the existing installation using backup/restore. Two options: (a) retain same design - identical node count, migrate without changing config; (b) auto- generate config from fresh inputs. New hardware, new OS, topology change, or zero-downtime cutover.
In-Place Involves planned downtime. Upgrades the existing infrastructure in position. Existing configuration is retained (with the opportunity to add/remove nodes during interactive questions). Hardware meets new version requirements; downtime is approved.
Note: Ensure that a valid other user internal.pem file is present in the existing installer's scripts directory for in-place and blue-green deployments.

Upgrade Prerequisites

Prerequisite Requirement
Backup Take VM snapshots
OS Compatibility Ubuntu or RHEL/Rocky/Oracle only.
Disk Space ≥ 50 GB free at installation path on all nodes (Depends on data size).
Addons Bundle ppviewx kubernetes addons <VERSION>.tar.gz present in installer directory.
Time Sync Chrony active and synchronised across all nodes.
SCP (RHEL) SCP must not be disabled (/etc/ssh/disable scp must not exist).
Warning: ⚠Always take a full database backup (./appviewx.sh --db-backup) and vault backup (./appviewx.sh --vault-backup) before starting an upgrade. Store backups at a location accessible from outside the cluster.
Note:

When performing the upgrade, ensure that the following two plugins are installed to support PKI CRL downloads:

  • avx_platform_gateway_external
  • avx_vendor_cert_scep_agent

Upgrade Process

Upgrade Process Flow

Step-by-Step Instruction

  1. Perform the upgrade prechecks. Refer Upgrade Prerequisites.
  2. Take VM snapshot.
  3. Create a new folder and place all upgrade packages in it.
  4. SSH to the any of the worker node.
  5. Extract the core installer: tar -xvf appviewx_kubernetes_<VERSION>.tar.gz.
  6. Move addons tarball: mv appviewx_kubernetes_addons_<VERSION>.tar.gz appviewx_kubernetes/
  7. Navigate: cd appviewx_kubernetes/scripts/.
  8. Launch: ./install.sh.
  9. Select Continue > option 2 (Upgrade).
  10. Select Continue > option 2 (Upgrade).
  11. Choose Blue-Green or In-Place upgrade type.
  12. For Blue-Green: provide previous installer node IP, installer path, and select whether to retain the existing design or generate a new config.
  13. For In-Place: provide the path to the existing installer directory.
  14. Answer configuration questions. Review the summary table. Type 'y' to proceed.
  15. Prerequisite validation runs automatically on all nodes.
  16. Upgrade executes with real-time progress. Press Ctrl+R to resume if interrupted.

Data Restore (Blue-Green Cutover)

  1. After completing the Fresh Installation on new infrastructure, restore data from the previous environment:
  2. Run ./install.sh > Select Continue > option 3 (Data Restore).
  3. Provide the MongoDB backup archive path when prompted.
  4. Provide the Vault backup archive path when prompted.
  5. Wait for the restoration to complete.
  6. Post-restore cleanup:

    source appviewx.conf
    sudo ./appviewx.sh --run-on-all "rm -rf $INSTALLATION PATH/logs/mongo backup_*"

Post-Upgrade Validation

/appviewx.sh --version - confirm the new version
kubectl get pods -n <NAMESPACE> - all pods in Running state
AppViewX Web UI accessible and all module dashboards loading
/appviewx.sh --db-shell → rs.status() - MongoDB replica set healthy
/appviewx.sh --vault-sync-status - vault nodes synchronised
/appviewx.sh --whitelist-ingress-hosts - run if needed to whitelist LB for GUI access.
Note: Upgrade logs are automatically sanitized after completion - credentials, tokens, and secrets are removed.