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

If there are too many files open, EMFILE errors will flood the terminal #238

Closed
uhidontkno opened this issue May 12, 2024 · 2 comments
Closed

Comments

@uhidontkno
Copy link

uhidontkno commented May 12, 2024

While I was trying to get started with Next.js, I was hit with EMFILE, or the "too many open files" error in Linux my terminal gets FLOODED with these errors in less than 2 seconds:

 Watchpack Error (watcher): Error: EMFILE: too many open files, watch '/home/rare/Desktop/projects/nextjs_starter/nextjs-dashboard'
Watchpack Error (watcher): Error: EMFILE: too many open files, watch '/home/rare/Desktop/projects/nextjs_starter'
Watchpack Error (watcher): Error: EMFILE: too many open files, watch '/home/rare/Desktop/projects'
Watchpack Error (watcher): Error: EMFILE: too many open files, watch '/home/rare/Desktop'
Watchpack Error (watcher): Error: EMFILE: too many open files, watch '/home/rare'
Watchpack Error (watcher): Error: EMFILE: too many open files, watch '/home'

Like it was essentially making an infinite loop of these errors.

@uhidontkno
Copy link
Author

Note: my laptop has the infamous issue of EMFILE all the time, while most servers do a decently good job at handling this, it seemed like Watchpack didn't and just decided to spam try and watch the directory and all the parent directories also

@alexander-akait
Copy link
Member

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

2 participants