Linux limits the number of inotify watches a user can receive.

  • To increase the limit, edit etc/sysctl.conf to add the following line.
    fs.inotify.max_user_watches = 524288
  • Run the following command.
    $ sudo sysctl -w fs.inotify.max_user_watches=524288