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

Could not watch folder: too many open files #38

Open
yianni-ververis opened this issue Jun 1, 2019 · 5 comments
Open

Could not watch folder: too many open files #38

yianni-ververis opened this issue Jun 1, 2019 · 5 comments

Comments

@yianni-ververis
Copy link

I get this error

Could not watch folder: too many open files

@yianni-ververis
Copy link
Author

can you add -ignore flag?

@divanvisagie
Copy link

I had this same issue, tracked it down to the fact that I had a node_modules folder in the folder I was watching.

With node_modules:
Screenshot 2019-06-07 at 11 18 02

Without node_modules
Screenshot 2019-06-07 at 11 17 35

I think adding an option to ignore folders would be great or maybe even read off of .gitignore ?

@yianni-ververis
Copy link
Author

exactly!! I have to remove the node_modules, watcher and then npm install & npm audit fix again

@TobyWilkes
Copy link

Suggested fix here #41

@vonhraban
Copy link

vonhraban commented Sep 18, 2019

I have the same issue, blaming in on the vendor directory.

$ find vendor/ -type f | wc -l
    2423

Which does not even seem like that many files

$ ulimit
unlimited

I am not sure .gitignore solution will work since git ignored files may have an impact on how the application is run. I would suggest instead to have .watchignore file or something, that would contain glob patterns for those folder/files that do not need to be watched

Edit Checked the source code, vendor directory is excluded anyways. I do not know then what this is related to, I have 7 watchers running at the same time but the number of files is no way close to the limit; besides it works for others on the same repositories

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

No branches or pull requests

4 participants