All the jobs fail with the error 'Error found in Initialise - trying again Exception message: Access to resource is denied: Error connecting to https://Orchestrator_URL/identity/.well-known/openid-configuration: Internal Server Error. Exception.Source: UiPath.System.Activities' .
This error occurs if there is a DNS resolution issue and the UiPath System Activities are unable to resolve the domain name to an IP address.
If there have been changes in the DNS servers or if this have been turned off for any reason, then it is needed to modify the hosts file on the Robot machines in order to manually map the domain name ("Orchestrator URL") to the correct IP address.
The hosts file is a text file located at C:\Windows\System32\drivers\etc\hosts that allows for manual mapping of IP addresses to domain names. To modify the hosts file, follow these steps:
- Open the hosts file in a text editor with administrative rights
- Add a new line with the IP address of the OpenID configuration endpoint (if known) followed by the domain name "Orchestrator_URL", separated by a space. See example below:
- 192.0.2.1 uipath.nnnnn.net
- Save the hosts file.
After modifying the hosts file, the UiPath System Activities should be able to resolve the domain name to the correct IP address and access the OpenID configuration endpoint.
As mentioned above, the above change should be made in the machine(s) where the Robot is installed. The Robot machines need to have access to the new DNS server(s) in order to resolve the domain names correctly and connect to the UiPath platform services. If there are multiple Robot machines, it may be needed to get the DNS team involved to update the DNS settings on each one individually. This can be done by going to the network adapter settings on each machine and updating the DNS server settings to include the new DNS server(s).