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

Error: ENFILE: file table overflow on MacOS Sierra #1938

Closed
gsc-dev opened this issue Mar 5, 2017 · 5 comments
Closed

Error: ENFILE: file table overflow on MacOS Sierra #1938

gsc-dev opened this issue Mar 5, 2017 · 5 comments

Comments

@gsc-dev
Copy link

gsc-dev commented Mar 5, 2017

For bugs, please fill out the three following sections completely. Failure to provide
this information may result in your ticket being closed without comments.

Are you looking for support for installation/getting started with Reaction? Please go
to our Gitter channel instead.

Expected behavior

Reaction starts successfully after fresh instalation

Actual Behavior

Reaction failing:

$ sudo npm install -g reaction-cli
$ reaction init
$ cd reaction
$ reaction
TypeError: Invalid Version: null

Using settings file at settings/dev.settings.json

Setting up plugin imports...

Setting up style imports...

[[[[[ ~/code/reaction ]]]]]

=> Started proxy.
=> Meteor 1.4.3.1 is available. Update this project with 'meteor update'.
=> Started MongoDB.
cfs:gridfs: updating npm dependencies -- mongodb, gridfs-stream...
/Users/ronaldo.pontes/.meteor/packages/meteor-tool/.1.4.2_7.1euozxw++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/fibers/future.js:280
						throw(ex);
						^

Error: ENFILE: file table overflow, scandir '/Users/ronaldo.pontes/code/reaction/.meteor/local/.build431100.build'
    at Error (native)
    at Object.fs.readdirSync (fs.js:808:18)
    at rmkidsSync (/Users/ronaldo.pontes/.meteor/packages/meteor-tool/.1.4.2_7.1euozxw++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/rimraf/rimraf.js:329:11)
    at rmdirSync (/Users/ronaldo.pontes/.meteor/packages/meteor-tool/.1.4.2_7.1euozxw++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/rimraf/rimraf.js:322:7)
    at Function.rimrafSync [as sync] (/Users/ronaldo.pontes/.meteor/packages/meteor-tool/.1.4.2_7.1euozxw++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/rimraf/rimraf.js:293:9)
    at Object.rm_recursive (/tools/fs/files.js:283:12)
    at Builder.abort (/tools/isobuild/builder.js:696:11)
    at /tools/isobuild/bundler.js:2538:13
    at /tools/isobuild/bundler.js:2827:22
    at /tools/utils/buildmessage.js:271:13
    at [object Object].withValue (/tools/utils/fiber-helpers.js:89:14)
    at /tools/utils/buildmessage.js:264:29
    at [object Object].withValue (/tools/utils/fiber-helpers.js:89:14)
    at /tools/utils/buildmessage.js:262:18
    at [object Object].withValue (/tools/utils/fiber-helpers.js:89:14)
    at /tools/utils/buildmessage.js:253:23
    at [object Object].withValue (/tools/utils/fiber-helpers.js:89:14)
    at Object.capture (/tools/utils/buildmessage.js:252:19)
    at bundle (/tools/isobuild/bundler.js:2660:31)
    at /tools/isobuild/bundler.js:2607:32
    at Object.withCache (/tools/fs/files.js:1601:12)
    at Object.exports.bundle (/tools/isobuild/bundler.js:2607:16)
    at /tools/runners/run-app.js:574:36
    at Function.run (/tools/tool-env/profile.js:490:12)
    at bundleApp (/tools/runners/run-app.js:573:34)
    at AppRunner._runOnce (/tools/runners/run-app.js:617:35)
    at AppRunner._fiber (/tools/runners/run-app.js:876:28)
    at /tools/runners/run-app.js:403:12

Steps to Reproduce the Behavior

$ sudo npm install -g reaction-cli
$ reaction init
$ cd reaction
$ reaction

image

For enhancements or other issues, please describe in as much detail as
possible how the app should be changed and how this would benefit
users/developers

@gsc-dev
Copy link
Author

gsc-dev commented Mar 5, 2017

Hi,

Running these comments solved the issue, but maybe this should be somewhere in the installation manual?

$ echo kern.maxfiles=65536 | sudo tee -a /etc/sysctl.conf
$ echo kern.maxfilesperproc=65536 | sudo tee -a /etc/sysctl.conf
$ sudo sysctl -w kern.maxfiles=65536
$ sudo sysctl -w kern.maxfilesperproc=65536
$ ulimit -n 65536

meteor/meteor#8057

@jshimko
Copy link
Contributor

jshimko commented Mar 5, 2017

Scroll to the bottom...

https://docs.reactioncommerce.com/docs/requirements

@jshimko
Copy link
Contributor

jshimko commented Mar 5, 2017

It is admittedly easy to miss, but I think we put it there since everyone usually has to start on that page anyway.

@staringispolite
Copy link

Hi @jshimko! The URL you linked now 404's for me. Do you know where that content moved to?

@ticean
Copy link
Member

ticean commented Aug 2, 2018

@staringispolite the requirements page was moved to:

https://docs.reactioncommerce.com/docs/requirements

The instructions above are in the build tools section.


cc @machikoyasuda

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