Permanent fix to tail: cannot watch `log/development.log': No space left on device

Normz picture Normz · Mar 30, 2012 · Viewed 10.8k times · Source

I've been using Ubuntu 11.10 for a little over a week now. But after some time I encountered this error(the one in the title) when Im trying to access the log in my RoR project. I found a fix which is by pasting this in the terminal:

sudo sysctl -w fs.inotify.max_user_watches=16384

The problem is I have to do this again and again everyday. Does anyone know how I can execute this at startup? Or does anyone know any permanent solution? thanks much!!!

Answer

atroutt picture atroutt · Jul 11, 2012

I started having this problem with tailing. I think it is because I am also running dropbox on this machine.

My fix is what dropbox suggests:

 echo 900000 | sudo tee /proc/sys/fs/inotify/max_user_watches