Upgrading HCLDetect
This provides explains step-by-step instructions for upgrading the Detect application from an older version to the latest version. The guide includes procedures for both on-premises and cloud deployments.
Prerequisites
Before beginning the upgrade process, ensure the following prerequisites are met:
- The currently running Detect version is operational.
- The latest installer package is available, including:
- TAR files
- Docker images
- Helm charts (for cloud deployments)
Upgrade Procedure
To upgrade the older version of Detect, follow the steps below:
- Stop the Existing Detect Application
- On-premises: Run the following
command:
cd <~old_install_path>/drive/bin ./environment_setter ./services_manager stop - Cloud:Stop the Helm
charts:
helm uninstall <detect-helm-chart-name>Stop the virtual machine services:
cd <~old_install_path>/drive/bin ./environment_setter ./services_manager stop -o -p -s -t
- On-premises: Run the following
command:
- Take a backup of the existing Detect database. For example, back up the
drive_acme_coredatabase using your preferred method. - Locate the latest TAR file for the Detect installer, and extract the contents into a preferred directory.
- Verify that the parameter configurations in the
drive.jsonfile at the old installation path (~old_install_path/drive/etc) match thedrive.jsonfile at the new installation path (~new_install_path/drive/etc). - From the new installation path (~new_install_path/drive/bin/installer), run the interactive installer.
- Migrate Configuration Directories:
- Fastpast:
Copy the
fastpastdirectory from the old instance home (~old_install_path/instance_home) to the new instance home (~new_install_path/instance_home).Edit each
.conffile underfastpastto update thedbRootDirectorykey with the correct path. - Pinpoint:
Copy the
pinpointdirectory from the old instance home (~old_install_path/instance_home/pinpoint) to the new instance home (~new_install_path/instance_home/pinpoint.Edit each
.conffile underpinpointto update thedirkey accordingly.
- Fastpast:
- From the new installation's
bindirectory, run the following commands:./environment_setter ./database_migrationNote: For more information about database migration, refer Upgrading HCLDetect Database. - Additional Steps Based on Deployment Type:
- For Cloud:
Replace the Tomcat directory in the persistent volume claim (PVC) with the new Tomcat version (~new_install_path/instance_home/tomcat).
Copy
drive.jsonandruntime-environment.jsonfrom the old Helm chart directory to the new Helm chart directory. - On-premises: Copy
drive.jsonandruntime-environment.jsonagain from the old installer path (~old_install_path/drive/etc) to the new installer path (~new_install_path/drive/etc).
- For Cloud:
- Start the Detect Application.
- On-premises:
./services_manager start - Cloud:Start the VM services:
./services_manager start -o -p -s -tReinstall the Helm chart:
helm install <detect-helm-chart-name>
- On-premises: