Host Node Disk Full - ENOSPC Preventing Node.js Server Startup

Posted by reclxss in bugs.

Hi, I’m having a storage issue on my Node.js server that appears to be caused by the host node, not my container. My server cannot create basic folders such as: /home/container/.npm /home/container/node modules The startup log shows: mkdir: cannot create directory '/home/container/.npm': No space left on device mkdir: cannot create directory '/home/container/node modules': No space left on device npm error code ENOSPC npm error nospc There appears to be insufficient space on your system I also checked the filesystem and it reports: /dev/sda1 393G 373G 0 100% /home/container This is preventing npm from installing required packages such as discord.js, dotenv, and express, so the application cannot start. I have already recreated the server once and encountered the same issue again. This is not caused by my application files, as the container itself is unable to create new directories due to the host filesystem having 0 bytes available. Can anyone help me fix this issue?

Wispbyte Community Forum