- Overview
- Requirements
- Installation
- Q&A: Deployment templates
- Configuring the machines
- Configuring the external objectstore
- Configuring an external Docker registry
- Configuring the load balancer
- Configuring the DNS
- Configuring Microsoft SQL Server
- Configuring the certificates
- Online multi-node HA-ready production installation
- Offline multi-node HA-ready production installation
- Disaster recovery - Installing the secondary cluster
- Downloading the installation packages
- install-uipath.sh parameters
- Enabling Redis High Availability Add-On for the cluster
- Document Understanding configuration file
- Adding a dedicated agent node with GPU support
- Adding a dedicated agent Node for Task Mining
- Connecting Task Mining application
- Adding a Dedicated Agent Node for Automation Suite Robots
- Post-installation
- Cluster administration
- Monitoring and alerting
- Migration and upgrade
- Migration options
- Step 1: Moving the Identity organization data from standalone to Automation Suite
- Step 2: Restoring the standalone product database
- Step 3: Backing up the platform database in Automation Suite
- Step 4: Merging organizations in Automation Suite
- Step 5: Updating the migrated product connection strings
- Step 6: Migrating standalone Insights
- Step 7: Deleting the default tenant
- Performing a single tenant migration
- Product-specific configuration
- Best practices and maintenance
- Troubleshooting
- How to troubleshoot services during installation
- How to uninstall the cluster
- How to clean up offline artifacts to improve disk space
- How to clear Redis data
- How to enable Istio logging
- How to manually clean up logs
- How to clean up old logs stored in the sf-logs bucket
- How to disable streaming logs for AI Center
- How to debug failed Automation Suite installations
- How to delete images from the old installer after upgrade
- How to automatically clean up Longhorn snapshots
- How to disable TX checksum offloading
- How to manually set the ArgoCD log level to Info
- How to generate the encoded pull_secret_value for external registries
- How to address weak ciphers in TLS 1.2
- How to work with certificates
- How to collect DU usage data with in-cluster objectstore (Ceph)
- How to install RKE2 SELinux on air-gapped environments
- How to clean up old differential backups on an NFS server
- Unable to run an offline installation on RHEL 8.4 OS
- Error in downloading the bundle
- Offline installation fails because of missing binary
- Certificate issue in offline installation
- First installation fails during Longhorn setup
- SQL connection string validation error
- Prerequisite check for selinux iscsid module fails
- Azure disk not marked as SSD
- Failure after certificate update
- Antivirus causes installation issues
- Automation Suite not working after OS upgrade
- Automation Suite requires backlog_wait_time to be set to 0
- GPU node affected by resource unavailability
- Volume unable to mount due to not being ready for workloads
- Support bundle log collection failure
- Failure to upload or download data in objectstore
- PVC resize does not heal Ceph
- Failure to resize PVC
- Failure to resize objectstore PVC
- Rook Ceph or Looker pod stuck in Init state
- StatefulSet volume attachment error
- Failure to create persistent volumes
- Storage reclamation patch
- Backup failed due to TooManySnapshots error
- All Longhorn replicas are faulted
- Setting a timeout interval for the management portals
- Update the underlying directory connections
- Authentication not working after migration
- Kinit: Cannot find KDC for realm <AD Domain> while getting initial credentials
- Kinit: Keytab contains no suitable keys for *** while getting initial credentials
- GSSAPI operation failed due to invalid status code
- Alarm received for failed Kerberos-tgt-update job
- SSPI provider: Server not found in Kerberos database
- Login failed for AD user due to disabled account
- ArgoCD login failed
- Failure to get the sandbox image
- Pods not showing in ArgoCD UI
- Redis probe failure
- RKE2 server fails to start
- Secret not found in UiPath namespace
- ArgoCD goes into progressing state after first installation
- Issues accessing the ArgoCD read-only account
- MongoDB pods in CrashLoopBackOff or pending PVC provisioning after deletion
- Unhealthy services after cluster restore or rollback
- Pods stuck in Init:0/X
- Prometheus in CrashloopBackoff state with out-of-memory (OOM) error
- Missing Ceph-rook metrics from monitoring dashboards
- Pods cannot communicate with FQDN in a proxy environment
- Failure to configure email alerts post upgrade
- No healthy upstream issue
- Document Understanding not on the left rail of Automation Suite
- Failed status when creating a data labeling session
- Failed status when trying to deploy an ML skill
- Migration job fails in ArgoCD
- Handwriting recognition with intelligent form extractor not working
- Failed ML skill deployment due to token expiry
- Running High Availability with Process Mining
- Process Mining ingestion failed when logged in using Kerberos
- Unable to connect to AutomationSuite_ProcessMining_Warehouse database using a pyodbc format connection string
- Airflow installation fails with sqlalchemy.exc.ArgumentError: Could not parse rfc1738 URL from string ''
- How to add an IP table rule to use SQL Server port 1433
- Using the Automation Suite Diagnostics Tool
- Using the Automation Suite support bundle
- Exploring Logs
Automated: Offline upgrade
Ansible is used to automate the upgrade of the entire Automation Suite cluster, by performing some operations on one machine in the cluster.
In the following illustration, the Server 1 node (or Ansible host node) uses Ansible to orchestrate the upgrade of entire Automation Suite cluster.
Preparation
Before upgrading, make sure you have prepared your environment for using the uipathctl.sh script. For details, see Using uipathctl.sh.
Make sure you have 10GB of free space in the /opt/UiPathAutomationSuite folder on all the nodes. If you do not have enough space, you can either increase the capacity of this folder or remove all the previous installer files except for cluster_config.json. You can always download the previous installer again.
To verify available space, run the following command: df -h /opt/UiPathAutomationSuite.
To prepare for the upgrade, take the following steps:
-
Log into the server node that you previously identified as the Ansible host node via SSH. Make sure you have selected the primary server node with the UiPath bundle additional disk attached at
/uipathas your Ansible host node. -
Become root user:
sudo su -sudo su - -
Create an installation folder under the
/opt/UiPathAutomationSuitedirectory:# Please replace {version} with installer version mkdir -p /opt/UiPathAutomationSuite/{version}/installer# Please replace {version} with installer version mkdir -p /opt/UiPathAutomationSuite/{version}/installer -
Download
as-installer.zipand copy it to/opt/UiPathAutomationSuite/{version}/installer. For download instructions, see as-installer.zip.cp /path/to/as-installer.zip /opt/UiPathAutomationSuite/{version}/installercp /path/to/as-installer.zip /opt/UiPathAutomationSuite/{version}/installer -
Unzip
as-installer.zip:cd /opt/UiPathAutomationSuite/{version}/installer unzip as-installer.zip -d .cd /opt/UiPathAutomationSuite/{version}/installer unzip as-installer.zip -d . -
Download
as-infra.tar.gzand copy it to/uipath/{version}. For download instructions, see as-infra.tar.gz.cp /path/to/as-infra.tar.gz /uipath/{version}cp /path/to/as-infra.tar.gz /uipath/{version} -
Download
as.tar.gzand copy it to/uipath/{version}. For download instructions, see as.tar.gz.cp /path/to/as.tar.gz /uipath/{version}cp /path/to/as.tar.gz /uipath/{version} -
Provide the necessary permissions to the installer:
chmod 755 -R /opt/UiPathAutomationSuite/{version}/installerchmod 755 -R /opt/UiPathAutomationSuite/{version}/installer -
Generate the latest
cluster_config.jsonfile on the Ansible host node.Note:For details on how to configure the
cluster_config.jsonparameters, see Advanced installation experience.-
If you have the old
cluster_config.json, generate the configuration file from the cluster:cd /opt/UiPathAutomationSuite/{version}/installer ./configureUiPathAS.sh config get -i /path/to/old/cluster_config.json -o ./cluster_config.jsoncd /opt/UiPathAutomationSuite/{version}/installer ./configureUiPathAS.sh config get -i /path/to/old/cluster_config.json -o ./cluster_config.json -
If you do not have the old
cluster_config.jsonfile, generate any override of any default values, which you may have done at the time of the previous version installation:cd /opt/UiPathAutomationSuite/{version}/installer ./configureUiPathAS.sh config get -o ./cluster_config.jsoncd /opt/UiPathAutomationSuite/{version}/installer ./configureUiPathAS.sh config get -o ./cluster_config.json -
If you upgrade from Automation Suite 2022.10 to Automation Suite 2023.4 or later, and Orchestrator is enabled on both the old and new versions, you must set the
orchestrator.block_classic_executionsflag totruein thecluster_config.jsonfile. Using the flag shows that you agree with blocking classic folders executions. Not using the flag causes the upgrade operation to fail. For a configuration example, see Orchestrator-specific configuration. -
If you upgrade Automation Suite from a previous version and now enable Process Mining as well, you must update the
sql_connection_string_template_sqlalchemy_pyodbc. Below is an example."sql_connection_string_template_sqlalchemy_pyodbc": "mssql+pyodbc://testadmin@sfmfup20211043125452-8926d153-sql.database.windows.net:sgTQrg%40R%40dvoYddYBoKn045ncoC9WhWU@sfmfup20211043125452-8926d153-sql.database.windows.net:1433/DB_NAME_PLACEHOLDER?driver=ODBC+Driver+17+for+SQL+Server""sql_connection_string_template_sqlalchemy_pyodbc": "mssql+pyodbc://testadmin@sfmfup20211043125452-8926d153-sql.database.windows.net:sgTQrg%40R%40dvoYddYBoKn045ncoC9WhWU@sfmfup20211043125452-8926d153-sql.database.windows.net:1433/DB_NAME_PLACEHOLDER?driver=ODBC+Driver+17+for+SQL+Server" -
If you upgrade Automation Suite from a version previous to 2023.4 and you have Apps enabled, you must create the SQL database for Apps, and then update the
cluster_config.jsonfile with the following configuration:"apps": { "enabled": "true" // This will already be true in existing cluster_config.json if apps is enabled "sql_connection_str": "" // Provide ODBC database connection string if apps is enabled }"apps": { "enabled": "true" // This will already be true in existing cluster_config.json if apps is enabled "sql_connection_str": "" // Provide ODBC database connection string if apps is enabled }Note:Use the updated cluster_config.json file in the next upgrading steps.
See also Manual: Advanced installation experience.
-
Execution
If any errors or issues occur during or following the upgrade, you can rollback to the previous version, provided that you previously configured a backup.
For instructions, see Rollback on error.
Hydrating Docker registry
To minimize the required downtime, hydrate docker-registry with container images for the new version of products before the upgrade.
- Make sure not to hydrate containerd and/or other infra images more that 10 hours before the upgrade.
- If you upgrade Document Understanding and Computer Vision, you must download the base images that match your upgraded Automation Suite version (use the base image that corresponds with your ML Package version) and hydrate them to your docker registry prior to upgrade to avoid disruption to your running DU skills. To download the Document Understanding and Computer Vision installation packages, see Downloading the installation packages.
To hydrate docker-registry, run the following command on the first server node:
cd /opt/UiPathAutomationSuite/{version}/installer
./configureUiPathAS.sh registry upload --offline-bundle /uipath/{version}/as.tar.gz --offline-tmp-folder /uipath/tmp
cd /opt/UiPathAutomationSuite/{version}/installer
./configureUiPathAS.sh registry upload --offline-bundle /uipath/{version}/as.tar.gz --offline-tmp-folder /uipath/tmp
Configuring the backup
To configure the backup, take the following steps:
-
Make sure you have enabled the backup on the cluster. You must create the backup using the same version of the installer as the one you used for the current deployment. For instructions, see the backup and restore documentation corresponding to the Automation Suite version from which you plan to upgrade. For instance, if you plan to upgrade from Automation Suite 2021.10, follow the instructions in the 2021.10 guide.
-
Log into the server node that you previously identified as the Ansible host node via SSH.
-
Verify that all desired volumes have backups in the cluster:
/path/to/old-installer/configureUiPathAS.sh verify-volumes-backup/path/to/old-installer/configureUiPathAS.sh verify-volumes-backupNote:The backup might take some time, so wait for approximately 15-20 minutes, and then verify the volumes backup again.
Once the backup is created, continue with the following steps.
Putting the cluster in maintenance mode
Putting the cluster in maintenance mode will shut down the ingress controller and all the UiPath services, blocking all the incoming traffic to the Automation Suite cluster.
This operation will cause downtime, and your business automation will be suspended during the entire upgrade process.
-
To put the cluster in maintenance mode, run:
cd /opt/UiPathAutomationSuite/{version}/installer ./configureUiPathAS.sh enable-maintenance-modecd /opt/UiPathAutomationSuite/{version}/installer ./configureUiPathAS.sh enable-maintenance-mode -
To verify that the cluster is in maintenance mode, run:
./configureUiPathAS.sh is-maintenance-enabled./configureUiPathAS.sh is-maintenance-enabledImportant:Create a backup of your SQL Server after enabling maintenance mode so that no further transactions are recorded in your SQL database.
Upgrading the cluster
To upgrade the Automation Suite cluster, take the following steps:
-
Connect to the Ansible host node via SSH and become root user.
-
To perform the upgrade steps on all the nodes, run the following command with the basic parameters. For more granular control, see the parameters section.
Note:Make sure you have updated
cluster_config.jsongenerated as described in the Preparation steps.# Please replace {version} with installer version, in all the below commands cd /opt/UiPathAutomationSuite/{version}/installer ./uipathctl.sh upgrade --cluster-config ./cluster_config.json --install-type offline --steps all --offline-infra-bundle /uipath/{version}/as-infra.tar.gz --accept-license-agreement# Please replace {version} with installer version, in all the below commands cd /opt/UiPathAutomationSuite/{version}/installer ./uipathctl.sh upgrade --cluster-config ./cluster_config.json --install-type offline --steps all --offline-infra-bundle /uipath/{version}/as-infra.tar.gz --accept-license-agreementImportant:The upgrade process requires migrating from Canal CNI to Cilium CNI. The automated upgrade performs this step automatically and then restarts all nodes in the cluster to complete the migration.
Once the nodes are restarted, wait for a few minutes to ensure that all services are online again. You can log into ArgoCD to monitor the status of all applications.
Important:If you get the following error, follow the instructions in Downgrading Ceph from 16.2.6 to 15.2.9.
Ceph cluster is running on version: 16.2.6 with known bug(https://docs.ceph.com/en/quincy/releases/pacific/#v16-2-6-pacific). Please provide temporary backup directory (via environment variable 'TMP_CEPH_BACKUP_PATH') to downgrade ceph
Basic parameters
| Parameter | Value |
|---|---|
|
|
Possible values: Since this page provides instructions for an offline environment, choose the |
|
|
Possible values are: Denotes each stage of the installation and upgrade process.
--steps bundles infra.
Do not run
If an error occurs during the upgrade, you can use these checkpoints to resume the upgrade operation instead of retrying from start. |
|
|
Path to the |
|
|
Path to the |
|
|
|
Advanced parameters
| Parameter | Value |
|---|---|
--ansible-username | Specify the username to be used for SSH connections to all the nodes. Defaults to the current user. If you use a different username for all the nodes, then instead of using this parameter, set the username for all the nodes in inventory.ini and pass it to the script.Example: While running the script, you are logged in as the myadminuser username. However, if you want to use the testadmin username to connect via SSH, you must provide testadmin to this parameter. |
--inventory | Specify an existing Ansible inventory file. If not specified, one will be generated automatically from the existing cluster with the basic configuration. In certain scenarios where you want to have more granular control, you may want to provide your own inventory file. One such example would be if you want to use a different SSH username or SSH key for all the nodes in cluster. For details, see Generating the Ansible inventory.ini file. |
If the upgrade failed for any reason, but the upload to the Docker Registry is successful, no re-upload is required. You can resume the upgrade by directly running the fabric or service installation: ./uipathctl.sh upgrade --install-type offline --steps {fabric | services}.
Once the upgrade is done, maintenance mode will be disabled automatically.
After performing the upgrade, you can take the following additional steps:
-
To verify if Automation Suite is healthy, run:
kubectl get applications -n argocdkubectl get applications -n argocd -
When upgrading from an Automation Suite version prior to 2023.4.0, verify if Apps is running, then remove MongoDB:
./configureUiPathAS.sh mongodb uninstall --force./configureUiPathAS.sh mongodb uninstall --force -
If you face an error when removing MongoDB with
./configureUiPathAS.sh mongodb uninstall --forcecommand, run the following command:kubectl patch application "fabric-installer" -n argocd --type=merge -p '{"spec" : {"syncPolicy" : {"automated" : {"selfHeal": false }}}}' ./configureUiPathAS.sh mongodb uninstall --force kubectl patch application "fabric-installer" -n argocd --type=merge -p '{"spec" : {"syncPolicy" : {"automated" : {"selfHeal": true }}}}'kubectl patch application "fabric-installer" -n argocd --type=merge -p '{"spec" : {"syncPolicy" : {"automated" : {"selfHeal": false }}}}' ./configureUiPathAS.sh mongodb uninstall --force kubectl patch application "fabric-installer" -n argocd --type=merge -p '{"spec" : {"syncPolicy" : {"automated" : {"selfHeal": true }}}}' -
If you experience issues with image vulnerabilities or storage consumption after performing an upgrade, delete the images from the old installer. For details, see the Troubleshooting section.
-
After upgrading to Automation Suite 2023.4.8 or newer, you can clean up the previous version images after the upgrade from the in-cluster Docker registry. For instructions, see How to delete images from the old installer after upgrade.
Enabling the backup post-upgrade
Make sure Automation Suite is up and running and your automation continues as expected before proceeding with the next steps.
Before starting to upgrade the cluster, the upgrade script automatically creates a backup of the cluster and then temporarily disables it. Once the cluster upgrade is done, make sure to reconfigure and upgrade Velero and then enable the backup manually.
To enable the backup, follow the instructions in described in the Backing up and restoring the cluster documentation.