azure-pipelines-tasks: Azure App Service Deploy fails with error message

Troubleshooting

I’ve gone through all log files and don’t see a single error in them, the deploy actually still works, but, this task is failing with:

2019-01-30T15:58:19.1785372Z ##[section]Starting: Azure App Service Deploy: edge-component-explorer
2019-01-30T15:58:19.1789089Z ==============================================================================
2019-01-30T15:58:19.1789147Z Task         : Azure App Service Deploy
2019-01-30T15:58:19.1789224Z Description  : Update Azure App Services on Windows, Web App on Linux with built-in images or Docker containers, ASP.NET, .NET Core, PHP, Python or Node.js based Web applications, Function Apps on Windows or Linux with Docker Containers, Mobile Apps, API applications, Web Jobs using Web Deploy / Kudu REST APIs
2019-01-30T15:58:19.1789300Z Version      : 4.3.19
2019-01-30T15:58:19.1789336Z Author       : Microsoft Corporation
2019-01-30T15:58:19.1789385Z Help         : [More information](https://aka.ms/azurermwebdeployreadme)
2019-01-30T15:58:19.1789440Z ==============================================================================
2019-01-30T15:58:20.0072935Z Got service connection details for Azure App Service:'edge-component-explorer'
2019-01-30T15:58:21.8481651Z Package deployment using ZIP Deploy initiated.
2019-01-30T15:58:54.6873659Z Fetching changes.
2019-01-30T15:58:55.3642391Z Cleaning up temp folders from previous zip deployments and extracting pushed zip file /tmp/zipdeploy/45f7qib6.zip (74.59 MB) to /tmp/zipdeploy/extracted
2019-01-30T15:58:55.3642828Z An unknown error has occurred. Check the diagnostic log for details.
2019-01-30T15:58:55.3743631Z ##[error]Failed to deploy web package to App Service.
2019-01-30T15:58:55.3760545Z ##[error]Error: Package deployment using ZIP Deploy failed. Refer logs for more details.

Environment

  • Server - Azure Pipelines or TFS on-premises?

    • If using TFS on-premises, provide the version:

    • If using Azure Pipelines, provide the account name, team project name, build definition name/build number: account name: edgewebui, project name: Edge Web UI, build def name/number: "Edge Component Explorer - Deploy

  • Agent - Hosted or Private:

    • If using Hosted agent, provide agent queue name:

    • If using private agent, provide the OS of the machine running the agent and the agent version: Ubuntu

Issue Description

[Include task name(s), screenshots and any other relevant details] Azure App Service Deploy - This uses Private build agents, running Ubuntu and MacOS. I’ve had this task in both the Build and Release pipeline and I get the same error. In build, I am using a YAML file. On Release it’s not an option so I’m using Visual Designer. I’ve looked at every log file on the Azure Web App (Linux) instance both the staging slot and production. I don’t see any clues why this error is happening. The application runs Node 10.10 with Express server and the OS has AAD turned on for Microsoft.

screen shot 2019-01-30 at 9 06 11 am

Task logs

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

Error logs

The weird part is I don’t see any errors in the error logs. [Insert error from the logs here for a quick overview]

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 5
  • Comments: 17 (1 by maintainers)

Most upvoted comments

Was this issue solved?

@awentzel , this error is thrown from Azure Layer. Please follow up here.

Do you have a fix for this issue

do we have any workaround this…

Issue persists

I had the same issue with this. after that changing the deployment command package directory which is read from the build file folder path. After giving the correct path deployment was successful for me.