Python Add Watch (LiveReload) No Such File or Directory

August 20, 2018

I am using livereload and bump into the following error

add_watch: cannot watch WD=-1, Errno=No such file or directory (ENOENT)

Check watch limit (default should be 8192)

cat /proc/sys/fs/inotify/max_user_watches

Increase watch limit

sudo sysctl fs.inotify.max_user_watches=16384

Permanently increase watch limit

echo 16384 | sudo tee -a /proc/sys/fs/inotify/max_user_watches


This work is licensed under a
Creative Commons Attribution-NonCommercial 4.0 International License.