Debugging Azure App Service issues
Debugging Azure App Service issues
Conflict (CODE: 409)
When deploying an app to Azure App Service using GitHub Actions, it is possible to encounter the error message Deployment Failed, Error: Failed to deploy web package using OneDeploy to App Service. Conflict (CODE: 409)
(followed by the error Failed to deploy web package to App Service.
).
This can occur when the app is over the resource limits, which can be the case where a previous deployment has failed and left behind files.
To fix this:
- Access the Kudu Debug Console at
https://<your-app-name>.scm.azurewebsites.net/DebugConsole
- Navigate to the
wwwroot
folder usingcd /home/site/wwwroot
- Delete all of the existing contents of
wwwroot
usingrm -rf /home/site/wwwroot/*
- Restart the app via the Azure portal and try redeploying.
This post is licensed under CC BY 4.0 by the author.