- 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
- B) 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 bundle
- 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
- 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
- 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 Tool
- Exploring Logs
Using uipathctl.sh
uipathctl.sh
script provides an automated way to upgrade a cluster to a newer version, configure a backup, restore a cluster, and more,
by running it on one node. The automation of these tasks is done via the IT automation tool Ansible.
Parameter |
Description |
---|---|
|
Upgrade the cluster. |
|
Generate a sample file representing a Dex Connector for enabling SSO. |
|
Generate an example ArgoCD RBAC file. |
|
Generate the Kustomize overlays for the ArgoCD and Dex deployment with SSO. Useful in debugging. |
|
Generate and apply the Kustomize overlays for ArgoCD and Dex with SSO. |
|
This flag is shown only if you use the
upgrade command.
Steps to run during upgrade operations. Defaults to
all .
|
|
Type of installation. Required for upgrade and restore. |
|
Path to your
cluster_config.json file. If not specified, a configuration file is generated.
|
|
Path to a Kubeconfig file that allows connecting to the cluster. Defaults to
/etc/rancher/rke2/rke2.yaml .
|
|
Path to a valid Ansible inventory describing the cluster. If not specified, an inventory is generated. |
|
The username to be used by Ansible to connect to cluster nodes. Defaults to the current user. |
|
The SSH private key that provides connectivity to cluster nodes. If not specified, a set of passwords are prompted. |
|
Ask Ansible to request a password set for SSH connections and elevation. |
|
Specify the path to a custom
ansible.cfg to be used.
|
|
Path to the
as-infra.tar.gz file. Required for offline upgrades.
|
|
Do not perform CNI upgrade. |
|
Connector type for
sso-generate-connector .
|
|
Path to a file containing a Dex Connector for the SSO integration. |
|
Path to a file containing a Dex Connector for the SSO integration. |
Ansible uses the SSH mechanism to log into any of the host nodes or machines to perform tasks.
uipathctl.sh
script, you must take the following steps:
- Identify the Ansible host node.
- Add the SSH signature of your nodes to the known hosts.
- Set up the SSH authentication method.
- Install Ansible and other prerequisite tools.
You must ensure that the following tools are installed on the Ansible host node:
ansible
(v2.8+)ansible-playbook
sshpass
– Required only when using password for authentication along with the --ansible-ask-password parameter.zip
For instructions, see the following sections.
The Ansible host node is the machine where you install Ansible. This machine must be a server node so that it has the required permissions to perform all the automations in the cluster.
In online installations, the Ansible host node can be any of the server nodes.
/uipath
location. If there is no server node with the UiPath bundle disk attached, you can simply mount an additional disk to any
of the existing server nodes and consider it to be the Ansible host node.
known_hosts
file in the Ansible host node.
<node-private-ip>
with the private IP address of each node in the cluster, one at a time.
ssh-keyscan -H <node-private-ip> >> ~/.ssh/known_hosts
ssh-keyscan -H <node-private-ip> >> ~/.ssh/known_hosts
Ansible supports two SSH mechanisms:
- Option 1: Key-based SSH authentication – Recommended. It uses private and public keys.
- Option 2: Password-based SSH authentication
Step 1: Setting up the SSH key
The SSH key authentication mechanism uses a combination of private and public keys.
Make sure you grant access to the public key of the Ansible host node on all other nodes by copying it.
ssh-keygen
command.
Generating SSH keys
ssh-keygen
command. To generate the new SSH key, just run ssh-keygen command and follow the instructions.
To generate a new SSH key, take the following steps:
- Generate a new SSH key using the
ssh-keygen
command. -
Write down the location of your key. Default values are:
- Public Key:
~/.ssh/id_rsa.pub
- Private Key:
~/.ssh/id_rsa
- Public Key:
- Grant access to the public key of the Ansible host node on all other nodes by copying it.
Granting access to the public key on each node
ssh-copy-id
command. If the path of the SSH public key is not ~/.ssh/id_rsa.pub
, make sure to replace it accordingly.
ssh-copy-id -i ~/.ssh/id_rsa.pub username@node-private-ip
ssh-copy-id -i ~/.ssh/id_rsa.pub username@node-private-ip
Step 2: Providing SSH key access to Ansible
Ansible uses the SSH mechanism to log into host machines and perform the required installation. For this reason, you must provide the SSH key access to Ansible.
Choose between the following methods:
ssh-agent
(recommended)
ssh-agent
to obtain access to nodes. For more information about ssh-agent, see ssh-agent manual.
ssh-agent
, run the following command:
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_rsa
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_rsa
Option 2: Using non-protected private key
--ansible-private-key
parameter to your the uipathctl.sh
script. The parameter takes the absolute path of private key and uses it for authentication.
You must ensure that Ansible and the following other supporting tools are installed on the previously selected Ansible host node.
-
ansible
(v2.8+)To check ifansible
was installed, run:ansible --version &>/dev/null || echo "Error: Ansible is not installed"
ansible --version &>/dev/null || echo "Error: Ansible is not installed" -
ansible-playbook
To check ifansible-playbook
was installed, run:ansible-playbook --version &>/dev/null || echo "Error: Ansible Playbook is not installed"
ansible-playbook --version &>/dev/null || echo "Error: Ansible Playbook is not installed" -
sshpass
– Required only when using password for authentication along with the--ansible-ask-password
parameter.To check ifsshpass
was installed, run:sshpass -V &>/dev/null || echo "Error: sshpass is not installed"
sshpass -V &>/dev/null || echo "Error: sshpass is not installed" -
zip
To check ifzip
was installed, run:zip --version &>/dev/null || echo "Error: zip is not installed"
zip --version &>/dev/null || echo "Error: zip is not installed"Important: If any of the previous commands errors out, the targeted package is not installed on your machine. Make sure to install the required tools.
yaml
output for Ansible by running the following command:
export ANSIBLE_STDOUT_CALLBACK=yaml
export ANSIBLE_STDOUT_CALLBACK=yaml
This feature was introduced in Ansible 2.9, and for certain installations, it has to be enabled by running the following command:
ansible-galaxy collection install community.general
ansible-galaxy collection install community.general
ERROR! Invalid callback for stdout specified: yaml
message after installing the community.general
collection, you can disable the yaml
output by running the following command:
unset ANSIBLE_STDOUT_CALLBACK
unset ANSIBLE_STDOUT_CALLBACK
inventory.ini
file for Ansible. However, there are few situations where you must build and provide the inventory.ini
file to Ansible. For example:
- While restoring the cluster from the backup data. This is because at the time of restore there is no healthy cluster to derive
inventory.ini
. - When you want to provide advanced configuration such as username and SSH key, which is very specific to each node.
For more details, see How to build your own inventory.
uipathctl.sh
script understands.
[FIRST_SERVER]
'10.0.1.1'
[SECONDARY_SERVERS]
'10.0.1.2'
'10.0.1.3'
[AGENTS]
'10.0.1.4'
'10.0.1.5'
[TASKMINING]
'10.0.1.6'
[GPU]
'10.0.1.7'
[ASROBOTS]
'10.0.1.8'
[all:vars]
ansible_connection=ssh
ansible_timeout=10
ansible_user=admin
[FIRST_SERVER]
'10.0.1.1'
[SECONDARY_SERVERS]
'10.0.1.2'
'10.0.1.3'
[AGENTS]
'10.0.1.4'
'10.0.1.5'
[TASKMINING]
'10.0.1.6'
[GPU]
'10.0.1.7'
[ASROBOTS]
'10.0.1.8'
[all:vars]
ansible_connection=ssh
ansible_timeout=10
ansible_user=admin
Group |
Value |
---|---|
|
The starting point where you run the
uipathctl.sh script. This is also called the Ansible host node.
You must provide the Private IP address for this node. |
|
The group of other server nodes in the cluster. You must provide the Private IP address of all the other server nodes. |
|
The group of agent nodes in the cluster. You must provide the Private IP address of all agent nodes. |
|
The group of Task Mining nodes in the cluster. You must provide the Private IP address of all the Task Mining nodes. |
|
The group of GPU nodes in the cluster. You must provide the Private IP address of all the GPU nodes. |
|
The group of Automation Suite Robots nodes in the cluster. You must provide the Private IP address of all the Automation Suite Robots nodes. |
|
The group of variables applied to all the previously defined host groups.
You can provide the variables per group or per host node. For details, see Assigning a variable to many machines: group variables. |
Yaml
file and provided to Ansible.
uipathctl.sh
using --ansible-variables-file
.
#Path where installer zip is available. By default, uipathctl.sh takes the current folder and compress it to zip before copying it to other nodes.
installer_path: /path/to/installer.zip
# Path where installer will be copied on nodes
target_installer_base_path: /opt/UiPathAutomationSuite/<version>/installer
# Install type - online or offline
install_type: online
# Path on nodes where offline bundles will be copied
target_bundle_base_path: /opt/UiPathAutomationSuite/{version}
# Path on nodes where offline bundles will be extracted
target_tmp_path: /opt/UiPathAutomationSuite/tmp
# Basepath and filname for the various config files and bundles on the local machine
cluster_config_filename: cluster_config.json
cluster_config_basepath: /var/tmp/uipathctl_{version}
backup_config_filename: backup_config.json
backup_config_basepath: /var/tmp/uipathctl_{version}
restore_config_filename: restore.json
restore_config_basepath: /var/tmp/uipathctl_{version}
infra_bundle_filename: as-infra.tar.gz
infra_bundle_basepath: /var/tmp/uipath_upgrade_<version>
#Path where installer zip is available. By default, uipathctl.sh takes the current folder and compress it to zip before copying it to other nodes.
installer_path: /path/to/installer.zip
# Path where installer will be copied on nodes
target_installer_base_path: /opt/UiPathAutomationSuite/<version>/installer
# Install type - online or offline
install_type: online
# Path on nodes where offline bundles will be copied
target_bundle_base_path: /opt/UiPathAutomationSuite/{version}
# Path on nodes where offline bundles will be extracted
target_tmp_path: /opt/UiPathAutomationSuite/tmp
# Basepath and filname for the various config files and bundles on the local machine
cluster_config_filename: cluster_config.json
cluster_config_basepath: /var/tmp/uipathctl_{version}
backup_config_filename: backup_config.json
backup_config_basepath: /var/tmp/uipathctl_{version}
restore_config_filename: restore.json
restore_config_basepath: /var/tmp/uipathctl_{version}
infra_bundle_filename: as-infra.tar.gz
infra_bundle_basepath: /var/tmp/uipath_upgrade_<version>
Variable |
Value |
---|---|
|
The path of
as-installer.zip . If you do not provide this value, uipathctl.sh will zip the current directory and copy it to other nodes, as an installer zip.
|
|
The path where the installer will be copied on the nodes. The default value is `/opt/UiPathAutomationSuite/{version |
|
The installation method. Possible values are:
online and offline .
|
|
The path on the nodes where the offline bundles will be copied. The default location is `/opt/UiPathAutomationSuite/{version |
|
The path on the nodes where the bundle is extracted. The default location is
/opt/UiPathAutomationSuite/tmp .
|
|
The name of the cluster configuration file. The default value is
cluster_config.json .
|
|
The location where
cluster_config.json will be stored temporarily on the nodes during orchestration. The default value is /var/tmp/uipathctl_{version} .
|
|
The name of the backup configuration file. The default value is
backup.json .
|
|
The location where
backup.json will be stored temporarily on the nodes during orchestration. The default value is /var/tmp/uipathctl_{version} .
|
|
The name of the restore configuration file. The default value is
restore.json .
|
|
The location where
restore.json will be stored temporarily on the nodes during orchestration. The default value is /var/tmp/uipathctl_{version} .
|
|
The name of the bundle containing the infrastructure layers. This is the same as the one you provided to the
uipathctl.sh script.
|
|
The location where
as-infra.tar.gz will be stored temporarily on the nodes during orchestration. This is the same as the one you provided to the uipathctl.sh script.
|
- uipathctl.sh parameters
- Requirements
- Identifying the Ansible host node
- Adding the SSH signature of your nodes to the known hosts
- Setting up SSH authentication method
- Option 1: Key-based SSH authentication (recommended)
- Option 2: Password-based SSH authentication
- Checking if Ansible and other prerequisite tools are installed
- Advanced Ansible configuration
- Enabling the yaml output
- Generating the Ansible inventory.ini file
- Generating the Ansible variable file