We use a Gitlab pipeline running on an on-prem runner with a Powershell executor to package and deploy code to orchestrator.
Recently we upgraded our versions of studio to 23.10.4 and Orchestrator 2023.10.2. Following that we upgraded to the 23.10 Windows version of the CLI.
After upgrading, we tested out the pipeline, with no changes, except to point Powershell to the newest version of the CLI, and we get the following output:
uipcli: Data collection is enabled. For more information, please visit Automation Ops - UiPath CLI
31uipcli Error: 0 : ``UiPath.CommandLine.Core.IdentityHandlers.Exceptions.AccessTokenFetchException: Could not fetch access token.
32 at UiPath.CommandLine.Core.IdentityHandlers.Handlers.AccessTokenHandler.<>c__DisplayClass2_0.<g__SendRequest|0>d.MoveNext() in C:\ao-ag-334badc1-we_work\1\s\UiPath.Extensions.CommandLine.Core\IdentityHandlers\Handlers\AccessTokenHandler.cs:line 37
33— End of stack trace from previous location —
34 at UiPath.CommandLine.Core.IdentityHandlers.Handlers.AccessTokenHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken) in C:\ao-ag-334badc1-we_work\1\s\UiPath.Extensions.CommandLine.Core\IdentityHandlers\Handlers\AccessTokenHandler.cs:line 26
35 at UiPath.CommandLine.Core.IdentityHandlers.Handlers.ExtractAccessTokenHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken) in C:\ao-ag-334badc1-we_work\1\s\UiPath.Extensions.CommandLine.Core\IdentityHandlers\Handlers\ExtractAccessTokenHandler.cs:line 21
36 at System.Net.Http.HttpClient.g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
37 at UiPath.Orchestrator.Web.ClientV3.PackageFeedsClient.GetAccessibleFeedsAsync(Nullable`1 onlyPublishable, String api_version, CancellationToken cancellationToken)
38 at UiPath.CommandLine.Utils.FeedUtil.GetFeeds(PackageFeedsClient packageFeedsClient, StringBuilder accessToken) in C:\ao-ag-334badc1-we_work\1\s\UiPath.Extensions.CommandLine.Core\Utils\FeedUtil.cs:line 100
39 at UiPath.CommandLine.Utils.FeedUtil.GetOrchestratorFeeds(BusinessTraceSource businessTraceSource, BaseAuthenticatedOptions options) in C:\ao-ag-334badc1-we_work\1\s\UiPath.Extensions.CommandLine.Core\Utils\FeedUtil.cs:line 40``
40Begin dependencies restore for Website Testing Automation.
41Finished dependencies restore for Website Testing Automation.Compiling…
42Starting AssemblyCompilerHost process…
43An error occurred trying to start process ‘dotnet’ with working directory ‘C:\Users\Public\UiPathDevOpsScripts\uipathcli-23.10\tools’. The system cannot find the file specified.Failed to run the command. UiPath.CommandLine.Exceptions.CommandException: Packaging failed due to one or more errors. Message : An error occurred trying to start process ‘dotnet’ with working directory ‘C:\Users\Public\UiPathDevOpsScripts\uipathcli-23.10\tools’. The system cannot find the file specified. Error : at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
44 at System.Diagnostics.Process.Start()
45 at System.Diagnostics.Process.Start(ProcessStartInfo startInfo)
46 at UiPath.Studio.App.Processes.ProcessService.Start(ProcessStartInfo startInfo)
47 at UiPath.Studio.Ipc.Shared.IpcFactoryBase`2.StartServerApplication(String endpoint, String exeLocation, Boolean ownsRemoteProcess)
48 at UiPath.Studio.Ipc.Shared.IpcFactoryBase`2.CreateProxy(String endpoint, String exeLocation, Boolean ownsRemoteProcess)
49 at UiPath.Studio.AssemblyCompilerHost.Shared.Services.AssemblyCompilerHostServerAdapter.ConnectToServer(String endPoint, String friendlyName, String exeLocation, Boolean ownsServerInstance)
50 at UiPath.Studio.AssemblyCompiler.Services.GeneratedAssembliesServiceProxy.InitializeConnectionToServer(AssemblyCompilerHostServerAdapter webServicesServerAdapter, String assemblyCompilerHostServerIdentity, IWorkflowProjectModel project)
51 at UiPath.Studio.AssemblyCompiler.Services.GeneratedAssembliesServiceProxy.RepairAllAssemblies(IWorkflowProjectModel project, String initiatedBy, IProgress`1 progress, CancellationToken ct)
52 at UiPath.Studio.ProjectPackager.ProjectPackagerHelper.<>c__DisplayClass1_0.<b__0>d.MoveNext()
53— End of stack trace from previous location —
54 at UiPath.Studio.ProjectPackager.ProjectPackagerHelper.GenerateCustomAssmeblies(IWorkflowProjectModel projectModel, ProjectPublishSettings settings, ILoadingFormService loadingFormService, IGeneratedAssembliesRepairService generatedAssembliesRepairService)
55 at UiPath.Studio.ProjectPackager.Publish.Services.ProjectPublishProcessor.SetupAsync(IWorkflowProjectModel projectModel, ProjectPublishSettings settings)
56 at UiPath.Studio.ProjectPackager.Publish.Services.ProcessPublishProcessor.SetupAsync(IWorkflowProjectModel projectModel, ProjectPublishSettings settings)
57 at UiPath.Studio.ProjectPackager.Publish.Services.PublishService.PerformPrePackOperationsAsync(IWorkflowProjectModel projectModel, IPublishSettings settings)
58 at UiPath.Studio.ProjectPackager.Packager.Services.ProjectPackagerService.PrePackAsync(IPackagerHelperService packagerHelper, IWorkflowProject workflowProject, IPublishSettings publishSettings, ProjectRestoreResult dependencies)
59 at UiPath.Studio.ProjectPackager.Packager.Services.ProjectPackagerService.PackProjectExternal(String projectPath, UpdateProjectVersionEnum updateProjectVersion, PublishSettings publishSettings, IProgress1 progress, Action
1 logEvent, IReadOnlyCollection`1 packageSources, String destinationFolder, CancellationToken cancellationToken)
60Details…
61Message: Error :
62 at UiPath.CommandLine.Services.Impl.PackService.PackProject(String projectPath, ProjectVersion currentVersion, String destinationFolder, PublishSettings settings, IEnumerable`1 packageSources) in C:\ao-ag-334badc1-we_work\1\s\UiPath.Extensions.CommandLine.Core\Services\Impl\PackService.cs:line 246
What could have caused an issue like this to occur?