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
500 Internal Sever Error: Error: EMFILE: Too many open files, scandir 'directory' at Error (Native) #354
Comments
Any chance you can think of a way to test this that doesn't amount to running the server for 3+ days to see if it happens again? 😄 Also, what operating system and/or hosting are you using for running http-server? |
It happens consistently after 3 days uptime. Currently I'm squashing it with a scheduled reboot. Running on Ubuntu 16.04, no hosting, local OS. |
Glad it's consistent at least! However, I'm not in a place to run the script for 3 days to see if it happens. 😃 We need to find a way to "force" it to break. Is it load? Is it memory? Is it time? Just need help narrowing it down to something fixable. |
I'll see if I can get any more diagnosis info if I encounter it again. Need to isolate a unit for testing. |
I'm running into this same issue too. Host OS - Win10, Client - Chrome. I'm serving several mp4 video. It doesn't take me 3 days to get into error, only takes several hours of streaming. |
I never solved this with http-server. I'd suggest running a dedicated Node.js server for your purpose. That's what I ended up doing. |
This issue has been inactive for 180 days |
Without reasonable reproducibility, and since there's been no activity for years, I'm going to close this. Please do re-open if a way to reproduce (ideally within a test) is found! |
Hi,
After about three days of uptime I've run into this error. http-server is serving some videos to one client instance of Google Chrome.
A quick Google shows people have fixed by using graceful-fs.
Also worth noting, I am serving about 10-15 video files here and that's it.
Any ideas?
The text was updated successfully, but these errors were encountered: