Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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!!!

like image 995
Normz Avatar asked Mar 29 '12 23:03

Normz


2 Answers

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
like image 93
atroutt Avatar answered Oct 13 '22 19:10

atroutt


My issue was fixed. Thanks for everyone who helped!

I placed "fs.inotify.max_user_watches=16384" in /etc/sysctl.conf

like image 20
Normz Avatar answered Oct 13 '22 21:10

Normz