Deploy to Azure Web App - "There is not enough space on the disk"

Nick Gotsy 0 Reputation points
2023-10-28T19:20:19.7833333+00:00

I'm trying to deploy my react app for the first time via GitHub Actions, however, I get the following error in the "Deploy to Azure Web App" phase:

Package deployment using ZIP Deploy initiated. Fetching changes. Cleaning up temp folders from previous zip deployments and extracting pushed zip file C:\local\Temp\zipdeploy\z0e1gika.zip (191.73 MB) to C:\local\Temp\zipdeploy\extracted There is not enough space on the disk.\r\n Error: Failed to deploy web package to App Service. Error: Deployment Failed, Package deployment using ZIP Deploy failed. Refer logs for more details.

In the "Download Artifact From Build Job" phase, I get a warning that there are over 40,000 files and that I should archive unnecessary files. I have a strong suspicion it is due to this - if so, I'm not sure how I can go about identifying and removing unnecessary files.

I also checked the max storage of my app through AzurePortal, which under File System Storage states that I have a 1 GiB threshold. It seems like even with such a large amount of artifacts, it should still be able to handle it, so I'm not sure what's going on.

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

1 answer

Sort by: Most helpful
  1. SnehaAgrawal-MSFT 22,261 Reputation points
    2024-01-23T14:39:10.4866667+00:00

    If you are still facing an issue with deploying your react app via GitHub Actions to Azure Web App. To elaborate- The error message you received indicates that there is not enough space on the disk. One possible reason for this error could be the large size of your deployment package. As you mentioned, you received a warning that there are over 40,000 files and that you should archive unnecessary files. This could be an indication that your deployment package is too large and contains unnecessary files.

    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.