question

AbdelkrimBrussels avatar image
0 Votes"
AbdelkrimBrussels asked ·

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

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://docs.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://docs.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-webapps
· 2
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@AbdelkrimBrussels, can you email us at AzCommunity[at]microsoft[dot]com ATTN: Ryan so we can work more closely with you on your issue.

1 Vote 1 · ·

@AbdelkrimBrussels, could you provide the configuration files that were missing?

0 Votes 0 · ·

1 Answer

AbdelkrimBrussels avatar image
1 Vote"
AbdelkrimBrussels answered ·

Dear @ryanchill

I have corrected the issue. here is the answer on the stackoverflow ticket:

https://stackoverflow.com/questions/59373884/azure-container-generates-error-503-reason-site-unavailable


the case is closed

thank you for the support,

Abdelkrim

· Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.