Azure DevOps : Failed to deploy web package to App Service. Site Unavailable (CODE: 503)

Abdelkrim 106 Reputation points
2019-12-11T20:55:06.633+00:00

to whom it may concern,

running a pipeline that deploys a piece of code written in python on the Linux Azure Web App.

Everything worked well until 2 days ago (9 Dec 2019).

Question

how can I circumvent the issue?

The error during the "jobs in run" process on dev.azure.com

----------

Errors occur :

Starting: - Azure App Service Deploy

==============================

Task : Azure App Service deploy

Description : Deploy to Azure App Service a web, mobile, or API app using Docker, Java, .NET, .NET Core, Node.js, PHP, Python, or Ruby

Version : 4.157.9

Author : Microsoft Corporation

Help : https://learn.microsoft.com/azure/devops/pipelines/tasks/deploy/azure-rm-web-app-deployment

Got service connection details for Azure App Service:''

Package deployment using ZIP Deploy initiated.

  • [error]Failed to deploy web package to App Service.
  • [error]Error: Error: Failed to deploy web package to App Service. Site Unavailable (CODE: 503)
  • [warning]Error: Failed to update deployment history. Error: Site Unavailable (CODE: 503)

App Service Application URL: https://.azurewebsites.net

Finishing: - Azure App Service Deploy

----------

Install Python 3.6.4 x64 Extension fails

2019-12-11T11:30:20.0782773Z ##[section]Starting: Install Python 3.6.4 x64 Extension

2019-12-11T11:30:20.2442789Z ====================================

2019-12-11T11:30:20.2443018Z Task : Azure App Service manage

2019-12-11T11:30:20.2443107Z Description : Start, stop, restart, slot swap, slot delete, install site extensions or enable continuous monitoring for an Azure App Service

2019-12-11T11:30:20.2443178Z Version : 0.2.62

2019-12-11T11:30:20.2443241Z Author : Microsoft Corporation

2019-12-11T11:30:20.2443328Z Help : https://learn.microsoft.com/azure/devops/pipelines/tasks/deploy/azure-app-service-manage

2019-12-11T11:30:20.2443415Z ======================================================

2019-12-11T11:30:27.0589243Z Successfully updated deployment History at https://metricsfortwikey-beta.scm.azurewebsites.net/api/deployments/161576063826227

2019-12-11T11:30:27.0665885Z ##[error]Error: Failed to get site extensions. Error: Not Found (CODE: 404)

2019-12-11T11:30:27.0729446Z ##[section]Finishing: Install Python 3.6.4 x64 Extension

rsync: close failed on "/home/site/wwwroot/.antenv.tar.gz.YgSK5f": Input/output error (5)

Copying files to destination directory '/home/site/wwwroot'...

rsync: close failed on "/home/site/wwwroot/.antenv.tar.gz.YgSK5f": Input/output error (5)

rsync error: error in file IO (code 11) at receiver.c(859) [receiver=3.1.2]

rsync: close failed on "/home/site/wwwroot/.antenv.tar.gz.YgSK5f": Input/output error (5)\nrsync
error: error in file IO (code 11) at receiver.c(859) [receiver=3.1.2]\n/opt/Kudu/Scripts/starter.sh oryx build /tmp/zipdeploy/extracted -o /home/site/wwwroot --platform python --platform-version 3.7 -i /tmp/8d77e97a7434dc6 -p compress_virtualenv=tar-gz -p virtualenv_name=antenv --log-file /tmp/build-debug.log

  • [error]Failed to deploy web package to App Service.
  • [error]Error: Package deployment using ZIP Deploy failed. Refer logs for more details.
  • [warning]Error: Failed to update deployment history. Error: Bad Request (CODE: 400)

App Service Application URL: https://.azurewebsites.net

Finishing: - Azure App Service Deploy

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,944 questions
{count} votes

0 additional answers

Sort by: Most helpful