I started getting these when running multiple Meteor apps at the same time and running out of memory. Closing all 500 browser tabs in Chrome or restarting the computer would cure the issue.
after upgrading from 1.4.1 to 1.4.2.3 I am also getting this error, when running meteor in 2 terminals
meteor (standard)
meteor test --driver-package practicalmeteor:mocha --port 3500
ONE of them always throws an error, which totally sucks for my development workflow.
Yes, I do have some git submodules in packages/*.
Any ideas how to solve this?
This is the error I see when running 2) AFTER 1).
Error: ENFILE: file table overflow, scandir '/src/packages/flash-messages'
at Error (native)
at Object.fs.readdirSync (fs.js:808:18)
at Object.wrapper (/tools/fs/files.js:1535:35)
at readDirectory (/tools/fs/watch.js:271:26)
at Watcher._fireIfDirectoryChanged (/tools/fs/watch.js:410:23)
at /tools/fs/watch.js:662:12
at Array.forEach (native)
at Function._.each._.forEach (/Users/name/.meteor/packages/meteor-tool/.1.4.2_3.1ita38a++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/underscore/underscore.js:79:11)
at Watcher._checkDirectories (/tools/fs/watch.js:651:7)
at new Watcher (/tools/fs/watch.js:359:10)
at setupClientWatcher (/tools/runners/run-app.js:786:23)
at AppRunner._runOnce (/tools/runners/run-app.js:797:7)
at AppRunner._fiber (/tools/runners/run-app.js:876:28)
at /tools/runners/run-app.js:403:12