Deploy App Service gives Insufficient Storage issue

sayam sanghvi 20 Reputation points
2024-03-29T12:01:16.0666667+00:00

Hello all, Whenever I try to deploy my App Service using App Service Build Service I get an error saying that there is no disk space left. I have tried clearing the wwwsite and the wwwrepository through the kudu and even after that I receive the below error. I think there is some cache that needs to be cleared but not sure where would I find that cache folder. Below is what I receive from the Deployment Logs.

npm ERR! code ENOSPC
npm ERR! syscall open
npm ERR! path /home/.npm/_cacache/tmp/70273f15
npm ERR! errno -28
npm ERR! nospc ENOSPC: no space left on device, open '/home/.npm/_cacache/tmp/70273f15'
npm ERR! nospc There appears to be insufficient space on your system to finish.
npm ERR! nospc Clear up some disk space and try again.

npm ERR! A complete log of this run can be found in: /home/.npm/_logs/2024-03-29T07_40_41_979Z-debug-0.log
npm ERR! code ENOSPC\nnpm ERR! syscall open\nnpm ERR! path /home/.npm/_cacache/tmp/70273f15\nnpm ERR! errno -28\nnpm ERR! nospc ENOSPC: no space left on device, open '/home/.npm/_cacache/tmp/70273f15'\nnpm ERR! nospc There appears to be insufficient space on your system to finish.\nnpm ERR! nospc Clear up some disk space and try again.\n\nnpm ERR! A complete log of this run can be found in: /home/.npm/_logs/2024-03-29T07_40_41_979Z-debug-0.log\n/bin/bash -c "oryx build /home/site/repository -o /home/site/wwwroot --platform nodejs --platform-version 18 -p virtualenv_name= --log-file /tmp/build-debug.log  -i /tmp/8dc4fc37d2b8619 -p compress_node_modules=tar-gz | tee /tmp/oryx-build.log ; exit $PIPESTATUS "
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,970 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Andriy Bilous 11,821 Reputation points MVP Volunteer Moderator
    2024-03-29T21:49:53.43+00:00

    Hello sayam sanghvi

    I believe you are using Azure App Service Linux.
    Error ENOSPC: no space left on device means that no temporary space left on the App Service Plan, this is different from what you pay for storage, this is a temporary disk space limited to containers size/files created inside a container, not persistance storage. Review Troubleshooting No space left on device.

    Actions

    • Use App Service Diagnostics blade in Azure Portal and review for Linux - Host Disk Space Usage section.
    • Scale up to get more space No space left on device issues Error Error: ENOSPC: no space left on device close Reason No temporary space left on the App Service Plan, this is different from what you pay for storage, this is a temporary disk space limited to containers size/files created inside a container, not persistance storage. Review Troubleshooting No space left on device. Actions Use App Service Diagnostics blade in Azure Portal and review for Linux - Host Disk Space Usage section. Scale up to get more space

    Also review Linux - Host Disk Space Usage

    https://azureossd.github.io/2023/02/09/troubleshooting-nodejs-deployments-on-appservice-linux/

    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.