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 🙂

0 0 votes
Article Rating

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments