Cannot create temp file for here-document: No space left on device


View the space by running df -ah or df -i

//Check for this line
overflow          1.0M  1.0M     0 100% /tmp

It the /tmp is showing as 100%, it could be causing an issue. If your “/tmp” mount on a linux filesystem is mounted as overflow (often sized at 1MB), this is likely due to you not specifying “/tmp” as its own partition and your root filesystem filled up and “/tmp” was remounted as a fallback. To fix this after you’ve cleared space, just unmount the fallback and it should remount at its original point:

sudo umount tmp or sudo umount overflow

if you get device is busy... error, you can run following command:

sudo umount -l overflow


Done!