Windows could not start the UiPath Robot service on local computer.
Issue: Unable to restart Robot Service for Service mode Robot (Unattended).
Error Message:
Resolution:
- Check Event Viewer logs for any possible indication of errors and correct them first. If the error still does not go away, check the below scenarios.
Scenario #1:
- Open UiPath.config file from Studio / Robot installation directory (Default location is "C://Program Files/Uipath/Studio" and check if there are any logical mistakes.
For eg: If edited the UiPath.config file to include a proxy, it should contain open and close tags for proxy. Self closing tag(<webproxySettings/>) should be removed.
Scenario #2:
This error occurs if there are wildcards in the proxy bypass list.
- In .net core, the bypass list should not contain the wildcard. Replace wildcard * with regular expressions.
- Starting with v2021.4 Robot, the bypass list should contain an array of regular expression strings that contain the URIs of the servers to bypass
Eg:
<webProxySettings>
<add key="ProxyAddress"value="http://1.1.1.1:1234/"/>
<add key="BypassLocalAddresses"value="True"/>
<add key="BypassList"value="server\.domain\.local$;www.google.com;192\.168\.\d{1,3}\.\d{1,3}"/></webProxySettings>
Refer Redirecting Robots Through A Proxy Server- Editing the uipath.config File .
If the above does not help, gather the below information and reach out to the UiPath Product Support team.
Logs are to be shared along with the timestamp:
- Execution Logs: %userprofile%\AppData\Local\UiPath\Logs
- Event Viewer Logs: start menu -> type "event viewer" -> expand "Windows Logs" -> Go to "Application -> On the right, click "Save All Events As.." -> save as *.evtx -> zip and attach to the email.
- Low-level tracing logs as per the following documentation: Robot- Diagnostic Logs
- Enable low-level tracing logs as mentioned below.
Steps to Enable Logging:
- Open the command Prompt(Admin mode)
- Change directory to UiPath installation Folder cd C:\Program Files (x86)\UiPath\Studio
- UiRobot.exe --enableLowLevel
- Execute the Job from Robot Tray or Orchestrator.
- UiRobot.exe --disableLowLevel