question

KabilanVK-4730 avatar image
0 Votes"
KabilanVK-4730 asked azure-cxp-api edited

Error: Failed to upload file 'site/wwwroot/app_offline.htm from Kudu. Error: Conflict (CODE: 409)

The error comes up suddenly from DevOps while deploying a web app hosted on App Service.

Detailed Error Description:
2020-03-09T13:02:00.7972664Z ##[error]Failed to deploy web package to App Service.
2020-03-09T13:02:00.7981811Z ##[error]Error: Error: Failed to upload file 'site/wwwroot/app_offline.htm from Kudu. Error: Conflict (CODE: 409)
2020-03-09T13:02:01.1753803Z ##[warning]Error: Failed to update deployment history. Error: Internal Server Error (CODE: 500)

azure-webapps
5 |1600 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.

KabilanVK-4730 avatar image
1 Vote"
KabilanVK-4730 answered

The error is because of the app service's ASP is out of quotas.
In my case, its 60GB threshold and 59 GB occupied. I deleted the major consumer app and recreated it and its started working.

4073-app-dev-quotas-microsoft-azure.png



5 |1600 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.

ajkuma-MSFT avatar image
0 Votes"
ajkuma-MSFT answered

@KabilanVK-4730 , Yes, applications hosted in a free or shared App Service plan are subject to usage quotas. If any quota is exceeded the site will be stopped until that quota resets.

Quotas for Free or Shared apps are:
1. CPU(Short): Amount of CPU allowed for this application in a 5-minute interval. This quota resets every five minutes.
2. CPU(Day): Total amount of CPU allowed for this application in a day.

This quota resets every 24 hours at midnight UTC. So, irrespective of the CPU percentage, its 60 minutes/day.
Also, 3. Memory, 4. Bandwidth and 5. Filesystem


Additionally, if you're using Azure DevOps with the v4 version of the Web Deploy tasks it may be defaulting to run from package which puts the wwwroot directory in a read only state. Kindly checkout the documents below which details about the run from package and the V4 version of the task.

Run from package : https://docs.microsoft.com/en-us/azure/azure-functions/run-functions-from-deployment-package

Dev Ops V4 Web Deploy task details : https://docs.microsoft.com/en-us/azure/azure-functions/run-functions-from-deployment-package

By default the task tries to select the appropriate deployment technology given the input package, app service type and agent OS.


Furthermore, please review the document on how to deal with locked files, which could also be the reason for the error code- https://github.com/projectkudu/kudu/wiki/Dealing-with-locked-files-during-deployment#for-msdeploy-try-enabling-app-offline

Thanks for the follow-up & sharing the solution that worked for you. Kindly let us know if you need any further assistance on this topic, we will be more than happy to assist you further.







5 |1600 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.