[LINUX] lsyncd falls

(Past correspondence memo) lsyncd may drop with the following error.

Thu May 18 23:11:32 2017 Error: Terminating since out of inotify watches.
Consider increasing /proc/sys/fs/inotify/max_user_watches

There is a Linux feature called inotify that lsyncd uses to monitor directories, It seems that it failed because it exceeded the upper limit of the number of directories that can be monitored.

Check the current setting value

# cat /proc/sys/fs/inotify/max_user_watches
(Maybe the default is 8192)

Change the setting value

# echo 163840 > /proc/sys/fs/inotify/max_user_watches
# cat /proc/sys/fs/inotify/max_user_watches

Set to be reflected when restarting

# vi /etc/sysctl.conf
------------------------------------
fs.inotify.max_user_watches = 163840
------------------------------------

Recommended Posts

lsyncd falls