-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
[1.4.2.1] Error: ENFILE: file table overflow #8057
Comments
I was getting the same, after an upgrade to macOS Sierra. Turns out, macOS have a harsh limit on number of open files. I ran this, from here:
|
@johanbrook Thanks! Solved! |
I'm glad this is solving it for everyone. Unfortunately, Apple sets ridiculously low limits by default which might be good for some users, but is awful for developers. For what it's worth, I would recommend setting the limit much much higher than 65536 ( Additionally, I would recommend using a method that doesn't modify I have outlined a method which I believe works reliably from OS X 10.4 to 10.12 (current) in this Gist |
There is anyone ever checked how many files that meteor build would open / watch ? why do we need such this high number like .. 524,288, It's actually very unusual to me. |
If I upgraded meteor app to 1.4.2.3, this issue doesn't exist. This is only for 1.4.2.1 on OS X 10.12. This issue doesn't exist with 1.3.5.x on OS X 10.12. And so I suspect there is something wrong in meteor 1.4.2.1 |
@c9s Meteor needs to be able to detect changes within your project and to do this it needs file watchers. If you have 20000 files in your project, then you need to be able to watch that many files. Of course you probably don't have 524,288 files and therefore Meteor probably doesn't need that many. Unfortunately, the default If you're concerned about such a high number, use something smaller. If you want to monitor it, you should check out Many other tools, such as Facebook's Watchman make similar recommendations (actually, even higher numbers). |
@abernix thank you thank you thank you |
Thanks so much for the excellent instructions. I'm using 10.12.2 followed the instructions precisely, yet ulimit didn't report the number accurately. Instead, I had to manually set it like so:
HTH. Thanks again! |
Having the same issue on MacBook Pro Sierra; Meteor 1.5.2, XCODE 8 But still getting promise_server error .... :-((( App running at: http://localhost:3000/ While running Cordova app for platform iOS with options --emulator: /Users/vinzpro/.meteor/packages/templating-compiler/.1.3.2.1rz7f23++os+web.browser+web.cordova/plugin.compileTemplatesBatch.os/npm/node_modules/meteor/promise/node_modules/meteor-promise/promise_server.js:190 |
@VinZ73 This is a totally different issue because there is no "ENFILE: file table overflow" error in the stack trace you posted. I think that you encountered a bug in the |
in MacOS catalina I'm getting error sysctl: cannot stat /proc/sys/kern/maxfiles: No such file or directory |
@johanbrook Thanks, its work for me on macOS Catalina |
thank you, you save my life 😄😄 |
changing to 524288 did not work for me on a Macbook High Sierra after upgrading application from meteor 1.8.3 to 1.9.3. |
Error is: /Users/username/.meteor/packages/meteor-tool/.1.9.3.4dtuxq.ow2h++os.osx.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.osx.x86_64/dev_bundle/bin/node[63929]: ../src/node_contextify.cc:649:static void node::contextify::ContextifyScript::New(const FunctionCallbackInfov8::Value &): Assertion `args[1]->IsString()' failed. |
Hi, if you are still having issues in new Meteor versions open a new issue. If you change from a version of Meteor to another with Node.js changes maybe you want to remove your node_modules and meteor reset to clean up NPM compiled binaries. |
Every time I try to run meteor I am getting this type of error from different node_modules...
I just updated to 1.4.2.1 never happened with 1.4.2.
The text was updated successfully, but these errors were encountered: