Azure Devops: Pipeline fails to deploy to Linux Web App

I have a pipeline deploying to my Azure web app, that most of the times errors out because it couldn't deploy to my web app. The task take around 25 mins :
Copying file: 'frontend/.gitignore'
Copying file: 'frontend/README.md'
Copying file: 'frontend/package.json'
Copying file: 'frontend/tsconfig.json'
Copying file: 'frontend/yarn.lock'
Omitting next output lines...
An unknown error has occurred. Check the diagnostic log for details.
Failed to deploy web package to App Service.
##[error]Failed to deploy web package to App Service.
####[error]Error: Package deployment using ZIP Deploy failed. Refer logs for more details.
##[error]Error: Package deployment using ZIP Deploy failed. Refer logs for more details.
This task fails only in specific slot in myweb app , authors slots and production slot works fine and the job take around 6 mins
Any ideas what could be wrong?
This the configuration of job :
when enable system.debug=true
[GET]https://XXXXXXXXXXXXXXXXXXXXXXXXXXXXscm.azurewebsites.net:443/api/deployments/latest?deployer=VSTS_ZIP_DEPLOY&time=2021-07-12_10-05-37Z
POLL URL RESULT: {"statusCode":202,"statusMessage":"Accepted","headers":{"transfer-encoding":"chunked","content-type":"application/json; charset=utf-8","location":"http://XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXscm.azurewebsites.net:80/api/deployments/latest?deployer=VSTS_ZIP_DEPLOY&time=2021-07-12_10-05-37Z","server":"Kestrel","date":"Mon, 12 Jul 2021 10:14:09 GMT","connection":"close"},"body":{"id":"ad8c2517191a47cb9a73c95a8ec3a85a","status":0,"status_text":"Building and Deploying 'ad8c2517191a47cb9a73c95a8ec3a85a'.","author_email":"N/A","author":"N/A","deployer":"VSTS_ZIP_DEPLOY","message":"Created via a push deployment","progress":"Running deployment command...","received_time":"2021-07-12T10:05:45.7023392Z","start_time":"2021-07-12T10:05:47.0935168Z","end_time":null,"last_success_end_time":null,"complete":false,"active":false,"is_temp":false,"is_readonly":true,"url":null,"log_url":null,"site_name":"XXXXXXXXXXXXXXXXXXXXXXXX"}}
Deployment status: 0 'Building and Deploying 'ad8c2517191a47cb9a73c95a8ec3a85a'.'. retry after 5 seconds
this output appears many time , after 25 mins , the job failed ( with the same output)
i i add a screenshot of configuration
@Youssef CHTOUROU Thanks for the details. Were you able to find anything from the diagnostic logs on your App Service? Which SKU is your App Service on Linux running on? Could you please try running your pipeline in debug mode?
already add system.debug , how i can access to diagnsotic logs ? becaus i search and i didn't find
@Youssef CHTOUROU Please refer to this article for information on working with diagnostic logs: Enable diagnostics logging for apps in Azure App Service
i enable logs, but i cann't see anythink
When i open the log file of deployment :
[{"log_time":"2021-07-12T10:30:48.6362415Z","id":"379a3b13-53a4-4a0c-bb08-2596a032e42c","message":"Deployment failed.","type":2,"details_url":null}]
@BhargaviAnnadevara-MSFT , please help me
@Youssef CHTOUROU Thanks for checking. I'm looking into this and will get back to you with my findings.
let me know if you need more details
@BhargaviAnnadevara-MSFT , i downgrade the version of task :
i see this log
encountered request timedout issue in Kudu. Retrying again
@Youssef CHTOUROU Thanks for your patience. Please check my response below.
Sign in to comment
1 answer
Sort by: Most helpful
@Youssef CHTOUROU I tried to setup a Linux App Service on Standard S1 pricing tier enabling 5 (max) slots with CI/CD configured via Azure Pipelines. Unfortunately, I wasn't able to reproduce the same error as yours despite multiple different trials.
I'd request you to please try the following:
Kudu Sync failed
in the deployment log resembles this open issue from about a year ago: ZipDelpoy on azure web app linux fails during kudu sync #2972.Please check the trace/deployment log files on kudu at
https://<appname>.scm.azurewebsites.net/api/vfs/LogFiles/kudu/trace
or/deployment
or from Kudu's DebugConsole (/LogFiles/kudu/*) and check if this is caused by deployment lock failures. In that case, check this wiki out for dealing with locked files during deployment.This should help us narrow down the issue further, whether it is caused in the App service/deployment method, or the ADO pipeline/task.
This would indirectly restart your SCM sites as well.
If the above workarounds don't help, you could check on the following:
TakeAppOfflineFlag
,DeploymentType
orRenameFilesFlag
to streamline your deployment.Hope this helps. Do let us know if the issue persists.
----------
If an answer is helpful, please "Accept answer" and/or "Up-Vote" which might help other community members reading this thread.
Sign in to comment
Activity