Linux

Consider increasing /proc/sys/fs/inotify/max_user_watches

CHOMAN 2021. 6. 18. 17:02

ERROR LOG

Jun 18 11:55:49 T systemd: Started Live Syncing (Mirror) Daemon.
Jun 18 11:55:49 T lsyncd: 11:55:49 Error: Terminating since out of inotify watches.
Jun 18 11:55:49 T lsyncd: Consider increasing /proc/sys/fs/inotify/max_user_watches
Jun 18 11:55:49 T lsyncd: 11:55:49 Normal: --- Startup ---
Jun 18 11:55:49 T systemd: lsyncd.service: main process exited, code=exited, status=255/n/a
Jun 18 11:55:49 T systemd: Unit lsyncd.service entered failed state.
Jun 18 11:55:49 T systemd: lsyncd.service failed.

Inotify Limit 확인

cat /proc/sys/fs/inotify/max_user_watches
8192

/etc/sysctl.conf

fs.inotify.max_user_watches=99999

sysctl -p (적용)