Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]: An error occurred while the agent was calling the IISWebAppDeploymentOnMachineGroup@0 task. #4484

Closed
1 of 4 tasks
samnchiu opened this issue Oct 20, 2023 · 3 comments
Closed
1 of 4 tasks

Comments

@samnchiu
Copy link

What happened?

When I attempted to use IISWebAppDeploymentOnMachineGroup@0 on my server to deploy my application to an IIS site, an error occurred. The error message in the pipeline is as follows:

##[debug]arguments:
##[debug]arguments:
##[debug]   -verb:sync
##[debug]   -verb:sync
##[debug]   -source:IisApp='D:\azurepipeline\ACRM_UT_vsts-agent-win-x64-3.227.2\_work\1\s\270\publish'
##[debug]   -source:IisApp='D:\azurepipeline\ACRM_UT_vsts-agent-win-x64-3.227.2\_work\1\s\270\publish'
##[debug]   -dest:iisApp='Default Web Site/ACRM_T'
##[debug]   -dest:iisApp='Default Web Site/ACRM_T'
##[debug]   -enableRule:AppOffline
##[debug]   -enableRule:AppOffline
##[debug]   -enableRule:DoNotDeleteRule
##[debug]   -enableRule:DoNotDeleteRule
"D:\azurepipeline\ACRM_UT_vsts-agent-win-x64-3.227.2\_work\_tasks\IISWebAppDeploymentOnMachineGroup_1b467810-6725-4b6d-accd-886174c09bba\0.229.0\node_modules\azure-pipelines-tasks-webdeployment-common\MSDeploy3.6\MSDeploy3.6\msdeploy.exe" -verb:sync -source:IisApp='D:\azurepipeline\ACRM_UT_vsts-agent-win-x64-3.227.2\_work\1\s\270\publish' -dest:iisApp='Default Web Site/ACRM_T' -enableRule:AppOffline -enableRule:DoNotDeleteRule
##[debug]Exit code 3762504530 received from tool 'D:\azurepipeline\ACRM_UT_vsts-agent-win-x64-3.227.2\_work\_tasks\IISWebAppDeploymentOnMachineGroup_1b467810-6725-4b6d-accd-886174c09bba\0.229.0\node_modules\azure-pipelines-tasks-webdeployment-common\MSDeploy3.6\MSDeploy3.6\msdeploy.exe'
##[debug]Exit code 3762504530 received from tool 'D:\azurepipeline\ACRM_UT_vsts-agent-win-x64-3.227.2\_work\_tasks\IISWebAppDeploymentOnMachineGroup_1b467810-6725-4b6d-accd-886174c09bba\0.229.0\node_modules\azure-pipelines-tasks-webdeployment-common\MSDeploy3.6\MSDeploy3.6\msdeploy.exe'
##[debug]STDIO streams have closed for tool 'D:\azurepipeline\ACRM_UT_vsts-agent-win-x64-3.227.2\_work\_tasks\IISWebAppDeploymentOnMachineGroup_1b467810-6725-4b6d-accd-886174c09bba\0.229.0\node_modules\azure-pipelines-tasks-webdeployment-common\MSDeploy3.6\MSDeploy3.6\msdeploy.exe'
##[debug]STDIO streams have closed for tool 'D:\azurepipeline\ACRM_UT_vsts-agent-win-x64-3.227.2\_work\_tasks\IISWebAppDeploymentOnMachineGroup_1b467810-6725-4b6d-accd-886174c09bba\0.229.0\node_modules\azure-pipelines-tasks-webdeployment-common\MSDeploy3.6\MSDeploy3.6\msdeploy.exe'
Error: The process 'D:\azurepipeline\ACRM_UT_vsts-agent-win-x64-3.227.2\_work\_tasks\IISWebAppDeploymentOnMachineGroup_1b467810-6725-4b6d-accd-886174c09bba\0.229.0\node_modules\azure-pipelines-tasks-webdeployment-common\MSDeploy3.6\MSDeploy3.6\msdeploy.exe' failed with exit code 3762504530
    at ExecState._setResult (D:\azurepipeline\ACRM_UT_vsts-agent-win-x64-3.227.2\_work\_tasks\IISWebAppDeploymentOnMachineGroup_1b467810-6725-4b6d-accd-886174c09bba\0.229.0\node_modules\azure-pipelines-task-lib\toolrunner.js:943:25)
    at ExecState.CheckComplete (D:\azurepipeline\ACRM_UT_vsts-agent-win-x64-3.227.2\_work\_tasks\IISWebAppDeploymentOnMachineGroup_1b467810-6725-4b6d-accd-886174c09bba\0.229.0\node_modules\azure-pipelines-task-lib\toolrunner.js:926:18)
    at ChildProcess.<anonymous> (D:\azurepipeline\ACRM_UT_vsts-agent-win-x64-3.227.2\_work\_tasks\IISWebAppDeploymentOnMachineGroup_1b467810-6725-4b6d-accd-886174c09bba\0.229.0\node_modules\azure-pipelines-task-lib\toolrunner.js:839:19)
    at ChildProcess.emit (node:events:513:28)
    at maybeClose (node:internal/child_process:1100:16)
    at Process.ChildProcess._handle.onexit (node:internal/child_process:304:5)
Retrying to deploy the package.

I went to the Event Viewer on my host and found a clear error message as follows:

Framework 版本: v4.0.30319
描述: 處理序已終止,因為有未處理的例外狀況。
例外狀況資訊: System.IO.FileNotFoundException
   於 Microsoft.Web.Deployment.TraceWrapper.EventWriteVerboseHelper(System.String, System.String, System.String)
   於 Microsoft.Web.Deployment.TraceWrapper.EventWriteVerbose(System.String, System.String, System.String)
   於 MSDeploy.MSDeploy.Main(System.String[])

I found msdeploy.exe and was able to reproduce the issue using the command prompt.
image

However, I found it strange because there are different agents for different projects on the same server, and they all use the IISWebAppDeploymentOnMachineGroup@0 task. So I went to the directory of another project's agent and found the same msdeploy.exe, but it was able to run without any issues.

