The authentication into the Orchestrator is no longer working and following error thrown in the Event Viewer logs: " UiPath.IdentityServer.Application.OrchestratorService.OrchestratorClient Identity cannot get tenant from Orchestrator with tenant string(name/global ID) UiPath.Platform.Logging.Abstractions.LogField. Error details: HttpRequestException*The proxy tunnel request to proxy '{Hostname}' failed with status code '502'."* "
If experiencing a proxy error on the Orchestrator machine and authentication is no longer working, it may indicate that the communication between the Orchestrator and the Identity Server is not going through the proxy.
One error message that may appear is:
- "UiPath.IdentityServer.Application.OrchestratorService.OrchestratorClient Identity cannot get tenant from Orchestrator with tenant string(name/global ID) UiPath.Platform.Logging.Abstractions.LogField. Error details: HttpRequestException*The proxy tunnel request to proxy '{Hostname}' failed with status code '502'."
To temporarily resolve this issue, Edit the hosts file on the Orchestrator machine. The hosts file can be found at the following path: c:\Windows\System32\Drivers\etc\hosts. In the hosts file, add a new line with the server's IP and the Orchestrator Hostname (the one from the error) just like the examples from the file.
This will allow Orchestrator to communicate locally with the Identity server, bypassing the proxy issue. Make sure to restart the Orchestrator after making the changes in the hosts file.
Note: Check further with the proxy team to ensure that the Orchestrator and Identity can communicate properly.