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]: IIS web app deploy - V0.235.1 - Error: Unrecognized argument '-'. #19853

Open
4 of 7 tasks
richardacre opened this issue May 9, 2024 · 0 comments
Open
4 of 7 tasks

Comments

@richardacre
Copy link

richardacre commented May 9, 2024

New issue checklist

Task name

IIS web app deploy

Task version

0.235.1

Issue Description

Trying to Deploy IIS I'm getting the error in the subject, and I can see the extra dash in the command line that is produced, near "enableRule"

The "XXX" parts of the log/yaml replace only a-zA-Z, no special characters

I'm a bit concerned it seems to be ignoring my inputs, note that the "setparameters" filename is different, and that the additional arguments have single quotes in rather than double

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

Windows Server 2019

Relevant log output

2024-05-09T14:09:16.7293017Z Error: The process 'C:\Program Files\IIS\Microsoft Web Deploy V3\msdeploy.exe' failed with exit code 4294967295
2024-05-09T14:09:16.7293693Z     at ExecState._setResult (C:\azagent\A2\_work\_tasks\IISWebAppDeploymentOnMachineGroup_1b467810-6725-4b6d-accd-886174c09bba\0.235.1\node_modules\azure-pipelines-task-lib\toolrunner.js:1219:25)
2024-05-09T14:09:16.7294237Z     at ExecState.CheckComplete (C:\azagent\A2\_work\_tasks\IISWebAppDeploymentOnMachineGroup_1b467810-6725-4b6d-accd-886174c09bba\0.235.1\node_modules\azure-pipelines-task-lib\toolrunner.js:1202:18)
2024-05-09T14:09:16.7294708Z     at ChildProcess.<anonymous> (C:\azagent\A2\_work\_tasks\IISWebAppDeploymentOnMachineGroup_1b467810-6725-4b6d-accd-886174c09bba\0.235.1\node_modules\azure-pipelines-task-lib\toolrunner.js:1115:19)
2024-05-09T14:09:16.7295052Z     at ChildProcess.emit (node:events:518:28)
2024-05-09T14:09:16.7295280Z     at maybeClose (node:internal/child_process:1105:16)
2024-05-09T14:09:16.7295536Z     at ChildProcess._handle.onexit (node:internal/child_process:305:5)
2024-05-09T14:09:16.7295825Z Retrying to deploy the package.
2024-05-09T14:09:16.7310712Z [command]"C:\Program Files\IIS\Microsoft Web Deploy V3\msdeploy.exe" -verb:sync -source:package='C:\azagent\A2\_work\r1\a\FDSBuild\PartnerSite\FinalDrivesOnlineSystem.zip' -dest:auto -setParam:name='IIS Web Application Name',value='Staging - Xxx Xxx (Xxx)' -enableRule:AppOffline -setParamFile=1715263755516_tempSetParameters.xml - -enableRule:DoNotDeleteRule
2024-05-09T14:09:17.0346861Z 
2024-05-09T14:09:17.0382556Z ##[error]Failed to deploy web package to IIS website.
2024-05-09T14:09:17.0389379Z ##[error]Error: Unrecognized argument '-'.
Error count: 1.

Full task logs with system.debug enabled

 steps:
- task: IISWebAppDeploymentOnMachineGroup@0
  displayName: 'Deploy IIS - Xxx Xxx'
  inputs:
    WebSiteName: 'Staging - Xxx Xxx (Xxx)'
    Package: '$(Agent.ReleaseDirectory)\XxxBuild\XxxSite\Package.zip'
    SetParametersFile: '$(Agent.ReleaseDirectory)\XxxBuild\XxxSite\Xxx.SetParameters.xml'
    TakeAppOfflineFlag: true
    AdditionalArguments: 'name="IIS Web Application Name",value="Staging - Xxx Xxx (Xxx)"' 

Repro steps

No response

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

1 participant