user3918443
user3918443

Reputation: 131

Error: Error: Failed to deploy web package to App Service. Bad Request (CODE: 400)

I am using the Devops release pipeline to deploy new releases to my function apps.

However a few days ago, the release pipeline stopped working and I continue to receive the following error message on deployments:

Error: Error: Failed to deploy web package to App Service. Bad Request (CODE: 400)

After digging in the kudu stack trace, I find the following:

Error occurred, type: error, text: No space left on device

However, when I look at my quota usage on the app service plan that hosts my function apps, I have not even exceeded 1% of my quota. I am on a basic app service plan that provides 10gb of storage and my function apps combined have used 50mib.

I am reaching out to see if anyone else has/is currently experiencing this issue and what they did to resolve it.

Many Thanks!

Adam

Upvotes: 4

Views: 13931

Answers (3)

maccevedor
maccevedor

Reputation: 165

I had the same problem, I connected with ssh to app service and run:

$ df -h

enter image description here

and scale up (App service plan)(be careful the server IP can change)

enter image description here

enter image description here

And after run the pipeline, Its run Correctly, if you wish you can return to the previous plan.

Upvotes: 1

user3918443
user3918443

Reputation: 131

If anyone encounters this issue in the future this may resolve your problem.

I believe the problem with deployments may have been caused by a corrupt function app in the app service plan. I noticed that the function app I recently added had been categorised as a container although I never specified it as such. Anyway, deleting that function app and recreating it resolved the issue. All deployments to that app service plan are now working fine!

Upvotes: 1

Jane Ma-MSFT
Jane Ma-MSFT

Reputation: 5242

Some advice for trouble shooting:

  1. You can use the Kudu service to see the size of all the files on the Azure. This way you can further check your storage. Go to Azure portal -> Your_APP_Service -> development tool -> advanced tool to access Kudu service and download the extension. You can click this blog for detailed information.

enter image description here

  1. The issue may be that your source code and output are too large. In this case, try using a self-hosted agent and clear the cache.

  2. The reason for the issue may also be that the packages uploaded at one time are too large, which leads to the shortage of temporary files. Click on the link to see if you have exceeded the temporary file limit.

Upvotes: 2

Related Questions