Before updating Vantage, make sure that all requirements of the new release listed in the System Requirements section are met.
- Synchronize container images.
- Back up data.
- Run the installation scripts.
- Uninstall Vantage.
- Update ABBYY Vantage.
Synchronize Container Images
To synchronize container images, follow the steps in Downloading container images.Back Up Data
To restore Vantage to the version running at the time of the update, you must have a backup of databases, Consul, and copies of Kubernetes secrets. Follow the steps below to properly back up these components:- Before creating a backup of databases and Consul, you need to stop the cluster. Shut down all the nodes in the cluster.
- Create a backup of:
- Databases: The list of databases is:
apigatewayregistry,auth,auth-identity,catalogstorage,cron,documentset,folderimport,interactive-jobs,mail,mailimport,permissions,publicapi,reporting,secretstorage,security-audit,skillinfo,skillmonitor,storage,subscriptions,tokenmanagement,transactions,workflows,workspace. - Consul: Kubernetes CronJob backs up Consul to external RWX storage (such as NFS) by pod with the name
[X].consul-backup. You can fetch backed-up TGZ files from the PVC folder namedconsul-backup.
- Databases: The list of databases is:
- Start the cluster. Start all the nodes in the cluster.
- Back up Copies of Kubernetes secrets. To get the keys, run the following commands:
Before creating a backup of copies of Kubernetes secrets, make sure the cluster is started.
Backups are made just in case. With a successful upgrade, you will not have to make a recovery from the backup.
Run the Installation Scripts
Prior to updating ABBYY Vantage, follow the Installation steps. To run the installation scripts:- Set up configuration files.
By default, the technology core version 2 is deleted when updating Vantage. To keep it, add the
techcore.keep_previous_version parameter to the env_specific.yml file and set its value to true.- Prepare certificates.
- Download container images.
- Run the installation scripts (steps 1-3).
Uninstall Vantage
Run the following playbook to uninstall the product:Update ABBYY Vantage
To update ABBYY Vantage:- Run the following playbooks to do a pre-deploy check and to read and accept the Vantage legal documents:
- Carry out a preliminary check regarding the resources whose parameters are specified in the
env_specific.ymlfile of the playbook (database, SMTP connection, etc.). - Ask the system administrator to accept the terms of the EULA and ABBYY Privacy Policy.
- Run the following playbook to update Vantage:
After ABBYY Vantage is updated, you will have to authorize again. Authorization tokens obtained before the upgrade will not work anymore.
https://<your-vantage-host>/ad/latest- for downloading Advanced Designerhttps://<your-vantage-host>/ss/latest- for downloading Scanning Station
Recovery
If the update process was unsuccessful, follow these steps:- Check that the pods in the cluster are working well and restart them if they are not.
- Analyze the logs of the pods that are not working as intended.
- Follow the troubleshooting steps from the pod logs.
- If the upgrade fails at any step of installing a new version of Vantage (e.g., waiting for Vantage jobs, waiting for Vantage deployments), fix the cause of the error and then run the install playbook:
Installing Vantage with Data Recovery on a New Cluster
If the steps described above did not help, you can install Vantage with data recovery on a new cluster by following these steps:- Make sure you have all the latest backups of your data.
- Restore the data from backups you created earlier.
- Prepare the
env_specificfile containing data for connecting databases and external storage restored from backups. - Install Vantage following the steps from Running the installation scripts in the Installation section. For step 2 (running the installer from a Docker image), use the command below:
-
Overwrite the key values in the
secretstorage-encryptionkeysandtokenmanagement-encryptionkeyssecrets with the values you backed up earlier: a. Run the command:b. In the file that opens afterkey-<guid>.xml, replace the base64 string with the base64 string contained in the key that was previously backed up for thesecretstorage-encryptionkeyssecret. c. Save your changes and close the editor. d. Do the same for thetokenmanagement-encryptionkeyssecret using the command: -
After rewriting the keys, restart the
secretstorageandtokenmanagementpods:
- Restart the transactions. On a machine that is connected to the cluster, run this command to access the transaction service:
http://localhost:8080/index.html and run the following API method:
If the Vantage host address has changed after recovery, and there are unaccepted invitations in the system, then you need to resend these invitations.
