Windows Could Not Start The UiPath Robot Service On Local Computer

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:

  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.

  1. In .net core, the bypass list should not contain the wildcard. Replace wildcard * with regular expressions.

  1. 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:

  1. Execution Logs: %userprofile%\AppData\Local\UiPath\Logs
  2. 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.
  3. Low-level tracing logs as per the following documentation: Robot- Diagnostic Logs
  4. Enable low-level tracing logs as mentioned below.

Steps to Enable Logging:
  1. Open the command Prompt(Admin mode)
  2. Change directory to UiPath installation Folder cd C:\Program Files (x86)\UiPath\Studio
  3. UiRobot.exe --enableLowLevel
  4. Execute the Job from Robot Tray or Orchestrator.
  5. UiRobot.exe --disableLowLevel