Errno=No space left on device (ENOSPC)
bertalanimre opened this issue · 1 comments
I'm watching /var/www/html folder which contains 2 laravel projects.
[Watcher brings me hundreds of lines similar to this:
2017-10-19 08:54:02,971 pyinotify ERROR] add_watch: cannot watch /var/www/html/hu.myproject/database WD=-1, Errno=No space left on device (ENOSPC)
df -h output
Filesystem Size Used Avail Use% Mounted on
/dev/xvda1 32G 5.0G 25G 17% /
devtmpfs 884M 0 884M 0% /dev
tmpfs 903M 0 903M 0% /dev/shm
tmpfs 903M 8.3M 895M 1% /run
tmpfs 903M 0 903M 0% /sys/fs/cgroup
tmpfs 181M 0 181M 0% /run/user/1000
tmpfs 181M 0 181M 0% /run/user/1001
Any ideas or somebody encountered this already?
Turns out inotify couldn't handle the amount of files and therefore reported a false error. The sollution is in this ticket:
Troubleshooting
If inotify is reporting that it can't create watches due to lack of disk space, but you have plenty of disk space and inodes available, then you may have to raise the max number of inotify watches.
To check the max number of inotify watches:
cat /proc/sys/fs/inotify/max_user_watches
To set the max number of inotify watches:
echo 20000 | sudo tee -a /proc/sys/fs/inotify/max_user_watches