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

Bo Berglund bo.berglund at gmail.com
Tue May 9 08:00:38 UTC 2023


This is on Ubuntu 20.04.6 LTS SERVER (no gui) fully updated.

I suddenly got this message when starting a video editing script I have been
using without problems for a very long time:

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

When I check the drive situation I see this:

$ df -h
Filesystem              Size  Used Avail Use% Mounted on
udev                    6.8G     0  6.8G   0% /dev
tmpfs                   1.4G  3.6M  1.4G   1% /run
/dev/nvme0n1p6           30G   28G     0 100% /   <== WHAT????
...
/dev/nvme0n1p8          259G  215G   31G  88% /home
...

My scripts run on thge home partition which is well below being full.

What can have happened and how can I fix it?

To mee it lokks like / should have 2G free, and also that it should not get into
play since the operations are done on /home

The script is using ffmpeg to extract and re-encode video sections from a
longish video based on start and duration times.
And it has performed flawlessly for ages...

Is there a way to find out why the / drive suddenly is filled up even though the
df -h does not show usage like it would be full?

dir /tmp does not appear to use much:
$ sudo du -c -h -s ./tmp/
112K    ./tmp/
112K    total


-- 
Bo Berglund
Developer in Sweden




More information about the ubuntu-users mailing list