Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve wiki on "Increasing the amount of inotify watchers" #473

Closed
AxelTheGerman opened this issue Mar 15, 2020 · 4 comments · Fixed by #522
Closed

Improve wiki on "Increasing the amount of inotify watchers" #473

AxelTheGerman opened this issue Mar 15, 2020 · 4 comments · Fixed by #522

Comments

@AxelTheGerman
Copy link

Hi,
I used Rails for years but now switched to Linux and for the first time ran into the issue of

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.

Thanks for having great documentation, however I was wondering if we should improve it.

It says for ArchLinux to write the new config to /etc/sysctl.d/40-max-user-watches.conf but on my machine I already had /etc/sysctl.d/50-max_user_watches.conf present which continued to overwrite the new limit I was trying to set.

Maybe we should add a note to check the /etc/sysctl.d/ directory for other config files that would overwrite the setting again? Maybe even add this grep command to check the users existing configuration:

$ grep -H -s "fs.inotify.max_user_watches" /etc/sysctl.d/*
/etc/sysctl.d/50-max_user_watches.conf:fs.inotify.max_user_watches=524288

Thanks!

@AxelTheGerman AxelTheGerman changed the title Improve wiki on increasing the amount of inotify watchers Improve wiki on "Increasing the amount of inotify watchers" Mar 15, 2020
@ColinDKelley
Copy link
Collaborator

@AxelTheGerman
Those sound like good improvements to make to the docs. Can you make a PR?

@seandunn
Copy link

Just to note that the error message given in the terminal currently directs anyone hitting this issue to the main README which doesn't include any information on dealing with it.

@ColinDKelley
Copy link
Collaborator

Oops, before deleting the wiki, I meant to copy the references from wiki into the README.

@seandunn How does this look?

#521

@seandunn
Copy link

seandunn commented Dec 1, 2020

That's perfect, thanks @ColinDKelley.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants