-
Notifications
You must be signed in to change notification settings - Fork 27.4k
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
Error: EMFILE: too many open files #52646
Comments
We cannot recreate the issue with the provided information. Please add a reproduction in order for us to be able to investigate. Why was this issue marked with the
|
Sorry for English. The same is happening in my project. It does the build and deploy process normally in vercel, but when I try to access the login page, the same error happens. When I run it on my local machine, it works normally. I'm using Prisma with next-auth. My repository link: https://github.com/Tamicktom/hammertail Feel free to use my project to recreate the error. |
Sorry for bad English I solved the problem in my project. In my case the trigger was phosphor-icons/react. Nextjs was having trouble importing the icons (not sure). I solved it by adding a setting to next.config as shown in a comment of a phosphor-icons/react issue on the same subject: phosphor-icons/react#45 (comment) Which is strange, as this problem is only happening when placing the project in vercel. |
Thank you @Tamicktom, |
This closed issue has been automatically locked because it had no new activity for 2 weeks. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Verify canary release
Provide environment information
Which area(s) of Next.js are affected? (leave empty if unsure)
Middleware / Edge (API routes, runtime)
Link to the code that reproduces this issue or a replay of the bug
Unfortunately, it's a private repo, and I can't provide a replay as it's a server error, but will do my best to describe it.
To Reproduce
Honestly, I'm not sure how to reproduce it.
Describe the Bug
Error message: "EMFILE: too many open files"
When does it happen:
It happens when the browser sends a "HEAD" request to our product page, and results in 500 Server Error in the browser.
Possible Cause:
I think it happens because Headless UI imports all its files every time a single component is used.
How can I fix this? Is there a way to maximize the number of allowed open files in the server?
Expected Behavior
The server error not to happen
Which browser are you using? (if relevant)
No response
How are you deploying your application? (if relevant)
Vercel
The text was updated successfully, but these errors were encountered: