- Getting started
- Best practices
- Tenant
- About the Tenant Context
- Searching for Resources in a Tenant
- Managing Robots
- Connecting Robots to Orchestrator
- Storing Robot Credentials in CyberArk
- Storing Unattended Robot Passwords in Azure Key Vault (read only)
- Storing Unattended Robot Credentials in HashiCorp Vault (read only)
- Storing Unattended Robot Credentials in AWS Secrets Manager (read only)
- Deleting Disconnected and Unresponsive Unattended Sessions
- Robot Authentication
- Robot Authentication With Client Credentials
- SmartCard Authentication
- Audit
- Settings - Tenant Level
- Resource Catalog Service
- Folders Context
- Automations
- Processes
- Jobs
- Triggers
- Logs
- Monitoring
- Queues
- Assets
- Storage Buckets
- Test Suite - Orchestrator
- Other Configurations
- Integrations
- Classic Robots
- Host administration
- Organization administration
- Troubleshooting
Auto Updating Client Components
This feature allows administrators to update Robot, Studio, and UiPath® Assistant clients to newer versions from Orchestrator. This provides an easy way to deliver a version update to a large base of machines from a centralized location, helping remove user friction and streamlining the update process.
- Orchestrator, Studio and Robot 2021.10 or later.
- Studio and/or Robot 2021.10 or later installed on the client machine and connected to Orchestrator.
Client side
-
Client Apps:
- Robot
- Assistant
- Studio
- Robot Service
- Update Agent - a Windows process responsible for the communication between the user and update service. (only present in the user mode and attended robot installation)
- Update Service - a Windows Service responsible for the communication between the client machine and the update server.
Server side
- Orchestrator: provides the user interface for administrators to set auto-update policies and see the version status for client apps.
- Update server: a centralized service responsible for managing the auto-update policies and maintaining the communication with the client machines through the update service.
As an administrator, you can choose the specific version to be deployed on a specific machine.
UiPath.UpdateService.Worker.exe
and UiPath.UpdateService.Agent.exe
.
Depending on the type of Studio/Robot installation, they are installed in a different way:
- Unattended Robot:
UiPath.UpdateService.Worker.exe
is installed as Windows Service, whileUiPath.UpdateService.Agent.exe
is not installed. - Attended Robot:
UiPath.UpdateService.Worker.exe
is installed as Windows Service, whileUiPath.UpdateService.Agent.exe
is installed as a LogOn Task in Task Scheduler. - Quick Install (user-mode):
UiPath.UpdateService.Worker.exe
andUiPath.UpdateService.Agent.exe
are installed as LogOn Tasks in Task Scheduler.Important: When installing UiPath Studio and Robot on the machine in attended - user mode, for the update service to connect to the update server, make sure to add the Orchestrator URL during setup. If the Orchestrator URL is not added during installation, a user with administrator rights on the machine has to log on to the machine and connect the robot to Orchestrator.
When a new policy is defined or changed, the update server sends a command to the update service on the client machine, which asks the client apps if they are ready to start the update process.
To be ready to receive an update, a product must be in a neutral state:
- Studio - no running processes or active sessions.
- Robot - no running jobs or processes.
- Assistant - no running processes or pending activities (installing or downloading processes).
Note: During the update process, the Robot does not start any jobs until the update is completed.
In the attended scenario, an update prompt is displayed giving the user two options:
Update Now
- stops all running jobs and closes all Studio instances on that machine then proceeds with the update.-
Later
- mutes the notification and the update process can be resumed by going to the UI icon in the system tray and clicking check for updates.When the user accepts the prompt, the confirmation is sent to the update service and the update process starts. If no response is provided in 24 hours since the first notification, the update installed automatically.
In the unattended scenario, the update service confirms that the client app is in a neutral state (as described above) before sending the confirmation back to the update server.
- If any processes are running on the machine, the Robot user is prompted to either stop the process or wait for it to finish before the update can proceed. If a Studio session is open, the Robot user is asked to save its progress.
- If the Robot user does not react, Studio closes, and saves the process as-is at that time. The process can be recovered after the update is completed.
- If a certain time limit is reached, the
service-mode Robot forces an update even if a job is still running. Due to this
behavior, the job can fail. The default waiting time is:
- 10 minutes for service-mode Robots.
- 1440 minutes for user-mode Robots.
Update Process Steps
The update process is split into seven stages:
Retry mechanism
During the update process, if the file cannot be retrieved in the first download, the update service retries three more times. The retry intervals are: one hour after the initial attempt, then two hours after the first retry, and four hours after the last retry. Before each retry, the user is informed through the notification system.
%localappdata%/Uipath/UpdateService/logs
file.
The process is similar for installing, meaning that if the first install fails, the update service tries again three times with the same frequency (one hour after the initial attempt, then two after the first retry, and four hours after the last retry).
The update server waits 72 hours for the update to complete since it started. If the new version is not installed after this interval expires, a detailed error is added to the logs. The update is retried the next time a request is received.
You are also able to manually retry the update using the button if the auto-update failed.
The technical aspects on the server side are identical for both service-mode and user-mode deployments, as they use the same connection type between the update server and update service. The difference consists in how the Robot service communicates with the update service on the client machine, as explained below.
Service mode
In service-mode deployments, the robot service and update service both run in the local system account session.
User mode
In user-mode deployments, the robot service runs in the user session and the update service runs in the local system account session.
Policies can be set for users, groups of users (recommended for attended use cases), or machines (recommended for unattended use cases).
Configuring update policies for users or user groups allows administrators to control the Studio, Robot and Assistant version for a specific user or user group.
- Specific user - to granularly update components tied to a specific user.
-
Group of users - to update access to all group members without the need to set the access level for each user individually.
Important: For users that have the Automation Express license assigned, the update policy cannot be edited and is set to deliver the latest enterprise version.
Policies are configured by editing a specific user or group from the Manage Access tab in Orchestrator.
- Navigate to Tenant > Manage access. The Users window is displayed.
- For the desired user/user group, click Edit. The Edit User window is displayed.
- In the Update policy settings section, change the auto-update policy to one of the following values:
Per user
Per group
None
, but they are also part of a group that has a specific policy set (e.g. Latest Patch), the group policy applies. If you want
the components for that specific user to not be updated, you must either remove them from the group that has the policy or
set the update policy to be at the current version that is installed.
If the user has a policy set to push a specific version and they are also part of a group that has a different policy, the user level policy takes precedence.
Configuring an update policy for machine objects allows administrators to update the robot versions on all machines connected to Orchestrator using a specific machine key.
To configure the update policies for machine objects, follow the steps below:
Features.MachineMaintenanceSchedule.Enabled
parameter to the
UiPath.Orchestrator.dll.config
file
and set it to true
.
Auto-Update Scheduling
From the Maintenance tab you are also able to schedule the update to start at a certain time and date to match other maintenance windows in your company. You can also set the duration of the maintenance window. If the time set for the maintenance window elapses and the update did not start, it is scheduled during the next available interval.
In the event a user-level policy, a group-level policy, and a machine-level policy apply to the same Robot, the user-level policy takes precedence.
Example:
- Machine_1 has a 2021.10 version of Robot and Studio installed.
- On machine_1, the robot is connected to Orchestrator through Interactive Sign In with the John.Doe@domain.com user.
- An update policy applies to john.doe@domain.com which is set to push the 2021.10.2 version.
- john.doe@domain.com is also part of group_1.
- An update policy applies to group_1 which is set to push the 2021.10.3 version.
-
An update policy applies to machine_1 which is set to push the 2022.4 version.
Result: when the update policies trigger, the components on that machine are updated to 2021.10.2 version.
Note: When using Robot Accounts please note that the machine-level policy is used in order to handle the update.
Version availability in policies
When creating an update policy, you can choose one of the following options:
Latest major version |
Latest patch |
Specific patch |
---|---|---|
Installs the latest available version found on the update server. |
Installs the latest patch available for each of the supported versions. (e.g. Latest 2021.10 patch, Latest 2022.4 patch). |
Installs a specific patch from the list of the ones available in the Update Server. |
%localappdata%/Uipath/UpdateService/logs
file.
When robots are deployed on virtual environments where the machines are cloned, the machine name, guid, drive id, and mac address are the same. This can cause conflicts as Orchestrator receives different update statuses from multiple machines with the same identifiers.
In this scenario, the update status in Orchestrator is shown based on the last machine that connected.
This can also impact orchestrator logs, as multiple machines have the same identifiers, duplicate logs can appear.
The Version status column allows you to check the status of the Robot version for your machines against the associated policy.
The following values are available:
- No policy - no policy is defined
- Update in progress - this status is presented when the update process is ongoing on the machine
- Compliant – the robot version on the machine is matching to the update policy.
- Non-compliant - the robot version on the machine is different than what was setup in the policy. (e.g. robot version is 2021.10.3, the policy is set up as 2021.10.1)
- Update failed - this status shows when the update process failed. More details can be found in the update logs.
- N/A - this status shows up when the setting to exclude inactive machines is enabled and the robot hasn’t been connected for a while, or when the machine type is not compatible with the auto-update process.
The Version status column on the Orchestrator Machines tab allows you to check the status of the Robot version for your machines against the associated policy.
N/A
with the "Auto-update is not applicable for this type of machine" tooltip.
Excluding inactive machines
Non compliant
. This is happening as the machine template communicates with the update server using the same machine key, and if one of
the machines connected is unable to receive an update, the overall status of the machine template is impacted.
To avoid this, access the General section of the Settings menu at the tenant context, select the Client Binaries checkbox and set the preferred inactivity interval. This excludes inactive machines from the update process and no longer takes them into account when the update status is reported.
If your Orchestrator instance has Internet access, by default, version management is done by UiPath, and the list of available versions in the policies is automatically populated. If you want to manually manage the versions, go to Settings at the host level, then select General, and then clear the Auto-fill available product versions checkbox.
If you choose not to have the version management done by UiPath or your Orchestrator instance does not have Internet access, you must manually download the installers of the client components from the UiPath Customer Portal - Product Downloads page and upload them to the update server using the steps below:
Get available versions
.\Product-Versions.ps1 get -ApiBaseUri "<ORCHESTRATOR_URL>" -IdentityUri "<IDENTITY_URL>" -ClientId "<CLIENT_ID>" -ClientSecret "<CLIENT_SECRET>"
.\Product-Versions.ps1 get -ApiBaseUri "<ORCHESTRATOR_URL>" -IdentityUri "<IDENTITY_URL>" -ClientId "<CLIENT_ID>" -ClientSecret "<CLIENT_SECRET>"
Publish a new version in the update server
.\Product-Versions.ps1 register -ApiBaseUri "<ORCHESTRATOR_URL>" -IdentityUri "<IDENTITY_URL>" -ClientId "<CLIENT_ID>" -ClientSecret "<CLIENT_SECRET>" -ProductId "b69fdacf-6dd0-46fb-88c7-af2d87caf5aa" -Version "<NEW_VERSION>" -DownloadUri "<DOWNLOAD_URL>".\Product-Versions.ps1 register -ApiBaseUri "https://intranet/orchestrator_" -IdentityUri "https://intranet/identity_" -ClientId "<CLIENT_ID>" -ClientSecret "<CLIENT_SECRET>" -ProductId "b69fdacf-6dd0-46fb-88c7-af2d87caf5aa" -Version "22.4.3" -DownloadUri "https://download.uipath.com/versions/22.10.3/UiPathStudio.msi"
.\Product-Versions.ps1 register -ApiBaseUri "<ORCHESTRATOR_URL>" -IdentityUri "<IDENTITY_URL>" -ClientId "<CLIENT_ID>" -ClientSecret "<CLIENT_SECRET>" -ProductId "b69fdacf-6dd0-46fb-88c7-af2d87caf5aa" -Version "<NEW_VERSION>" -DownloadUri "<DOWNLOAD_URL>".\Product-Versions.ps1 register -ApiBaseUri "https://intranet/orchestrator_" -IdentityUri "https://intranet/identity_" -ClientId "<CLIENT_ID>" -ClientSecret "<CLIENT_SECRET>" -ProductId "b69fdacf-6dd0-46fb-88c7-af2d87caf5aa" -Version "22.4.3" -DownloadUri "https://download.uipath.com/versions/22.10.3/UiPathStudio.msi"
Delete a specific version from the update server
DELETE
.\Product-Versions.ps1 delete -ApiBaseUri "<ORCHESTRATOR_URL>" -IdentityUri "<IDENTITY_URL>" -ClientId "<CLIENT_ID>" -ClientSecret "<CLIENT_SECRET>" -ProductId "b69fdacf-6dd0-46fb-88c7-af2d87caf5aa" -Version "<NEW_VERSION>"
DELETE
.\Product-Versions.ps1 delete -ApiBaseUri "<ORCHESTRATOR_URL>" -IdentityUri "<IDENTITY_URL>" -ClientId "<CLIENT_ID>" -ClientSecret "<CLIENT_SECRET>" -ProductId "b69fdacf-6dd0-46fb-88c7-af2d87caf5aa" -Version "<NEW_VERSION>"
Publish a new version on the client machine
.\Provision-IdentityClient.ps1 -IdentityUri "<IDENTITY_URL>" -InstallationToken "<INSTALLATION_TOKEN>" -ClientId "<CLIENT_ID>" -ClientSecret "<CLIENT_SECRET>"
.\Provision-IdentityClient.ps1 -IdentityUri "<IDENTITY_URL>" -InstallationToken "<INSTALLATION_TOKEN>" -ClientId "<CLIENT_ID>" -ClientSecret "<CLIENT_SECRET>"
Based on the requirements, the following product IDs can be used in the scripts:
ProductId | Product |
---|---|
FD97813F-44F7-45A0-BB55-0DAF0088F568 | UiPath Assistant for Mac (x64) |
46C978F2-A5FE-4F71-AD88-D6A07118F790 | UiPath Assistant for Mac (arm64) |
B69FDACF-6DD0-46FB-88C7-AF2D87CAF5AA | UiPath Automation Bundle (UiPathStudio.msi) |
For scenarios in which the robots are sitting behind a proxy, for the auto-update feature to work, additional configuration might be needed. Based on the installation type, proxy configurations can either be inherited from the user-level proxy settings, or set manually by editing the config file.
Installation Type |
Robot Deployment |
Update Service |
Update Agent |
Proxy Settings |
---|---|---|---|---|
Unattended Robot |
Windows Service |
Windows Service |
N/A
1 |
From the
uipath.config file.
|
Attended Robot |
User-level executable |
Windows Service |
User-level executable |
From the
uipath.config file.
|
Quick Install |
User-level executable |
User-level executable |
User-level executable |
From the user level proxy settings. |
1
when the robot is installed in unattended mode, the update agent is not added to the machine.
When an update fails, you can use the Diagnostic Tool to collect logs which can be sent to our Support Team which are used for further investigation on the specific error.
- About
- Prerequisites
- Components That Take Part in the Update Process
- How This Works
- Service-mode Vs User-mode Robot Deployments
- Configuring Policies
- Configuring Policies for Users/user Groups
- Per Machine Objects
- Policy Priority
- Update Logs
- Version Statuses
- Version Status for Machines
- Version Status for Users
- Managing Update Versions
- Proxy Configuration
- Collecting Error Logs
- Error Message
- Diagnostic Tool Setup