image

I realized that this might be a path length limitation issue, so I conducted an experiment by shortening the directory path of my previously lengthy folders. After doing so, the task was able to run without any issues.

Providing path of success and failure below:

  • successful path : D:\azurepipeline\vsts-agent-win-x64-3.224.1_work_tasks\IISWebAppDeploymentOnMachineGroup_1b467810-6725-4b6d-accd-886174c09bba\0.229.0\node_modules\azure-pipelines-tasks-webdeployment-common\MSDeploy3.6\MSDeploy3.6
  • failed path:D:\azurepipeline\ACRM_UT_vsts-agent-win-x64-3.227.2_work_tasks\IISWebAppDeploymentOnMachineGroup_1b467810-6725-4b6d-accd-886174c09bba\0.229.0\node_modules\azure-pipelines-tasks-webdeployment-common\MSDeploy3.6\MSDeploy3.6

The above information is provided for reference. Please let me know if any additional information is needed. Thank you.

Versions

  • Agent version : agent-win-x64-3.227.2
  • Microsoft Windows Server 2019 Standard 10.0.17763

Environment type (Please select at least one enviroment where you face this issue)

  • Self-Hosted
  • Microsoft Hosted
  • VMSS Pool
  • Container

Azure DevOps Server type

dev.azure.com (formerly visualstudio.com)

Azure DevOps Server Version (if applicable)

No response

Operation system

No response

Version controll system

No response

Relevant log output

