While upgrading orchestrator through azure script getting below error "Error Code: ERROR_EXCEPTION_WHILE_CREATING_OBJECTMore Information: Object of type "package" and path '.\UiPath.ResourceCatalogService-Win64.zip' cannot be created. Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_EXCEPTION_WHILE_CREATING_OBJECT.Error: The Zip package '.\UiPath.ResourceCatalogService-Win64.zip' could not be loaded.Error: Could not find a part of the path '.\UiPath.ResourceCatalogService-Win64.zip'. Error count: 1.Deploy-Package :Failed to deploy package .\UiPath.ResourceCatalogService-Win64.zipAt C:\uipath\UiPathOrchestrator\Publish-ResourceCatalog.ps1:80 char:5+ Deploy-Package $package $publishSettings+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+ CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Deploy-Package
Error: When tried to Upgrade Orchestrator in Azure PaaS below error is thrown.
Extracting cli to: C:\Users\turboticadmin\AppData\Local\Temp\2\azuredeploy-20231012063804074\migrator
Main : Exception calling "DownloadFile" with "2" argument(s): "The remote server returned an error: (550) File unavailable (e.g., file not found, no access)."
At C:\uipath\UiPathOrchestrator\Publish-IdentityServer.ps1:291 char:1
+ Main
+ ~~~~
+ CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
Root Cause: The above error is due to FTP is not downloading the below files to %UserProfile%\AppData\Local\Temp\azuredeploy-*
Resolution:
- Manually download the below files
- orchestrator.web.config which is the orchestrator.dll.config from the orchestrator App service.
- Orchestrator.PublishSettings which can be downloaded from the Orchestrator App service web app home page.
- Orchestrator-identity.PublishSettings which can be downloaded from the Orchestrator identity App service webapp home page.
- Add a delay in Publish-IdentityServer.ps1 script after creating the Azuredeploy* folder in the temp folder and commented download file commands with the below command ( To avoid attempting download)
- Start-Sleep -Seconds 120
- After the script creates a File in temp and goes into sleep mode replace the above files in the same location which will install the identity update script successfully.