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

[android] [yosemite] EMFILE, too many open files #2689

Closed
adelnizamutdinov opened this Issue Sep 14, 2015 · 2 comments

Comments

Projects
None yet
4 participants
@adelnizamutdinov

adelnizamutdinov commented Sep 14, 2015

Hello, running react-native run-android yields this error.
Setting ulimit -n 65536 (which is maximum) does not help
What may I be doing wrong?

Full error log:

React packager ready.

[00:25:23] <START> Building Dependency Graph
[00:25:23] <START> Crawling File System
 ERROR  watch EMFILE
{"code":"EMFILE","errno":"EMFILE","syscall":"watch"}
Error: watch EMFILE
    at exports._errnoException (util.js:746:11)
    at FSWatcher.start (fs.js:1172:11)
    at Object.fs.watch (fs.js:1198:11)
    at NodeWatcher.watchdir (/Users/adelnizamutdinov/Projects/HelloAndroid/node_modules/react-native/node_modules/sane/src/node_watcher.js:144:20)
    at Walker.<anonymous> (/Users/adelnizamutdinov/Projects/HelloAndroid/node_modules/react-native/node_modules/sane/src/node_watcher.js:351:12)
    at Walker.emit (events.js:110:17)
    at /Users/adelnizamutdinov/Projects/HelloAndroid/node_modules/react-native/node_modules/sane/node_modules/walker/lib/walker.js:69:16
    at /Users/adelnizamutdinov/Projects/HelloAndroid/node_modules/react-native/node_modules/graceful-fs/graceful-fs.js:140:16
    at FSReqWrap.oncomplete (fs.js:95:15)

See http://facebook.github.io/react-native/docs/troubleshooting.html
for common problems and solutions.
fs.js:565
fs.write = function(fd, buffer, offset, length, position, callback) {
                                                 ^
Error: EMFILE, too many open files '/Users/adelnizamutdinov/.babel.json'
    at Error (native)
    at Object.fs.openSync (fs.js:500:18)
    at Object.fs.writeFileSync (fs.js:1099:15)
    at process.save (/Users/adelnizamutdinov/Projects/HelloAndroid/node_modules/react-native/node_modules/babel-core/lib/api/register/cache.js:35:19)
    at process.emit (events.js:107:17)
    at process.exit (node.js:600:17)
    at process.<anonymous> (/Users/adelnizamutdinov/Projects/HelloAndroid/node_modules/react-native/packager/packager.js:151:11)
    at process.emit (events.js:107:17)
    at process._fatalException (node.js:236:26)
    at Walker.<anonymous> (/Users/adelnizamutdinov/Projects/HelloAndroid/node_modules/react-native/node_modules/sane/src/node_watcher.js:351:12)
Process terminated. Press <enter> to close the window
@ide

This comment has been minimized.

Show comment
Hide comment
@ide

ide Sep 14, 2015

Collaborator

Try installing watchman.

Collaborator

ide commented Sep 14, 2015

Try installing watchman.

@adelnizamutdinov

This comment has been minimized.

Show comment
Hide comment
@adelnizamutdinov

adelnizamutdinov Sep 14, 2015

I somehow missed that part in the tutorial
brew install watchman did the job, thanks!

adelnizamutdinov commented Sep 14, 2015

I somehow missed that part in the tutorial
brew install watchman did the job, thanks!

@mkonicek mkonicek added the Android label Sep 18, 2015

@facebook facebook locked as resolved and limited conversation to collaborators Jul 21, 2018

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.