I have a Ubuntu 16.04 LTS (GNU/Linux 2.6.32-042stab127.2 x86_64) VPS I am getting the following error while running my rails application
FATAL: Listen error: unable to monitor directories for changes. Visit https://github.com/guard/listen/wiki/Increasing-the-amount-of-inotify-watchers for info on how to fix this.
I'm trying to fix that by increasing the watch limit by
$ echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf $ sudo sysctl -p
it is throwing another error as
sysctl: permission denied on key 'fs.inotify.max_user_watches'
I have root access to the server.
Any Help to increase the limit is highly appreciated. Thanks in advance!