listen: Not listening to file changes, Ubuntu 14.04
Not sure exactly what is going on, but I am pretty sure my problems started after upgrading to Ubuntu 14.04 (from 13.10).
Short description: Guard does not react to any file changes at all.
Longer description: My exact setup used to work on ubuntu 13.10. After upgrading no file changes are registered with Guard and Listen.
I have tried the following:
- Using this branch: https://github.com/guard/listen/pull/215
- Downgrading Guard and Listen to previous minor version
- Using master branch of both Guard and Listen
When running guard with bundle exec guard start --force-polling it listens as expected (but with polling of course).
I have tried to run with --debug but nothing odd shows up.
I am using Ruby 2.1.1 installed with rbenv.
About this issue
- Original URL
- State: closed
- Created 10 years ago
- Comments: 21 (10 by maintainers)
I got a simple solution,
Run this cammand in your Ubuntu 14.04 terminal
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
https://github.com/guard/listen/wiki/Increasing-the-amount-of-inotify-watchers
That is all.