UiPath Robot has slowness or issues in installing packages in restricted environments

How to troubleshoot "Failed to install packages" when there is restricted internet access? How to reduce the longer package installation time (more than 2 minutes) that Robot takes during each run?

When UiPath Robot is deployed in environment which has restrictive access to the Internet, it cannot access the external feeds like Myget.org, Gallery.uipath.com etc.

This can cause delays during job execution or even failures to install the package and start the job execution.

There are two approaches to resolving this:

  1. Whitelisting the online feeds (in the Robot machine) listed in the Services The Robot Connects To under 'Downloading packages' section
  1. If white-listing the endpoints is not an option, configure the Robot to not access the public feeds. Follow the instructions below:
  1. During the installation via CLI, use the NUGET_OPTIONS parameter
NUGET_OPTIONS=DisableOnlineFeeds
Read here for more examples on CLI commands.

Note: The URL feeds are not removed from configuration files, but are not considered.
  1. Post installation, change the config file to block the Robot from accessing the public feeds
  • Open as an Administrator the UiPath.config file located in the UiPath Robot installation folder
  • Add the below key in the block
  • This key instructs the Robot to only access the Orchestrator feed
   

  • Save the file
  • Restart the UiPath Robot service via Services.msc.

Here are before and after screenshots of the UiPath.config file
Before:

After: