{"action":"created","issue":{"url":"https://api.github.com/repos/remy/nodemon/issues/731","labels_url":"https://api.github.com/repos/remy/nodemon/issues/731/labels{/name}","comments_url":"https://api.github.com/repos/remy/nodemon/issues/731/comments","events_url":"https://api.github.com/repos/remy/nodemon/issues/731/events","html_url":"https://github.com/remy/nodemon/issues/731","id":117553580,"number":731,"title":"[nodemon] Internal watch failed: watch EMFILE","user":{"login":"rjcoupe","id":129647,"avatar_url":"https://avatars.githubusercontent.com/u/129647?v=3","gravatar_id":"","url":"https://api.github.com/users/rjcoupe","html_url":"https://github.com/rjcoupe","followers_url":"https://api.github.com/users/rjcoupe/followers","following_url":"https://api.github.com/users/rjcoupe/following{/other_user}","gists_url":"https://api.github.com/users/rjcoupe/gists{/gist_id}","starred_url":"https://api.github.com/users/rjcoupe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rjcoupe/subscriptions","organizations_url":"https://api.github.com/users/rjcoupe/orgs","repos_url":"https://api.github.com/users/rjcoupe/repos","events_url":"https://api.github.com/users/rjcoupe/events{/privacy}","received_events_url":"https://api.github.com/users/rjcoupe/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-11-18T10:07:23Z","updated_at":"2015-12-07T16:59:07Z","closed_at":null,"body":"Not sure what's prompted this, since the same operation was working fine a few days ago. I've rebooted to no effect, so presumably it's not ye olde too-many-open-files problem.\r\n\r\n```\r\n$ nodemon --debug --dump server.js\r\n[nodemon] 1.8.1\r\n[nodemon] to restart at any time, enter `rs`\r\n[nodemon] watching: *.*\r\n--------------\r\nnode: v0.10.26\r\nnodemon: 1.8.1\r\ncommand: node /Users/rcoupe/.nvm/v0.10.26/bin/nodemon --debug --dump server.js\r\ncwd: /Users/rcoupe/Code/overlay-management-system\r\nOS: darwin x64\r\n--------------\r\n{ run: false,\r\n  system: { cwd: '/Users/rcoupe/Code/overlay-management-system' },\r\n  required: false,\r\n  dirs: [ '/Users/rcoupe/Code/overlay-management-system' ],\r\n  timeout: 1000,\r\n  options:\r\n   { dump: true,\r\n     ignore:\r\n      [ '.git',\r\n        'node_modules',\r\n        'bower_components',\r\n        '.sass-cache',\r\n        re: /\\.git|node_modules|bower_components|\\.sass\\-cache/ ],\r\n     watch: [ '*.*', re: /.*\\..*/ ],\r\n     ignoreRoot: [ '.git', 'node_modules', 'bower_components', '.sass-cache' ],\r\n     restartable: 'rs',\r\n     colours: true,\r\n     execMap: { py: 'python', rb: 'ruby' },\r\n     stdin: true,\r\n     runOnChangeOnly: false,\r\n     verbose: false,\r\n     stdout: true,\r\n     execOptions:\r\n      { script: 'server.js',\r\n        exec: 'node',\r\n        args: [ '--debug' ],\r\n        scriptPosition: 1,\r\n        nodeArgs: undefined,\r\n        ext: 'js,json',\r\n        env: {},\r\n        execArgs: [] },\r\n     monitor:\r\n      [ '*.*',\r\n        '!/Users/rcoupe/Code/overlay-management-system/.git/**/*',\r\n        '!/Users/rcoupe/Code/overlay-management-system/node_modules/**/*',\r\n        '!bower_components',\r\n        '!.sass-cache' ] },\r\n  load: [Function],\r\n  reset: [Function: reset],\r\n  lastStarted: 0,\r\n  loaded: [],\r\n  watchInterval: null,\r\n  command:\r\n   { raw: { executable: 'node', args: [ '--debug', 'server.js' ] },\r\n     string: 'node --debug server.js' } }\r\n--------------\r\n```"},"comment":{"url":"https://api.github.com/repos/remy/nodemon/issues/comments/162592061","html_url":"https://github.com/remy/nodemon/issues/731#issuecomment-162592061","issue_url":"https://api.github.com/repos/remy/nodemon/issues/731","id":162592061,"user":{"login":"skalfyfan","id":4172830,"avatar_url":"https://avatars.githubusercontent.com/u/4172830?v=3","gravatar_id":"","url":"https://api.github.com/users/skalfyfan","html_url":"https://github.com/skalfyfan","followers_url":"https://api.github.com/users/skalfyfan/followers","following_url":"https://api.github.com/users/skalfyfan/following{/other_user}","gists_url":"https://api.github.com/users/skalfyfan/gists{/gist_id}","starred_url":"https://api.github.com/users/skalfyfan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skalfyfan/subscriptions","organizations_url":"https://api.github.com/users/skalfyfan/orgs","repos_url":"https://api.github.com/users/skalfyfan/repos","events_url":"https://api.github.com/users/skalfyfan/events{/privacy}","received_events_url":"https://api.github.com/users/skalfyfan/received_events","type":"User","site_admin":false},"created_at":"2015-12-07T16:59:07Z","updated_at":"2015-12-07T16:59:07Z","body":"I'm getting a similar issue. Using Node 5.1.0 & NPM 3.3.12.\r\n\r\n    root@014b87ca92f1:/var/www/html# nodemon app.js\r\n    [nodemon] 1.8.1\r\n    [nodemon] to restart at any time, enter `rs`\r\n    [nodemon] watching: *.*\r\n    ...\r\n    info: Server lifted in `/var/www/html`\r\n    info: To see your app, visit http://localhost:1337\r\n    info: To shut down Sails, press <CTRL> + C at any time.\r\n\r\n    debug: --------------------------------------------------------\r\n    debug: :: Mon Dec 07 2015 16:54:53 GMT+0000 (UTC)\r\n\r\n    debug: Environment : development\r\n    debug: Port        : 1337\r\n    debug: --------------------------------------------------------\r\n    [nodemon] Internal watch failed: watch /var/www/html/node_modules/sails/node_modules/skipper/node_modules/multiparty/.travis.yml ENOSPC\r\n\r\nIt's not always the same file. It's a random different file every time but after about 10 seconds I always get the *[nodedemon] Internal watch failed* message and nodemon crashes? \r\n\r\nI'm running this in a Docker container. Node, NPM, Nodemon are all installed globally.\r\nI've tried upgrading NPM to 3.5.1 and that did not fix the issue. Still crashes after ~10 seconds?"}}