Robot Tray throws the following error when trying to connect to Orchestrator: An existing connection was forcible closed by the remote host.
Robot Tray shows: An existing connection was forcible closed by the remote host
When this error occurs, the robot will shows as disconnected in Orchestrator and when trying to connect the robot from the Robot tray, an error will be generated that says:
Diagnosing the issue
- Login to the Robot machine.
- Open a command prompt.
Type “nslookup <Orchestrator hostname>”
- For example if the Orchestrator URL is https://orchestrator.com, the hostname would be orchestrator.com.
- If this command shows unresolved, try using ping.
- Determine the IP address of the Orchestrator host as seen by the Robot.
- Login to the Orchestrator machine.
- Open a command prompt.
- Type “ipconfig”
- This will return the actual IP address of the Orchestrator machine.
Verify that the IP address is the actual IP address of the Orchestrator server.
- If the IP address matches the Orchestrator IP address, then go to the section Troubleshooting Orchestrator
- If the IP addresses do not match, go to the section Troubleshooting Intermediator
- If the Robot machine is in the same domain as the Orchestrator server go to the section Hosts File Test (i.e. The Robot machine can access the Orchestrator IP address. You can test this by using ping on the Robot machine).
At this point the best thing is to contact a system administrator and provide them with the following information:
- The IP address that the Orchestrator server gets resolved to on the Robot machine.
- Explain to them that the connection is being forced closed.
The admin should be able to check the logs of any load balancer or proxy that sits in between the Orchestrator and the Robot server.
- For load balancers, make sure that everything is set to work over port 443.
- Usually once the issue is brought to an admin’s attention, they can find the root cause of the issue. If this is not the case, please contact UiPath Support for additional help.
Hosts File Test
- On the Robot machine open file explorer and go to “C:\Windows\System32\drivers\etc”
- Copy the file “hosts” to the desktop.
Open the file and add the following line:
- Line to add: <orchestrator ip> <orchestrator hostname>
- For example, if the ipaddress for orchestrator is 10.10.10.10 and the hostname is orchestrator.com, the line to add would be:
- This change will allow the Robot machine to bypass the DNS of the network and connect to Orchestrator directly.
- Try connecting the Robot Tray. If the first attempt fails wait a minute and then try again.
- If the connection succeeds, this means the problem is not with the Orchestrator server, but with whatever is between Orchestrator and the Robot Machine. At this point go back to the section Troubleshooting Intermediator
- If the connection fails, go to the section Troubleshooting Orchestrator
- If the Robot machines is connecting directly to Orchestrator and this error is encountered, it means that the Orchestrator is terminating the connection.
- Login to the Orchestrator Server as an Admin.
- Open a Run window and type “eventvwr” – This will open the Event Viewer.
- In the Event Viewer window, go to “Event Viewer (Local) -> Windows Logs->Application
- Click “Filter Current Log…” in the right “Actions” pane window.
- In the “Filter Current Log” dialog box, choose the Event Source: “Orchestrator” and “Orchestrator.BusinessException”. Then select “OK”.
- See if any errors associated with Orchestrator shed light on the root cause.
Also check any anti-virus logs to see if they forced the connection closed.
- Try clearing the event viewer filter and check if any anti-virus logs were generated.
- If the Robot was connecting to Orchestrator directly, there will probably be some information contained in the log that explains why the connection was terminated. This information usually gives systems admins enough information to understand what the problem is.
- If the logs do not help resolve the issue, please open a ticket with UiPath.