2023-10-19T08:55:47.8529805Z ##[debug]Evaluating condition for step: 'IISWebAppDeploymentOnMachineGroup'
2023-10-19T08:55:47.8530945Z ##[debug]Evaluating: SucceededNode()
2023-10-19T08:55:47.8531225Z ##[debug]Evaluating SucceededNode:
2023-10-19T08:55:47.8531721Z ##[debug]=> True
2023-10-19T08:55:47.8531976Z ##[debug]Result: True
2023-10-19T08:55:47.8532303Z ##[section]Starting: IISWebAppDeploymentOnMachineGroup
2023-10-19T08:55:47.8736817Z ==============================================================================
2023-10-19T08:55:47.8737114Z Task         : IIS web app deploy
2023-10-19T08:55:47.8737258Z Description  : Deploy a website or web application using Web Deploy
2023-10-19T08:55:47.8737551Z Version      : 0.229.0
2023-10-19T08:55:47.8737637Z Author       : Microsoft Corporation
2023-10-19T08:55:47.8737780Z Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/deploy/iis-web-app-deployment-on-machine-group
2023-10-19T08:55:47.8738336Z ==============================================================================
2023-10-19T08:55:47.9809421Z ##[debug]Using node path: D:\azurepipeline\ACRM_UT_vsts-agent-win-x64-3.227.2\externals\node16\bin\node.exe
2023-10-19T08:55:48.2550658Z ##[debug]agent.TempDirectory=D:\azurepipeline\ACRM_UT_vsts-agent-win-x64-3.227.2\_work\_temp
2023-10-19T08:55:48.2581494Z ##[debug]loading inputs and endpoints
2023-10-19T08:55:48.2591189Z ##[debug]loading ENDPOINT_AUTH_PARAMETER_SYSTEMVSSCONNECTION_ACCESSTOKEN
2023-10-19T08:55:48.2606798Z ##[debug]loading ENDPOINT_AUTH_SCHEME_SYSTEMVSSCONNECTION
2023-10-19T08:55:48.2611136Z ##[debug]loading ENDPOINT_AUTH_SYSTEMVSSCONNECTION
2023-10-19T08:55:48.2616250Z ##[debug]loading INPUT_EXCLUDEFILESFROMAPPDATAFLAG
2023-10-19T08:55:48.2620969Z ##[debug]loading INPUT_PACKAGE
2023-10-19T08:55:48.2625573Z ##[debug]loading INPUT_REMOVEADDITIONALFILESFLAG
2023-10-19T08:55:48.2631233Z ##[debug]loading INPUT_SETPARAMETERSFILE
2023-10-19T08:55:48.2636052Z ##[debug]loading INPUT_TAKEAPPOFFLINEFLAG
2023-10-19T08:55:48.2641204Z ##[debug]loading INPUT_VIRTUALAPPLICATION
2023-10-19T08:55:48.2646930Z ##[debug]loading INPUT_WEBSITENAME
2023-10-19T08:55:48.2652573Z ##[debug]loading INPUT_XMLTRANSFORMATION
2023-10-19T08:55:48.2658287Z ##[debug]loading INPUT_XMLVARIABLESUBSTITUTION
2023-10-19T08:55:48.2665182Z ##[debug]loading SECRET_SYSTEM_ACCESSTOKEN
2023-10-19T08:55:48.2673552Z ##[debug]loaded 13
2023-10-19T08:55:48.2678849Z ##[debug]Agent.ProxyUrl=undefined
2023-10-19T08:55:48.2679450Z ##[debug]Agent.CAInfo=undefined
2023-10-19T08:55:48.2680020Z ##[debug]Agent.ClientCert=undefined
2023-10-19T08:55:48.2680531Z ##[debug]Agent.SkipCertValidation=undefined
2023-10-19T08:55:48.5296431Z ##[debug]check path : D:\azurepipeline\ACRM_UT_vsts-agent-win-x64-3.227.2\_work\_tasks\IISWebAppDeploymentOnMachineGroup_1b467810-6725-4b6d-accd-886174c09bba\0.229.0\task.json
2023-10-19T08:55:48.5300715Z ##[debug]adding resource file: D:\azurepipeline\ACRM_UT_vsts-agent-win-x64-3.227.2\_work\_tasks\IISWebAppDeploymentOnMachineGroup_1b467810-6725-4b6d-accd-886174c09bba\0.229.0\task.json
2023-10-19T08:55:48.5302856Z ##[debug]system.culture=en-US
2023-10-19T08:55:48.5325118Z ##[debug]check path : D:\azurepipeline\ACRM_UT_vsts-agent-win-x64-3.227.2\_work\_tasks\IISWebAppDeploymentOnMachineGroup_1b467810-6725-4b6d-accd-886174c09bba\0.229.0\node_modules\azure-pipelines-tasks-webdeployment-common\module.json
2023-10-19T08:55:48.5327669Z ##[debug]adding resource file: D:\azurepipeline\ACRM_UT_vsts-agent-win-x64-3.227.2\_work\_tasks\IISWebAppDeploymentOnMachineGroup_1b467810-6725-4b6d-accd-886174c09bba\0.229.0\node_modules\azure-pipelines-tasks-webdeployment-common\module.json
2023-10-19T08:55:48.5330685Z ##[debug]system.culture=en-US
2023-10-19T08:55:48.5359420Z ##[debug]WebSiteName=Default Web Site
2023-10-19T08:55:48.5365380Z ##[debug]VirtualApplication=ACRM_T
2023-10-19T08:55:48.5370883Z ##[debug]Package=D:\azurepipeline\ACRM_UT_vsts-agent-win-x64-3.227.2\_work\1\s\270\publish
2023-10-19T08:55:48.5376667Z ##[debug]SetParametersFile=D:\azurepipeline\ACRM_UT_vsts-agent-win-x64-3.227.2\_work\1\s
2023-10-19T08:55:48.5383063Z ##[debug]RemoveAdditionalFilesFlag=false
2023-10-19T08:55:48.5386800Z ##[debug]ExcludeFilesFromAppDataFlag=false
2023-10-19T08:55:48.5390488Z ##[debug]TakeAppOfflineFlag=true
2023-10-19T08:55:48.5391397Z ##[debug]AdditionalArguments=undefined
2023-10-19T08:55:48.5395859Z ##[debug]XmlTransformation=false
2023-10-19T08:55:48.5396711Z ##[debug]JSONFiles=undefined
2023-10-19T08:55:48.5401073Z ##[debug]XmlVariableSubstitution=false
2023-10-19T08:55:48.5402648Z ##[debug]Finding files matching input: D:\azurepipeline\ACRM_UT_vsts-agent-win-x64-3.227.2\_work\1\s\270\publish
2023-10-19T08:55:48.6077827Z ##[debug]Unsupported installed version: 0 found for MSDeploy. version should be at least 3 or above
2023-10-19T08:55:48.6084806Z ##[debug]SetParametersFile=D:\azurepipeline\ACRM_UT_vsts-agent-win-x64-3.227.2\_work\1\s
2023-10-19T08:55:48.6086208Z ##[debug]Absolute path for pathSegments: D:\azurepipeline\ACRM_UT_vsts-agent-win-x64-3.227.2\_work\1\s = D:\azurepipeline\ACRM_UT_vsts-agent-win-x64-3.227.2\_work\1\s
2023-10-19T08:55:48.6087648Z ##[debug]build.sourcesDirectory=D:\azurepipeline\ACRM_UT_vsts-agent-win-x64-3.227.2\_work\1\s
2023-10-19T08:55:48.6089015Z ##[debug]Absolute path for pathSegments: D:\azurepipeline\ACRM_UT_vsts-agent-win-x64-3.227.2\_work\1\s = D:\azurepipeline\ACRM_UT_vsts-agent-win-x64-3.227.2\_work\1\s
2023-10-19T08:55:48.6090944Z ##[debug]SetParametersFilepath supplied :false
2023-10-19T08:55:48.6091520Z ##[debug]Constructed msDeploy comamnd line arguments
2023-10-19T08:55:48.6091970Z ##[debug]appservice.msdeployretrycount=undefined
2023-10-19T08:55:48.6092642Z ##[debug]System.DefaultWorkingDirectory=D:\azurepipeline\ACRM_UT_vsts-agent-win-x64-3.227.2\_work\1\s
2023-10-19T08:55:48.6099640Z ##[debug]the argument string is:
2023-10-19T08:55:48.6100911Z ##[debug] -verb:sync -source:IisApp="'D:\azurepipeline\ACRM_UT_vsts-agent-win-x64-3.227.2\_work\1\s\270\publish'" -dest:iisApp="'Default Web Site/ACRM_T'" -enableRule:AppOffline   -enableRule:DoNotDeleteRule
2023-10-19T08:55:48.6102277Z ##[debug]converting the argument string into an array of arguments
2023-10-19T08:55:48.6103003Z ##[debug]the array of arguments is:
2023-10-19T08:55:48.6103452Z ##[debug]arg#0: -verb:sync
2023-10-19T08:55:48.6104146Z ##[debug]arg#1: -source:IisApp='D:\azurepipeline\ACRM_UT_vsts-agent-win-x64-3.227.2\_work\1\s\270\publish'
2023-10-19T08:55:48.6104949Z ##[debug]arg#2: -dest:iisApp='Default Web Site/ACRM_T'
2023-10-19T08:55:48.6105476Z ##[debug]arg#3: -enableRule:AppOffline
2023-10-19T08:55:48.6105959Z ##[debug]arg#4: -enableRule:DoNotDeleteRule
2023-10-19T08:55:48.6106463Z ##[debug]which 'msdeploy'
2023-10-19T08:55:48.6121201Z ##[debug]found: 'D:\azurepipeline\ACRM_UT_vsts-agent-win-x64-3.227.2\_work\_tasks\IISWebAppDeploymentOnMachineGroup_1b467810-6725-4b6d-accd-886174c09bba\0.229.0\node_modules\azure-pipelines-tasks-webdeployment-common\MSDeploy3.6\MSDeploy3.6\msdeploy.exe'
2023-10-19T08:55:48.6124809Z ##[debug]D:\azurepipeline\ACRM_UT_vsts-agent-win-x64-3.227.2\_work\_tasks\IISWebAppDeploymentOnMachineGroup_1b467810-6725-4b6d-accd-886174c09bba\0.229.0\node_modules\azure-pipelines-tasks-webdeployment-common\MSDeploy3.6\MSDeploy3.6\msdeploy.exe arg: ["-verb:sync","-source:IisApp='D:\\azurepipeline\\ACRM_UT_vsts-agent-win-x64-3.227.2\\_work\\1\\s\\270\\publish'","-dest:iisApp='Default Web Site/ACRM_T'","-enableRule:AppOffline","-enableRule:DoNotDeleteRule"]
2023-10-19T08:55:48.6129185Z ##[debug]D:\azurepipeline\ACRM_UT_vsts-agent-win-x64-3.227.2\_work\_tasks\IISWebAppDeploymentOnMachineGroup_1b467810-6725-4b6d-accd-886174c09bba\0.229.0\node_modules\azure-pipelines-tasks-webdeployment-common\MSDeploy3.6\MSDeploy3.6\msdeploy.exe arg: ["-verb:sync","-source:IisApp='D:\\azurepipeline\\ACRM_UT_vsts-agent-win-x64-3.227.2\\_work\\1\\s\\270\\publish'","-dest:iisApp='Default Web Site/ACRM_T'","-enableRule:AppOffline","-enableRule:DoNotDeleteRule"]
2023-10-19T08:55:48.6132953Z ##[debug]exec tool: D:\azurepipeline\ACRM_UT_vsts-agent-win-x64-3.227.2\_work\_tasks\IISWebAppDeploymentOnMachineGroup_1b467810-6725-4b6d-accd-886174c09bba\0.229.0\node_modules\azure-pipelines-tasks-webdeployment-common\MSDeploy3.6\MSDeploy3.6\msdeploy.exe
2023-10-19T08:55:48.6136050Z ##[debug]exec tool: D:\azurepipeline\ACRM_UT_vsts-agent-win-x64-3.227.2\_work\_tasks\IISWebAppDeploymentOnMachineGroup_1b467810-6725-4b6d-accd-886174c09bba\0.229.0\node_modules\azure-pipelines-tasks-webdeployment-common\MSDeploy3.6\MSDeploy3.6\msdeploy.exe
2023-10-19T08:55:48.6137527Z ##[debug]arguments:
2023-10-19T08:55:48.6137911Z ##[debug]arguments:
2023-10-19T08:55:48.6139160Z ##[debug]   -verb:sync
2023-10-19T08:55:48.6139954Z ##[debug]   -verb:sync
2023-10-19T08:55:48.6140609Z ##[debug]   -source:IisApp='D:\azurepipeline\ACRM_UT_vsts-agent-win-x64-3.227.2\_work\1\s\270\publish'
2023-10-19T08:55:48.6141567Z ##[debug]   -source:IisApp='D:\azurepipeline\ACRM_UT_vsts-agent-win-x64-3.227.2\_work\1\s\270\publish'
2023-10-19T08:55:48.6142411Z ##[debug]   -dest:iisApp='Default Web Site/ACRM_T'
2023-10-19T08:55:48.6142975Z ##[debug]   -dest:iisApp='Default Web Site/ACRM_T'
2023-10-19T08:55:48.6143480Z ##[debug]   -enableRule:AppOffline
2023-10-19T08:55:48.6143930Z ##[debug]   -enableRule:AppOffline
2023-10-19T08:55:48.6144386Z ##[debug]   -enableRule:DoNotDeleteRule
2023-10-19T08:55:48.6144856Z ##[debug]   -enableRule:DoNotDeleteRule
2023-10-19T08:55:48.6147235Z [command]"D:\azurepipeline\ACRM_UT_vsts-agent-win-x64-3.227.2\_work\_tasks\IISWebAppDeploymentOnMachineGroup_1b467810-6725-4b6d-accd-886174c09bba\0.229.0\node_modules\azure-pipelines-tasks-webdeployment-common\MSDeploy3.6\MSDeploy3.6\msdeploy.exe" -verb:sync -source:IisApp='D:\azurepipeline\ACRM_UT_vsts-agent-win-x64-3.227.2\_work\1\s\270\publish' -dest:iisApp='Default Web Site/ACRM_T' -enableRule:AppOffline -enableRule:DoNotDeleteRule
2023-10-19T08:55:48.7556029Z ##[debug]Exit code 3762504530 received from tool 'D:\azurepipeline\ACRM_UT_vsts-agent-win-x64-3.227.2\_work\_tasks\IISWebAppDeploymentOnMachineGroup_1b467810-6725-4b6d-accd-886174c09bba\0.229.0\node_modules\azure-pipelines-tasks-webdeployment-common\MSDeploy3.6\MSDeploy3.6\msdeploy.exe'
2023-10-19T08:55:48.7559094Z ##[debug]Exit code 3762504530 received from tool 'D:\azurepipeline\ACRM_UT_vsts-agent-win-x64-3.227.2\_work\_tasks\IISWebAppDeploymentOnMachineGroup_1b467810-6725-4b6d-accd-886174c09bba\0.229.0\node_modules\azure-pipelines-tasks-webdeployment-common\MSDeploy3.6\MSDeploy3.6\msdeploy.exe'
2023-10-19T08:55:48.7561947Z ##[debug]STDIO streams have closed for tool 'D:\azurepipeline\ACRM_UT_vsts-agent-win-x64-3.227.2\_work\_tasks\IISWebAppDeploymentOnMachineGroup_1b467810-6725-4b6d-accd-886174c09bba\0.229.0\node_modules\azure-pipelines-tasks-webdeployment-common\MSDeploy3.6\MSDeploy3.6\msdeploy.exe'
2023-10-19T08:55:48.7564756Z ##[debug]STDIO streams have closed for tool 'D:\azurepipeline\ACRM_UT_vsts-agent-win-x64-3.227.2\_work\_tasks\IISWebAppDeploymentOnMachineGroup_1b467810-6725-4b6d-accd-886174c09bba\0.229.0\node_modules\azure-pipelines-tasks-webdeployment-common\MSDeploy3.6\MSDeploy3.6\msdeploy.exe'
2023-10-19T08:55:48.7585402Z Error: The process 'D:\azurepipeline\ACRM_UT_vsts-agent-win-x64-3.227.2\_work\_tasks\IISWebAppDeploymentOnMachineGroup_1b467810-6725-4b6d-accd-886174c09bba\0.229.0\node_modules\azure-pipelines-tasks-webdeployment-common\MSDeploy3.6\MSDeploy3.6\msdeploy.exe' failed with exit code 3762504530
2023-10-19T08:55:48.7588258Z     at ExecState._setResult (D:\azurepipeline\ACRM_UT_vsts-agent-win-x64-3.227.2\_work\_tasks\IISWebAppDeploymentOnMachineGroup_1b467810-6725-4b6d-accd-886174c09bba\0.229.0\node_modules\azure-pipelines-task-lib\toolrunner.js:943:25)
2023-10-19T08:55:48.7595365Z     at ExecState.CheckComplete (D:\azurepipeline\ACRM_UT_vsts-agent-win-x64-3.227.2\_work\_tasks\IISWebAppDeploymentOnMachineGroup_1b467810-6725-4b6d-accd-886174c09bba\0.229.0\node_modules\azure-pipelines-task-lib\toolrunner.js:926:18)
2023-10-19T08:55:48.7598941Z     at ChildProcess.<anonymous> (D:\azurepipeline\ACRM_UT_vsts-agent-win-x64-3.227.2\_work\_tasks\IISWebAppDeploymentOnMachineGroup_1b467810-6725-4b6d-accd-886174c09bba\0.229.0\node_modules\azure-pipelines-task-lib\toolrunner.js:839:19)
2023-10-19T08:55:48.7602998Z     at ChildProcess.emit (node:events:513:28)
2023-10-19T08:55:48.7605332Z     at maybeClose (node:internal/child_process:1100:16)
2023-10-19T08:55:48.7605939Z     at Process.ChildProcess._handle.onexit (node:internal/child_process:304:5)
2023-10-19T08:55:48.7606654Z Retrying to deploy the package.
2023-10-19T08:55:48.7607454Z ##[debug]System.DefaultWorkingDirectory=D:\azurepipeline\ACRM_UT_vsts-agent-win-x64-3.227.2\_work\1\s
2023-10-19T08:55:48.7608204Z ##[debug]the argument string is:
2023-10-19T08:55:48.7609376Z ##[debug] -verb:sync -source:IisApp="'D:\azurepipeline\ACRM_UT_vsts-agent-win-x64-3.227.2\_work\1\s\270\publish'" -dest:iisApp="'Default Web Site/ACRM_T'" -enableRule:AppOffline   -enableRule:DoNotDeleteRule
2023-10-19T08:55:48.7610880Z ##[debug]converting the argument string into an array of arguments
2023-10-19T08:55:48.7611449Z ##[debug]the array of arguments is:
2023-10-19T08:55:48.7611897Z ##[debug]arg#0: -verb:sync
2023-10-19T08:55:48.7612643Z ##[debug]arg#1: -source:IisApp='D:\azurepipeline\ACRM_UT_vsts-agent-win-x64-3.227.2\_work\1\s\270\publish'
2023-10-19T08:55:48.7613438Z ##[debug]arg#2: -dest:iisApp='Default Web Site/ACRM_T'
2023-10-19T08:55:48.7613961Z ##[debug]arg#3: -enableRule:AppOffline
2023-10-19T08:55:48.7614432Z ##[debug]arg#4: -enableRule:DoNotDeleteRule
2023-10-19T08:55:48.7614926Z ##[debug]which 'msdeploy'
2023-10-19T08:55:48.7616433Z ##[debug]found: 'D:\azurepipeline\ACRM_UT_vsts-agent-win-x64-3.227.2\_work\_tasks\IISWebAppDeploymentOnMachineGroup_1b467810-6725-4b6d-accd-886174c09bba\0.229.0\node_modules\azure-pipelines-tasks-webdeployment-common\MSDeploy3.6\MSDeploy3.6\msdeploy.exe'
2023-10-19T08:55:48.7619982Z ##[debug]D:\azurepipeline\ACRM_UT_vsts-agent-win-x64-3.227.2\_work\_tasks\IISWebAppDeploymentOnMachineGroup_1b467810-6725-4b6d-accd-886174c09bba\0.229.0\node_modules\azure-pipelines-tasks-webdeployment-common\MSDeploy3.6\MSDeploy3.6\msdeploy.exe arg: ["-verb:sync","-source:IisApp='D:\\azurepipeline\\ACRM_UT_vsts-agent-win-x64-3.227.2\\_work\\1\\s\\270\\publish'","-dest:iisApp='Default Web Site/ACRM_T'","-enableRule:AppOffline","-enableRule:DoNotDeleteRule"]
2023-10-19T08:55:48.7624653Z ##[debug]D:\azurepipeline\ACRM_UT_vsts-agent-win-x64-3.227.2\_work\_tasks\IISWebAppDeploymentOnMachineGroup_1b467810-6725-4b6d-accd-886174c09bba\0.229.0\node_modules\azure-pipelines-tasks-webdeployment-common\MSDeploy3.6\MSDeploy3.6\msdeploy.exe arg: ["-verb:sync","-source:IisApp='D:\\azurepipeline\\ACRM_UT_vsts-agent-win-x64-3.227.2\\_work\\1\\s\\270\\publish'","-dest:iisApp='Default Web Site/ACRM_T'","-enableRule:AppOffline","-enableRule:DoNotDeleteRule"]
2023-10-19T08:55:48.7628295Z ##[debug]exec tool: D:\azurepipeline\ACRM_UT_vsts-agent-win-x64-3.227.2\_work\_tasks\IISWebAppDeploymentOnMachineGroup_1b467810-6725-4b6d-accd-886174c09bba\0.229.0\node_modules\azure-pipelines-tasks-webdeployment-common\MSDeploy3.6\MSDeploy3.6\msdeploy.exe
2023-10-19T08:55:48.7630980Z ##[debug]exec tool: D:\azurepipeline\ACRM_UT_vsts-agent-win-x64-3.227.2\_work\_tasks\IISWebAppDeploymentOnMachineGroup_1b467810-6725-4b6d-accd-886174c09bba\0.229.0\node_modules\azure-pipelines-tasks-webdeployment-common\MSDeploy3.6\MSDeploy3.6\msdeploy.exe
2023-10-19T08:55:48.7632417Z ##[debug]arguments:
2023-10-19T08:55:48.7632686Z ##[debug]arguments:
2023-10-19T08:55:48.7633157Z ##[debug]   -verb:sync
2023-10-19T08:55:48.7633444Z ##[debug]   -verb:sync
2023-10-19T08:55:48.7634256Z ##[debug]   -source:IisApp='D:\azurepipeline\ACRM_UT_vsts-agent-win-x64-3.227.2\_work\1\s\270\publish'
2023-10-19T08:55:48.7635519Z ##[debug]   -source:IisApp='D:\azurepipeline\ACRM_UT_vsts-agent-win-x64-3.227.2\_work\1\s\270\publish'
2023-10-19T08:55:48.7636189Z ##[debug]   -dest:iisApp='Default Web Site/ACRM_T'
2023-10-19T08:55:48.7636656Z ##[debug]   -dest:iisApp='Default Web Site/ACRM_T'
2023-10-19T08:55:48.7637064Z ##[debug]   -enableRule:AppOffline
2023-10-19T08:55:48.7637574Z ##[debug]   -enableRule:AppOffline
2023-10-19T08:55:48.7637923Z ##[debug]   -enableRule:DoNotDeleteRule
2023-10-19T08:55:48.7638293Z ##[debug]   -enableRule:DoNotDeleteRule
2023-10-19T08:55:48.7640645Z [command]"D:\azurepipeline\ACRM_UT_vsts-agent-win-x64-3.227.2\_work\_tasks\IISWebAppDeploymentOnMachineGroup_1b467810-6725-4b6d-accd-886174c09bba\0.229.0\node_modules\azure-pipelines-tasks-webdeployment-common\MSDeploy3.6\MSDeploy3.6\msdeploy.exe" -verb:sync -source:IisApp='D:\azurepipeline\ACRM_UT_vsts-agent-win-x64-3.227.2\_work\1\s\270\publish' -dest:iisApp='Default Web Site/ACRM_T' -enableRule:AppOffline -enableRule:DoNotDeleteRule
2023-10-19T08:55:48.8379256Z ##[debug]Exit code 3762504530 received from tool 'D:\azurepipeline\ACRM_UT_vsts-agent-win-x64-3.227.2\_work\_tasks\IISWebAppDeploymentOnMachineGroup_1b467810-6725-4b6d-accd-886174c09bba\0.229.0\node_modules\azure-pipelines-tasks-webdeployment-common\MSDeploy3.6\MSDeploy3.6\msdeploy.exe'
2023-10-19T08:55:48.8383119Z ##[debug]Exit code 3762504530 received from tool 'D:\azurepipeline\ACRM_UT_vsts-agent-win-x64-3.227.2\_work\_tasks\IISWebAppDeploymentOnMachineGroup_1b467810-6725-4b6d-accd-886174c09bba\0.229.0\node_modules\azure-pipelines-tasks-webdeployment-common\MSDeploy3.6\MSDeploy3.6\msdeploy.exe'
2023-10-19T08:55:48.8386286Z ##[debug]STDIO streams have closed for tool 'D:\azurepipeline\ACRM_UT_vsts-agent-win-x64-3.227.2\_work\_tasks\IISWebAppDeploymentOnMachineGroup_1b467810-6725-4b6d-accd-886174c09bba\0.229.0\node_modules\azure-pipelines-tasks-webdeployment-common\MSDeploy3.6\MSDeploy3.6\msdeploy.exe'
2023-10-19T08:55:48.8389046Z ##[debug]STDIO streams have closed for tool 'D:\azurepipeline\ACRM_UT_vsts-agent-win-x64-3.227.2\_work\_tasks\IISWebAppDeploymentOnMachineGroup_1b467810-6725-4b6d-accd-886174c09bba\0.229.0\node_modules\azure-pipelines-tasks-webdeployment-common\MSDeploy3.6\MSDeploy3.6\msdeploy.exe'
2023-10-19T08:55:48.8392202Z Error: The process 'D:\azurepipeline\ACRM_UT_vsts-agent-win-x64-3.227.2\_work\_tasks\IISWebAppDeploymentOnMachineGroup_1b467810-6725-4b6d-accd-886174c09bba\0.229.0\node_modules\azure-pipelines-tasks-webdeployment-common\MSDeploy3.6\MSDeploy3.6\msdeploy.exe' failed with exit code 3762504530
2023-10-19T08:55:48.8394811Z     at ExecState._setResult (D:\azurepipeline\ACRM_UT_vsts-agent-win-x64-3.227.2\_work\_tasks\IISWebAppDeploymentOnMachineGroup_1b467810-6725-4b6d-accd-886174c09bba\0.229.0\node_modules\azure-pipelines-task-lib\toolrunner.js:943:25)
2023-10-19T08:55:48.8397040Z     at ExecState.CheckComplete (D:\azurepipeline\ACRM_UT_vsts-agent-win-x64-3.227.2\_work\_tasks\IISWebAppDeploymentOnMachineGroup_1b467810-6725-4b6d-accd-886174c09bba\0.229.0\node_modules\azure-pipelines-task-lib\toolrunner.js:926:18)
2023-10-19T08:55:48.8399236Z     at ChildProcess.<anonymous> (D:\azurepipeline\ACRM_UT_vsts-agent-win-x64-3.227.2\_work\_tasks\IISWebAppDeploymentOnMachineGroup_1b467810-6725-4b6d-accd-886174c09bba\0.229.0\node_modules\azure-pipelines-task-lib\toolrunner.js:839:19)
2023-10-19T08:55:48.8400490Z     at ChildProcess.emit (node:events:513:28)
2023-10-19T08:55:48.8400873Z     at maybeClose (node:internal/child_process:1100:16)
2023-10-19T08:55:48.8401366Z     at Process.ChildProcess._handle.onexit (node:internal/child_process:304:5)
2023-10-19T08:55:48.8401824Z Retrying to deploy the package.
2023-10-19T08:55:48.8402546Z ##[debug]System.DefaultWorkingDirectory=D:\azurepipeline\ACRM_UT_vsts-agent-win-x64-3.227.2\_work\1\s
2023-10-19T08:55:48.8403429Z ##[debug]the argument string is:
2023-10-19T08:55:48.8404749Z ##[debug] -verb:sync -source:IisApp="'D:\azurepipeline\ACRM_UT_vsts-agent-win-x64-3.227.2\_work\1\s\270\publish'" -dest:iisApp="'Default Web Site/ACRM_T'" -enableRule:AppOffline   -enableRule:DoNotDeleteRule
2023-10-19T08:55:48.8406002Z ##[debug]converting the argument string into an array of arguments
2023-10-19T08:55:48.8406576Z ##[debug]the array of arguments is:
2023-10-19T08:55:48.8406969Z ##[debug]arg#0: -verb:sync
2023-10-19T08:55:48.8407599Z ##[debug]arg#1: -source:IisApp='D:\azurepipeline\ACRM_UT_vsts-agent-win-x64-3.227.2\_work\1\s\270\publish'
2023-10-19T08:55:48.8408832Z ##[debug]arg#2: -dest:iisApp='Default Web Site/ACRM_T'
2023-10-19T08:55:48.8409311Z ##[debug]arg#3: -enableRule:AppOffline
2023-10-19T08:55:48.8409735Z ##[debug]arg#4: -enableRule:DoNotDeleteRule
2023-10-19T08:55:48.8410174Z ##[debug]which 'msdeploy'
2023-10-19T08:55:48.8411505Z ##[debug]found: 'D:\azurepipeline\ACRM_UT_vsts-agent-win-x64-3.227.2\_work\_tasks\IISWebAppDeploymentOnMachineGroup_1b467810-6725-4b6d-accd-886174c09bba\0.229.0\node_modules\azure-pipelines-tasks-webdeployment-common\MSDeploy3.6\MSDeploy3.6\msdeploy.exe'
2023-10-19T08:55:48.8414836Z ##[debug]D:\azurepipeline\ACRM_UT_vsts-agent-win-x64-3.227.2\_work\_tasks\IISWebAppDeploymentOnMachineGroup_1b467810-6725-4b6d-accd-886174c09bba\0.229.0\node_modules\azure-pipelines-tasks-webdeployment-common\MSDeploy3.6\MSDeploy3.6\msdeploy.exe arg: ["-verb:sync","-source:IisApp='D:\\azurepipeline\\ACRM_UT_vsts-agent-win-x64-3.227.2\\_work\\1\\s\\270\\publish'","-dest:iisApp='Default Web Site/ACRM_T'","-enableRule:AppOffline","-enableRule:DoNotDeleteRule"]
2023-10-19T08:55:48.8419975Z ##[debug]D:\azurepipeline\ACRM_UT_vsts-agent-win-x64-3.227.2\_work\_tasks\IISWebAppDeploymentOnMachineGroup_1b467810-6725-4b6d-accd-886174c09bba\0.229.0\node_modules\azure-pipelines-tasks-webdeployment-common\MSDeploy3.6\MSDeploy3.6\msdeploy.exe arg: ["-verb:sync","-source:IisApp='D:\\azurepipeline\\ACRM_UT_vsts-agent-win-x64-3.227.2\\_work\\1\\s\\270\\publish'","-dest:iisApp='Default Web Site/ACRM_T'","-enableRule:AppOffline","-enableRule:DoNotDeleteRule"]
2023-10-19T08:55:48.8423604Z ##[debug]exec tool: D:\azurepipeline\ACRM_UT_vsts-agent-win-x64-3.227.2\_work\_tasks\IISWebAppDeploymentOnMachineGroup_1b467810-6725-4b6d-accd-886174c09bba\0.229.0\node_modules\azure-pipelines-tasks-webdeployment-common\MSDeploy3.6\MSDeploy3.6\msdeploy.exe
2023-10-19T08:55:48.8426454Z ##[debug]exec tool: D:\azurepipeline\ACRM_UT_vsts-agent-win-x64-3.227.2\_work\_tasks\IISWebAppDeploymentOnMachineGroup_1b467810-6725-4b6d-accd-886174c09bba\0.229.0\node_modules\azure-pipelines-tasks-webdeployment-common\MSDeploy3.6\MSDeploy3.6\msdeploy.exe
2023-10-19T08:55:48.8428287Z ##[debug]arguments:
2023-10-19T08:55:48.8428769Z ##[debug]arguments:
2023-10-19T08:55:48.8429389Z ##[debug]   -verb:sync
2023-10-19T08:55:48.8429759Z ##[debug]   -verb:sync
2023-10-19T08:55:48.8430291Z ##[debug]   -source:IisApp='D:\azurepipeline\ACRM_UT_vsts-agent-win-x64-3.227.2\_work\1\s\270\publish'
2023-10-19T08:55:48.8431227Z ##[debug]   -source:IisApp='D:\azurepipeline\ACRM_UT_vsts-agent-win-x64-3.227.2\_work\1\s\270\publish'
2023-10-19T08:55:48.8431935Z ##[debug]   -dest:iisApp='Default Web Site/ACRM_T'
2023-10-19T08:55:48.8432424Z ##[debug]   -dest:iisApp='Default Web Site/ACRM_T'
2023-10-19T08:55:48.8433156Z ##[debug]   -enableRule:AppOffline
2023-10-19T08:55:48.8433581Z ##[debug]   -enableRule:AppOffline
2023-10-19T08:55:48.8433988Z ##[debug]   -enableRule:DoNotDeleteRule
2023-10-19T08:55:48.8434559Z ##[debug]   -enableRule:DoNotDeleteRule
2023-10-19T08:55:48.8437334Z [command]"D:\azurepipeline\ACRM_UT_vsts-agent-win-x64-3.227.2\_work\_tasks\IISWebAppDeploymentOnMachineGroup_1b467810-6725-4b6d-accd-886174c09bba\0.229.0\node_modules\azure-pipelines-tasks-webdeployment-common\MSDeploy3.6\MSDeploy3.6\msdeploy.exe" -verb:sync -source:IisApp='D:\azurepipeline\ACRM_UT_vsts-agent-win-x64-3.227.2\_work\1\s\270\publish' -dest:iisApp='Default Web Site/ACRM_T' -enableRule:AppOffline -enableRule:DoNotDeleteRule
2023-10-19T08:55:48.9521539Z ##[debug]Exit code 3762504530 received from tool 'D:\azurepipeline\ACRM_UT_vsts-agent-win-x64-3.227.2\_work\_tasks\IISWebAppDeploymentOnMachineGroup_1b467810-6725-4b6d-accd-886174c09bba\0.229.0\node_modules\azure-pipelines-tasks-webdeployment-common\MSDeploy3.6\MSDeploy3.6\msdeploy.exe'
2023-10-19T08:55:48.9526109Z ##[debug]Exit code 3762504530 received from tool 'D:\azurepipeline\ACRM_UT_vsts-agent-win-x64-3.227.2\_work\_tasks\IISWebAppDeploymentOnMachineGroup_1b467810-6725-4b6d-accd-886174c09bba\0.229.0\node_modules\azure-pipelines-tasks-webdeployment-common\MSDeploy3.6\MSDeploy3.6\msdeploy.exe'
2023-10-19T08:55:48.9529325Z ##[debug]STDIO streams have closed for tool 'D:\azurepipeline\ACRM_UT_vsts-agent-win-x64-3.227.2\_work\_tasks\IISWebAppDeploymentOnMachineGroup_1b467810-6725-4b6d-accd-886174c09bba\0.229.0\node_modules\azure-pipelines-tasks-webdeployment-common\MSDeploy3.6\MSDeploy3.6\msdeploy.exe'
2023-10-19T08:55:48.9532584Z ##[debug]STDIO streams have closed for tool 'D:\azurepipeline\ACRM_UT_vsts-agent-win-x64-3.227.2\_work\_tasks\IISWebAppDeploymentOnMachineGroup_1b467810-6725-4b6d-accd-886174c09bba\0.229.0\node_modules\azure-pipelines-tasks-webdeployment-common\MSDeploy3.6\MSDeploy3.6\msdeploy.exe'
2023-10-19T08:55:48.9537643Z ##[error]Failed to deploy web package to IIS website.
2023-10-19T08:55:48.9539488Z ##[debug]Processed: ##vso[task.issue type=error;]Failed to deploy web package to IIS website.
2023-10-19T08:55:48.9540315Z ##[debug]{}
2023-10-19T08:55:48.9546237Z ##[debug]System.DefaultWorkingDirectory=D:\azurepipeline\ACRM_UT_vsts-agent-win-x64-3.227.2\_work\1\s
2023-10-19T08:55:48.9547567Z ##[error]

   無法列印例外狀況字串,因為 Exception.ToString() 失敗。

