tail: cannot watch `messages’: No space left on device

18. February 2015 SysAdmin 0

**Issue**

You are trying to tail -f on a file (/var/log/messages , secure or any text file), the command is throwing the below message and command is also not working

tail: cannot watch `messages': No space left on device

**Solution**

Just edit the sysctl.conf file with vi /etc/sysctl.conf and add/change the below line.

fs.inotify.max_user_watches=16384

Then run,
sysctl -p

The issue is fixed 🙂


Leave a Reply

Your email address will not be published.