question

JatinTaneja-3957 avatar image
0 Votes"
JatinTaneja-3957 asked DhanrajVenkatesan-4521 commented

File download issue from Azure ftp using powershell script

"Unable to connect to the remote server" Error while publishing uipath orchestrator through powershell command. Please suggest some resolution.

PS C:\WINDOWS\system32> E:\UiPathOrchestrator\Publish-Orchestrator.ps1 >> -action "Deploy"

-unattended >> -package "E:\UiPathOrchestrator\UiPath.Orchestrator.Web.zip"
-stopApplicationBeforePublish >> -azureSubscriptionId "4ef76cd8-f3af-44d2-aa77-af37ae8a1ce4"
-azureAccountTenantId "a672a07e-20fe-4ba9-a237-d64e3370347a" >> -azureAccountApplicationId "0130b170-b80d-4288-8cfa-1481b47bf052"
-azureAccountPassword "qD_vCn5vPAkeQcDEB7FS3T_c50UN.L-3L9" >> -resourceGroupName "Orches_App"
-appServiceName "RPATechOrchestrator" >> -hostAdminPassword "12345qwert"
-defaultTenantAdminPassword "12345qwert" `
-verbose

AzureRM module version 6 or greater is already installed. Importing module ...
Attempting log in to AzureRM
Logged in to AzureRM
Stopped the application RPATechOrchestrator-Production
Waiting 30 seconds for RPATechOrchestrator-Production to shut down completely.

Deploying package E:\UiPathOrchestrator\UiPath.Orchestrator.Web.zip on website RPATechOrchestrator

Web Deploy parameters:

Name Value

EncryptionKey Mn9hVH+vaS4/Ypy+IWifJgvhmIC+oAryfiEDgXe/BQc=
storageType FileSystem
activitiesApiKey ecf8527f-9f22-40e6-b00a-21be605ede23
apiKey ecf8527f-9f22-40e6-b00a-21be605ede23
machineKeyDecryptionKey 215442C8B6FA30E667E8A39BB3EB38A55464289285370D01B1527276DC288AD2
machineKeyDecryption AES
elasticSearchDiagnosticsReq... false
storageLocation RootPath=.\Storage
machineKeyValidationKey F6093216EE12B100C0D2F2CBBBFB644C4A7BDBE014AD6B310B5C289F43B8E30451BE1FB08DE44EE5AD02E784FA4B7F808AD875F4F1F8814B756D5534E060DEA0
ElasticSearchRequireAuth false
machineKeyValidation HMACSHA256



Folders to skip:

\\NuGetPackages, \\NuGetPackages\\Activities, \\Storage, \\PackagesMigration, \\App_Data

Files to skip:



Executing command:

msdeploy.exe -verb:sync -source:package='E:\UiPathOrchestrator\UiPath.Orchestrator.Web.zip' -dest:auto,ComputerName='https://rpatechorchestrator.scm.azurewebsites.net:443/msdeploy.axd?site=RPATechOrchestrator',UserName='$RPATechOrchestrator',Password='QE3Xl35QudoSd3byu7gNRXW8kYrrKuCwXeNJiaqsnr3e0ehoxz6q021p7fvN',AuthType='Basic' -disableLink:AppPoolExtension -disableLink:ContentExtension -disableLink:CertificateExtension -setParam:name='IIS Web Application Name',value='RPATechOrchestrator' -skip:objectName=dirPath,absolutePath='\\NuGetPackages' -skip:objectName=dirPath,absolutePath='\\NuGetPackages\\Activities' -skip:objectName=dirPath,absolutePath='\\Storage' -skip:objectName=dirPath,absolutePath='\\PackagesMigration' -skip:objectName=dirPath,absolutePath='\\App_Data' -setParam:name='EncryptionKey',value='Mn9hVH+vaS4/Ypy+IWifJgvhmIC+oAryfiEDgXe/BQc=' -setParam:name='storageType',value='FileSystem' -setParam:name='activitiesApiKey',value='ecf8527f-9f22-40e6-b00a-21be605ede23' -setParam:name='apiKey',value='ecf8527f-9f22-40e6-b00a-21be605ede23' -setParam:name='machineKeyDecryptionKey',value='215442C8B6FA30E667E8A39BB3EB38A55464289285370D01B1527276DC288AD2' -setParam:name='machineKeyDecryption',value='AES' -setParam:name='elasticSearchDiagnosticsRequireAuth',value='false' -setParam:name='storageLocation',value='RootPath=.\Storage' -setParam:name='machineKeyValidationKey',value='F6093216EE12B100C0D2F2CBBBFB644C4A7BDBE014AD6B310B5C289F43B8E30451BE1FB08DE44EE5AD02E784FA4B7F808AD875F4F1F8814B756D5534E060DEA0' -setParam:name='ElasticSearchRequireAuth',value='false' -setParam:name='machineKeyValidation',value='HMACSHA256'

Info: Using ID '8998a345-e35c-40e8-a0b1-2d42a28ba47a' for connections to the remote server.
Info: Object dirPath (RPATechOrchestrator\Storage) skipped due to skip directive 'CommandLineSkipDirective 3'.
Info: Using ID '651d1f1d-be7d-4cf0-8446-011cfeba1118' for connections to the remote server.
Info: Object dirPath (RPATechOrchestrator\Storage) skipped due to skip directive 'CommandLineSkipDirective 3'.
Info: Updating file (RPATechOrchestrator\UiPath.Orchestrator.dll.config).
Total changes: 1 (0 added, 0 deleted, 1 updated, 0 parameters changed, 15808 bytes copied)

Package E:\UiPathOrchestrator\UiPath.Orchestrator.Web.zip deployed successfully

Deployment parameters logged in file 'E:\UiPathOrchestrator\AzurePublishParameters.json'

VERBOSE: Downloading file from URL ftp://waws-prod-dm1-043.ftp.azurewebsites.windows.net/site/wwwroot/UiPath.Orchestrator.dll.config to
C:\Users\jatin\AppData\Local\Temp\azuredeploy-20210610120951210\Web.config
file could not be downloaded
Unable to connect to the remote server
VERBOSE: Downloading file from URL ftp://waws-prod-dm1-043.ftp.azurewebsites.windows.net/site/wwwroot/UiPath.Orchestrator.WebCore.Host.exe.config to
C:\Users\jatin\AppData\Local\Temp\azuredeploy-20210610120951210\Web.config
file could not be downloaded
Unable to connect to the remote server
VERBOSE: Downloading file from URL ftp://waws-prod-dm1-043.ftp.azurewebsites.windows.net/site/wwwroot/Web.config to
C:\Users\jatin\AppData\Local\Temp\azuredeploy-20210610120951210\Web.config
file could not be downloaded
Unable to connect to the remote server
An error has occured while trying to cofigure the database.
System.Management.Automation.RuntimeException: No configuration file was found in ftp://waws-prod-dm1-043.ftp.azurewebsites.windows.net/site/wwwroot
PS C:\WINDOWS\system32>

azure-webapps
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thanks for asking question! Could you please check that you've entered the correct hostname and credentials. Check also that the following FTP ports on your machine are not blocked by a firewall:
FTP control connection port: 21, 990
FTP data connection port: 989, 10001-10300

You may refer to below links might help:
How can I troubleshoot FTP deployment?

Let us know if issue remains.


0 Votes 0 ·

When I execute this comment
PS C:\Users\vlvd\Downloads\UiPathOrchestrator> .\Publish-IdentityServer.ps1 >> -action Deploy

-orchestratorUrl "https://orchdhan122022apps.azurewebsites.net" >> -identityServerUrl "https://orchidentitydhan122022app.azurewebsites.net/identity"
-orchDetails @{ resourceGroupName = "test"; appServiceName = "orchdhan2022apps"; targetSlot = "Production" } >> -identityServerDetails @{ resourceGroupName = "DevTest-ProductSupport-RG"; appServiceName = "orchidentitydhan2022app"; targetSlot = "Production" }
-azureSubscriptionId "e6890ad9-aer1-4696-appl-c50fe72aa287" >> -azureAccountTenantId "d000322a-b153-4d17-8827-902c51f71357"
-azureAccountApplicationId "181003z5-2142-1111-98ee-106c9cccd3cc" >> -azureAccountPassword "~3rfp~kfbI4fryIUGfuCVtdzjgUZ-RZqttuTl0rdc"
-package "C:\Users\vlvd\Downloads\UiPathOrchestrator\UiPath.IdentityServer.Web.zip" >> -stopApplicationBeforePublish -cliPackage "C:\Users\vlvd\Downloads\UiPathOrchestrator\UiPath.IdentityServer.Migrator.Cli.zip"


Error:
229637-image.png


0 Votes 0 ·
image.png (57.3 KiB)

0 Answers