2023-10-19T08:55:48.9548549Z ##[debug]Processed: ##vso[task.issue type=error;]

   無法列印例外狀況字串,因為 Exception.ToString() 失敗。

2023-10-19T08:55:48.9553604Z ##[debug]rm -rf D:\azurepipeline\ACRM_UT_vsts-agent-win-x64-3.227.2\_work\1\s\error.txt
2023-10-19T08:55:48.9554705Z ##[debug]removing file D:\azurepipeline\ACRM_UT_vsts-agent-win-x64-3.227.2\_work\1\s\error.txt
2023-10-19T08:55:48.9842613Z ##[debug]task result: Failed
2023-10-19T08:55:48.9846922Z ##[error]Error: The process 'D:\azurepipeline\ACRM_UT_vsts-agent-win-x64-3.227.2\_work\_tasks\IISWebAppDeploymentOnMachineGroup_1b467810-6725-4b6d-accd-886174c09bba\0.229.0\node_modules\azure-pipelines-tasks-webdeployment-common\MSDeploy3.6\MSDeploy3.6\msdeploy.exe' failed with exit code 3762504530
2023-10-19T08:55:48.9850714Z ##[debug]Processed: ##vso[task.issue type=error;]Error: The process 'D:\azurepipeline\ACRM_UT_vsts-agent-win-x64-3.227.2\_work\_tasks\IISWebAppDeploymentOnMachineGroup_1b467810-6725-4b6d-accd-886174c09bba\0.229.0\node_modules\azure-pipelines-tasks-webdeployment-common\MSDeploy3.6\MSDeploy3.6\msdeploy.exe' failed with exit code 3762504530
2023-10-19T08:55:48.9859482Z ##[debug]Processed: ##vso[task.complete result=Failed;]Error: The process 'D:\azurepipeline\ACRM_UT_vsts-agent-win-x64-3.227.2\_work\_tasks\IISWebAppDeploymentOnMachineGroup_1b467810-6725-4b6d-accd-886174c09bba\0.229.0\node_modules\azure-pipelines-tasks-webdeployment-common\MSDeploy3.6\MSDeploy3.6\msdeploy.exe' failed with exit code 3762504530
2023-10-19T08:55:48.9972862Z ##[section]Finishing: IISWebAppDeploymentOnMachineGroup
@DmitriiBobreshev
Copy link
Contributor

Hi @samnchiu, thanks for the feedback and detailed investigation! Have you tried to move the ms-deploy folder from the failed path to another location (with the shorter path), did it work?

@samnchiu
Copy link
Author

Hi @DmitriiBobreshev ,

I have experimented with moving it from the failed path to a shorter one, and it indeed works fine. Therefore, I believe it's indeed a path length limit issue. However, I haven't specifically tested to determine the exact length that exceeds the limit.

@DmitriiBobreshev
Copy link
Contributor

Hi @samnchiu, it seems like the problem is mostly related to the task/msdeploy, was can't do much from the agent's side. Please create the ticket on gh in the task repository.
I am closing this issue, please feel free to reopen it,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants