Trying to deploy my django web app on azure but keep getting a space error during the deployment process

Mark Kaave 0 Reputation points
2024-06-14T08:06:20.9766667+00:00

Copying files to destination directory '/tmp/_preCompressedDestinationDir'... rsync: [generator] recv_generator: mkdir "/tmp/_preCompressedDestinationDir/antenv/lib/python3.11/site-packages/openai/cli/_api/chat/pycache" failed: No space left on device (28) *** Skipping any contents from this failed directory *** im trying to deploy but im getting this errror now

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,913 questions
{count} votes

1 answer

Sort by: Most helpful
  1. ajkuma 26,721 Reputation points Microsoft Employee
    2024-07-04T07:24:01.7833333+00:00

    Mark Kaave, Apologies for the delayed response.

    Typically, the error - [28] No space left on device means that the temporary host disk space is full.

    To provide some background, the additional space within a container used for writing files alongside the read-only image layers is known as the writable layer. If your application generates logs or creates files within the container's disk, or if you deploy multiple custom containers using various base images and layers, it can lead to filling up the temporary disk space. This could impact both the current container and any other containers hosted within the same App Service Plan (ASP).

    To identify this, try the following steps:

    • You may SSH into the web app and run df -h to check the Available space under /
    • The home storage will be mounted under /home

    If you haven't done this already, try the following steps to isolate the issue:

    • If your application is a small SKU, scale up ASP
    • Avoid writing outside of /home or custom Mounted storage.
    • Reducing image size if a smaller base image can be used
    • Leverage multi-stage builds

    Ref: Azure App Service on Linux FAQ


    If the answer helped (pointed, you in the right direction) > please click Accept Answer - it will benefit community members to find the answers quickly. 

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.