Ubuntu – inotify_add_watch — failed: “No space left on device”

boot-partitiondisk-usagepartitioningsnap

I am facing a problem about "no space left on device" as shown in the Figure below.

enter image description here

I am relatively a newbie and don't know much about linux. I am using Ubuntu 18.04. Checking out various blogs about my problem such as this one (which suggests that I should increase my drive size) and this one (which is quite similar to my problem) also highlights the same problem but does not specify any solution.

Can you please help any solution? Thank you so much for your attention.

PS: I have also taken screen shot of df -h as shown below enter image description here

Best Answer

The error message doesn't actually refer to the amount of storage space, but to the amount of inotify watches that are available for a given file system (see also here: https://github.com/guard/listen/wiki/Increasing-the-amount-of-inotify-watchers).

The quick solution (taken from the above website) would be to run

echo fs.inotify.max_user_watches=65536 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p

Regards, Florian