SysAdmin

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

JJ
Jobin Joseph · Founder and CEO
·Published 18 February 2015·1 min read

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 🙂

Jobin Joseph
Jobin Joseph, Founder and CEO
5x AWS Certified, ISO 27001:2022 Lead Implementer, 17+ years building cloud infrastructure for regulated industries.
About Jobin →

Reading this because your AWS bill or uptime is a problem?

30 minutes, direct with the founder, no sales pitch: one specific recommendation for your AWS workload.

Book a free 30-minute review
30 min Free Consultation →