Bas Grolleman’s Blog

Place where I put my written thoughts, though I usually just make video’s these days

So, this issue seems to come back on my QNAP when using rsync for backup. It seems to be a bug that returns but the main issue is that the system doesn’t allow enough inotify watches resulting in this error.

Best would be a good fix to avoid needing so much, but since we also want to get stuff done we are cheating our way out, by increasing the maximum.

First check the value on your current box, login as admin with ssh

# cat /proc/sys/fs/inotify/max_user_watches

Nice, but a bit low, you can quickly raise it by updating the file

# echo "655360" > /proc/sys/fs/inotify/max_user_watches
# cat /proc/sys/fs/inotify/max_user_watches

So that’s great, but on reboot it will reset. To make it permanent we will add it to the in the config partition. This example is for the P419+ but you might want to check the wiki about other versions.

# mkdir /tmp/config
# mount -t ext2 /dev/mtdblock5 /tmp/config
# vim /tmp/config/
## This is where you add the above line in a small shellscript
# chmod 755 /tmp/config/
# umount /tmp/config

Now reboot and check if the value remains but repeating the first step.