microsoft / azure-pipelines-tasks

Tasks for Azure Pipelines
https://aka.ms/tfbuild
MIT License
3.49k stars 2.61k forks source link

Azure App Service deploy started failing with Unrecognized argument 'Files\IIS\Microsoft'. All arguments must begin with "-" #17634

Closed noellelc closed 1 year ago

noellelc commented 1 year ago

Note

Issues in this repo are for tracking bugs, feature requests and questions for the tasks in this repo

For a list:
https://github.com/Microsoft/azure-pipelines-tasks/tree/master/Tasks

If you have an issue or request for the Azure Pipelines service, use developer community instead:

https://developercommunity.visualstudio.com/spaces/21/index.html )

Required Information

Entering this information will route you directly to the right team and expedite traction.

Question, Bug, or Feature?
Type: bug

Enter Task Name: Azure App Service deploy

list here (V# not needed): 4.216.2 https://github.com/Microsoft/azure-pipelines-tasks/tree/master/Tasks

Environment

Issue Description

We are running this task in a release pipeline in Azure DevOps. Last successful run was yesterday on version 4.214.0. It looks like this task just recently started failing, with version 4.216.2. Error message: Unrecognized argument 'Files\IIS\Microsoft'. All arguments must begin with "-".

The argument in question is the command itself: "C:\Program Files\IIS\Microsoft Web Deploy V3\msdeploy.exe"; it looks like it's not honoring the quotations and is parsing this string as individual arguments, hence the callout of "Files\IIS\Microsoft"

image

Task logs

[Enable debug logging and please provide the zip file containing all the logs for a speedy resolution]

Troubleshooting

Checkout how to troubleshoot failures and collect debug logs: https://docs.microsoft.com/en-us/vsts/build-release/actions/troubleshooting

Error logs

[Insert error from the logs here for a quick overview]

eduardocp commented 1 year ago

Same here

tassioFront commented 1 year ago

I just have gotten it too

rafjsouza commented 1 year ago

Same here

guiifva commented 1 year ago

Same here

warlima commented 1 year ago

Same here

AlejandroReinoza commented 1 year ago

Same here

jmendezdd commented 1 year ago

Same here

blogcraft commented 1 year ago

Same...

daniloasfigueiredo commented 1 year ago

Same problem here

paulorpereirasouza commented 1 year ago

Same

hiran-filho commented 1 year ago

The same here

Gustavo-Marques19 commented 1 year ago

The same here

evision-p commented 1 year ago

Same Here

nicolasmohamed commented 1 year ago

Same here

2023-01-20T06:56:34.9567360Z ##[error]Error: Error: Unrecognized argument 'Files\IIS\Microsoft'. All arguments must begin with "-".

penihel commented 1 year ago

Same Here, too 👍

penihel commented 1 year ago

Same, but with this task (ISWebAppDeploymentOnMachineGroup)

See

023-01-20T10:13:08.5909595Z ##[section]Starting: Deploy Landing
2023-01-20T10:13:08.5999780Z ==============================================================================
2023-01-20T10:13:08.5999968Z Task : IIS web app deploy
2023-01-20T10:13:08.6000073Z Description : Deploy a website or web application using Web Deploy
2023-01-20T10:13:08.6000217Z Version : 0.216.0
2023-01-20T10:13:08.6000311Z Author : Microsoft Corporation
2023-01-20T10:13:08.6000419Z Help : https://docs.microsoft.com/azure/devops/pipelines/tasks/deploy/iis-web-app-deployment-on-machine-group
2023-01-20T10:13:08.6000683Z ==============================================================================

...
...
...

2023-01-20T10:13:09.4155735Z [command]“C:\Program Files\IIS\Microsoft Web Deploy V3\msdeploy.exe” -verb:sync -source:package=‘C:\azagent\A1_work\r1\a\temp_web_package_4560503770922759.zip’ -dest:contentPath=‘my-site.net.br’ -skip:Directory=App_Data
2023-01-20T10:13:09.4811053Z ##[error]Failed to deploy web package to IIS website.
2023-01-20T10:13:09.4818865Z ##[error]Error: Unrecognized argument ‘Files\IIS\Microsoft’. All arguments must begin with “-”.
Error count: 1.

2023-01-20T10:13:09.4967700Z ##[error]Error: The process ‘C:\Program Files\IIS\Microsoft Web Deploy V3\msdeploy.exe’ failed with exit code 4294967295
leonardosimoura commented 1 year ago

Same error with ISWebAppDeploymentOnMachineGroup here

vmapetr commented 1 year ago

@noellelc Thank you for reporting this issue. We are investigating it now.

rfulgencio3 commented 1 year ago

Same problem

felipefialho commented 1 year ago

Is there any provision for normalization? It is impacting all deploys

rodrigofudissaku commented 1 year ago

Is there any workaround to this issue?

tassioFront commented 1 year ago

workaround: change App Deploy App Service task version. I've changed it to version 3 instead of 4.

ericklodion commented 1 year ago

Same here

jopnine commented 1 year ago

workaround: change App Deploy App Service task version. I've changed it to version 3 instead of 4.

Where do i change App Deploy App Service version ? I mean.. the path.

ericklodion commented 1 year ago

workaround: change App Deploy App Service task version. I've changed it to version 3 instead of 4.

Where do i change App Deploy App Service version ? I mean.. the path.

rfulgencio3 commented 1 year ago

workaround: change App Deploy App Service task version. I've changed it to version 3 instead of 4.

Where do i change App Deploy App Service version ? I mean.. the path.

I think this can help you: Go to Releases > select the project > Edit > under the envinronment click in 'jobs, taks' > click in Deploy Azure App Service > in 'Task version' select 3.*

ericklodion commented 1 year ago

workaround: change App Deploy App Service task version. I've changed it to version 3 instead of 4.

Where do i change App Deploy App Service version ? I mean.. the path.

I think this can help you: Go to Releases > select the project > Edit > under the envinronment click in 'jobs, taks' > click in Deploy Azure App Service > in 'Task version' select 3.*

NOTE: I try this but this not made effect for my deploy

Really ? for me it works fine ...

jopnine commented 1 year ago

I see, in my case i made small confusion. Im using "IIS web app deploy" instead of "Azure App Service"

nicolasmohamed commented 1 year ago

downgrade from Azure App Service Deploy 4. to 3. seems to work

Rafael-Cassiano commented 1 year ago

Same problem, even returning to 3.* is not working

Some help ?

marcopaivaa commented 1 year ago

downgrade from Azure App Service Deploy 4. to 3. seems to work

is there any way to downgrade to a minor version (like 4.215.2) instead of changing from 4 to 3 with yaml?

rafjsouza commented 1 year ago

Any solutions for IISWebAppDeploymentOnMachineGroup task? Our pipeline is not working because of that error

felipeagrela commented 1 year ago

Same here in IISWebAppDeploymentOnMachineGroup...

gabriel-alves-ivoryit commented 1 year ago

Same here! Currently unable to release new versions of my applications.

I see that past executions of my release pipeline were using version 0.215.0 of the "IIS web app deploy" task. The failing one mentions version 0.216.0. That is what i see in the execution logs In the portal, though, the only task version option available is 0.*. It is obviously unchanged.

The error is the exact one as other people's around here:

##[error]Error: Unrecognized argument 'Files\IIS\Microsoft'. All arguments must begin with "-".

Rafael-Cassiano commented 1 year ago

Working with version 4. After leaving BUILD Image: windows-2019 and DEPLOY Image: windows-2022

danton721 commented 1 year ago

Quick workaround was to rollback task to version 0.215.0.

In a self-hosted agent I did the following steps:

Inside agent directory: ./_work/_tasks/IISWebAppDeploymentOnMachineGroup[...]

  1. Make sure that you have this directory: "0.215.0" (older versions might also work)
  2. Delete content of directory "0.216.0" (I would recommend backing up)
  3. Copy the contents of directory "0.215.0" inside "0.216.0"

This temporary solution did work for me with "IIS web app deploy" with a self-hosted agent

felipeagrela commented 1 year ago

Same here in IISWebAppDeploymentOnMachineGroup...

It comes work again... Seems that the problem version is not available anymore...

Problem Version: 0.216.0 Working Version: 0.215.0

vmapetr commented 1 year ago

We have reverted the affected tasks to previous versions in ADO, while we working on hotfixes:

Sorry for the inconvenience.

JuliusFraga commented 1 year ago

We have reverted the affected tasks to previous versions in ADO, while we working on hotfixes:

  • AzureRmWebAppDeployment - 4.216.2 -> 4.214.0
  • IISWebAppDeploymentOnMachineGroup -0.216.0 -> 0.215.0

Sorry for the inconvenience.

Working fine now, thanks @vmapetr

penihel commented 1 year ago

How can i force to use 0.215.0 ?

My Azure Agent continue downloading the 0.216.0 version

sfrsm commented 1 year ago

The same problem here. I don't have the version 0.215.0 in my server. How can I dowloand this version of the agent?

felipeagrela commented 1 year ago

How can i force to use 0.215.0 ?

My Azure Agent continue downloading the 0.216.0 version

Are you running a new pipeline or re-running the same build?

felipeagrela commented 1 year ago

The same problem here. I don't have the version 0.215.0 in my server. How can I dowloand this version of the agent?

Are you running a new pipeline or re-running the same build?

sfrsm commented 1 year ago

The same problem here. I don't have the version 0.215.0 in my server. How can I dowloand this version of the agent?

Are you running a new pipeline or re-running the same build?

A new pipeline.

felipeagrela commented 1 year ago

The same problem here. I don't have the version 0.215.0 in my server. How can I dowloand this version of the agent?

Are you running a new pipeline or re-running the same build?

A new pipeline.

Try delete your task folder that has 0.216 version...

sfrsm commented 1 year ago

The same problem here. I don't have the version 0.215.0 in my server. How can I dowloand this version of the agent?

Are you running a new pipeline or re-running the same build?

A new pipeline.

Try delete your task folder that has 0.216 version...

It still download the version 0.216.

felipeagrela commented 1 year ago

The same problem here. I don't have the version 0.215.0 in my server. How can I dowloand this version of the agent?

Are you running a new pipeline or re-running the same build?

A new pipeline.

Try delete your task folder that has 0.216 version...

It still download the version 0.216.

Its on premise server agent or cloud server?

sfrsm commented 1 year ago

The same problem here. I don't have the version 0.215.0 in my server. How can I dowloand this version of the agent?

Are you running a new pipeline or re-running the same build?

A new pipeline.

Try delete your task folder that has 0.216 version...

It still download the version 0.216.

Its on premise server agent or cloud server?

Its on premise server.

jopnine commented 1 year ago

Managed to make it work by unistalling ms deploy v3 from my Windows.

jopnine commented 1 year ago

Managed to make it work by unistalling ms deploy v3 from my Windows.

image

After unistalling it, everything went fine.