Home > Net >  How to debug the Python Azure function Error : [Errno 28] No space left on device?
How to debug the Python Azure function Error : [Errno 28] No space left on device?

Time:05-27

I have a Python Azure function which normally do the etl process. My function also includes the downloading of files from API to Temp directory and Uploading the files to container. I am getting the following error [Errno 28] No space left on device, I had tried to check every possible place since it is a space issue, I think i have enough space in my storage account and also i had restarted my func-app to clear out my temp directory.

CodePudding user response:

Microsoft-hosted agents provide 10 GB of storage for your source and build outputs- here.

If your source code and build outputs are larger than 10GB, I recommend using the Self Hosted Agent to complete your build. You can try emptying the cache with the below command once to see if that helps with the python storage issue. --> pip install --no-cache-dir tensorflow-gpu.

The maximum data per session for Azure Functions is 5GB. Even if your storage account allows for unlimited data, the Azure function will be unable to manage large amounts of data. As a result, this error is most likely caused by a function.

As a temporary fix, you can scale up your app service plan and the again scale down to original and it has to clean space and start working.

Further refer ref1,ref2 for more information.

CodePudding user response:

Azure Functions have a limit of 5GB data per session max. So even if your storage account can take unlimited data, azure function will not be to handle such huge data at a time. So most probably this error comes from function itself.

  • Related