emcrisostomo / fswatch

A cross-platform file change monitor with multiple backends: Apple OS X File System Events, *BSD kqueue, Solaris/Illumos File Events Notification, Linux inotify, Microsoft Windows and a stat()-based backend.
https://emcrisostomo.github.io/fswatch/
GNU General Public License v3.0
5.04k stars 328 forks source link

"inotify_add_watch: No space left on device" error when using "event" param #232

Closed unoexperto closed 3 years ago

unoexperto commented 5 years ago

Could you please suggest right way to filter by event types ?

I've tried this

sudo fswatch --event Updated -xr -d /home/expert/

By default on my Ubuntu MATE 19.04 (kernel 5.0.0-25-generic) I get errors

inotify_add_watch: No space left on device
inotify_add_watch: No space left on device
inotify_add_watch: No space left on device
inotify_add_watch: No space left on device
inotify_add_watch: No space left on device
inotify_add_watch: No space left on device
inotify_add_watch: No space left on device
inotify_add_watch: No space left on device

So I checked output of cat /proc/sys/fs/inotify/max_user_watches and it's 8192. I changed it via sudo sysctl fs.inotify.max_user_watches=1048576 but fswatch seems to hang now. But after long long wait exits with

Event queue overflow.
Status code: 1

Please advise, @emcrisostomo

I believe we can link this ticket to #153.

rualark commented 4 years ago

I also have this error on Ubuntu: inotify_add_watch: No space left on device

emcrisostomo commented 3 years ago

I'm not able to reproduce it.