Environment Error Message

Hi all,

I have faced this error when building an agent.

Does anyone have a workaround for this error?

Thank you!

{“Code”:“Robot”,“Title”:“The path ‘/var/app/Executors’ for the selected source could not be resolved.”,“Detail”:“System.InvalidOperationException: The path ‘/var/app/Executors’ for the selected source could not be resolved.\n at NuGet.Protocol.LocalPackageSearchResource.<>c__DisplayClass2_0.b__0()\n at System.Threading.Tasks.Task`1.InnerInvoke()\n at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)\n— End of stack trace from previous location —\n at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)\n at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)\n— End of stack trace from previous location —\n at NuGet.Protocol.LocalPackageSearchResource.SearchAsync(String searchTerm, SearchFilter filters, Int32 skip, Int32 take, ILogger log, CancellationToken token)\n at NuGet.Protocol.LocalPackageListResource.EnumeratorAsync.MoveNextAsync()\n at UiPath.NuGet.Utils.GetLatestPackageSearchMetadata(String source, Boolean includePrerelease, CancellationToken cancellationToken) in /mnt/_work/1/s/Studio/Common/UiPath.NuGet/Utils.cs:line 104\n at UiPath.NuGet.Utils.GetLatestPackages(String source, Boolean includePrerelease, CancellationToken cancellationToken) in /mnt/_work/1/s/Studio/Common/UiPath.NuGet/Utils.cs:line 95\n at UiPath.Service.Core.PackageService.<>c__DisplayClass14_0.<g__ResolvePackageAndSources|2>d.MoveNext() in /mnt/_work/1/s/Studio/Robot/UiPath.Service.Core/Impl/PackageService.cs:line 130\n— End of stack trace from previous location —\n at UiPath.Service.Core.PackageService.InstallProcess(PublishedProcess process, ImpersonableIdentity identity, IRobot robot, Nullable`1 jobId, IEnvironment environment, CancellationToken ct) in /mnt/_work/1/s/Studio/Robot/UiPath.Service.Core/Impl/PackageService.cs:line 68\n at UiPath.Service.Job.InstallPackage(ImpersonableIdentity identity, CancellationToken ct) in /mnt/_work/1/s/Studio/Robot/UiPath.Service.Core/Impl/Job.cs:line 238\n at UiPath.Service.Job.PrepareForExecution(ImpersonableIdentity identity, CancellationToken ct) in /mnt/_work/1/s/Studio/Robot/UiPath.Service.Core/Impl/Job.cs:line 226\n at UiPath.Service.Job.StartAsync(IUserCredential credential, JobStartTelemetry telemetryData) in /mnt/_work/1/s/Studio/Robot/UiPath.Service.Core/Impl/Job.cs:line 169”,“Category”:null,“Status”:null}

The error indicates that the Robot is trying to use /var/app/Executors as a local NuGet package source, but that path cannot be resolved in the execution environment.

I would suggest checking the configured package sources for the environment/Robot and verifying whether /var/app/Executors is expected to exist. If it is an obsolete or incorrect local source, remove/disable it and ensure the required packages are available from the correct Orchestrator feed.

If this is a containerized Agent environment, also verify that the /var/app/Executors directory is correctly mounted and accessible to the Robot.

Hi @marc0089 ,
The agent is looking for packages in a folder called /var/app/Executors, but that folder cannot be found. Update the package feed/source to a valid location and republish the process. Once the package source is corrected, the agent should install the package successfully and run without this error.

Thanks

Hi @marc0089

this looks like a NuGet package source issue. The Robot is trying to access /var/app/Executors, but the path is not available.

Please check the configured NuGet package sources and remove/correct /var/app/Executors if it’s not required. Also make sure the Robot has access to the correct Orchestrator/NuGet feed.

Hey @marc0089 ,

That error is a NuGet package source issue — the Robot’s trying to pull packages from a local path (/var/app/Executors) that isn’t resolving, which suggests you’re on a Linux-based Robot/cloud agent runtime (fits with “building an agent”).

Things to try:

  • Check your package source config — see if /var/app/Executors is listed as a local feed; if so, it might be a leftover/misconfigured path in the container image.
  • If it’s a cloud/serverless agent, try a fresh republish/redeploy — sometimes clears it up.
  • Clear the NuGet cache and retrigger the job if you’re on a self-hosted robot.
  • If none of that works, this looks like it could be an infra-side bug (the trace points to an internal PackageService call) — worth raising with UiPath Support directly with your full stack trace.

Quick question: is this on a cloud/serverless Robot (Agent Builder) or a self-hosted/unattended Robot? Would help pin down the actual fix.