Azure / Azure/azure-functions-core-tools
Unable to publish function: "There is not enough space on the disk"
- Dominant language
- C#
- Stars
- 1.5k
- Forks
- 498
- Avg merge
- 4d 20h
- Merged PRs (30d)
- 14
Description
I noticed that there's a [closed issue](https://github.com/Azure/azure-functions-core-tools/issues/1984) related to the "There is not enough space on the disk" issue when deploying a function app (in a **_consumption_** plan), however, I can see that there is space available tho as you can see in the image below:

It's worth mentioning that the artifacts size after uncompressed is `333MB`.
```
Cleaning up temp folders from previous zip deployments and extracting pushed zip file C:\local\Temp\zipdeploy\mviyhejg.zip (90.04 MB) to C:\local\Temp\zipdeploy\extracted
There is not enough space on the disk.\r\n
```
So I guess the space this error is referring to is the `local` folder because you can see that the `home` folder is almost free.
What is the recommendation, do I need to clean up that folder manually? I'm asking because this error is very annoying and it does not happen all the time, it usually works if I retry it again after some minutes.
Another thing worth mentioning is that it seems it happens when there are several func apps being deployed.
Contributor guide
Research direction
The report names no source file or test. Start by reproducing a zip deployment of a consumption-plan function app, especially several deployments at once, and inspect the zipdeploy extraction step shown in the log. Done means identifying whether local temporary storage is exhausted and documenting or implementing a reliable resolution for the intermittent failure.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure
- Domain
- cli, cloud
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100