dominictarr / npmd

MIT License
449 stars 37 forks source link

EMFILE #80

Open binarykitchen opened 10 years ago

binarykitchen commented 10 years ago

Sorry to bug you again, but I am seeing plenty of EMFILE errors

$ npmd install

Error: connect EMFILE
    at errnoException (net.js:904:11)
    at connect (net.js:766:19)
    at net.js:845:9
    at asyncCallback (dns.js:68:16)
    at Object.onanswer [as oncomplete] (dns.js:121:9)
$ npmd -v
1.3.3
dominictarr commented 10 years ago

please provide more information like last time

On Sun, Aug 31, 2014 at 7:28 PM, Michael Heuberger <notifications@github.com

wrote:

Sorry to bug you again, but I am seeing plenty of EMFILE errors

$ npmd install

Error: connect EMFILE at errnoException (net.js:904:11) at connect (net.js:766:19) at net.js:845:9 at asyncCallback (dns.js:68:16) at Object.onanswer as oncomplete

$ npmd -v 1.3.3

— Reply to this email directly or view it on GitHub https://github.com/dominictarr/npmd/issues/80.

binarykitchen commented 10 years ago

basic npmd resolve works

$ ulimit -a
-t: cpu time (seconds)              unlimited
-f: file size (blocks)              unlimited
-d: data seg size (kbytes)          unlimited
-s: stack size (kbytes)             8192
-c: core file size (blocks)         0
-m: resident set size (kbytes)      unlimited
-u: processes                       23894
-n: file descriptors                1024
-l: locked-in-memory size (kbytes)  64
-v: address space (kbytes)          unlimited
-x: file locks                      unlimited
-i: pending signals                 23894
-q: bytes in POSIX msg queues       819200
-e: max nice                        0
-r: max rt priority                 0
-N 15:                              unlimited

then I ran npmd-resolve > resolve.out which generated a 1.3MB file on my remote server where I am trying to deploy the web app.

then I fed the installer with that file and got EMFILE:

$ ./node_modules/npmd-install/index.js < resolve.out

Error: connect EMFILE
    at errnoException (net.js:904:11)
    at connect (net.js:766:19)
    at net.js:845:9
    at asyncCallback (dns.js:68:16)
    at Object.onanswer [as oncomplete] (dns.js:121:9)

sending you the resolve.out in a separate email right after this ticket.

and then here is the npm ls for the npmd-install module:

$ npm ls --depth=0
npmd-install@5.1.6 /var/www/videomail/development/node_modules/npmd-install
├── clone@0.1.18
├── continuable@1.1.6
├── continuable-hash@0.1.4
├── get-deps@2.0.4
├── graceful-fs@3.0.2 extraneous
├── mkdirp@0.3.5
├── npmd-cache@4.3.2
├── npmd-config@1.0.12
├── osenv@0.0.3
├── pull-paramap@1.1.1
├── pull-stream@2.25.0
├── pull-traverse@1.0.3
├── rimraf@2.2.8
binarykitchen commented 10 years ago

and probably you want this too

$ npm ls npmd-url
videomail.io@1.0.0 /var/www/xxx/development
└─┬ npmd-install@5.1.6 extraneous
  └─┬ npmd-cache@4.3.2 extraneous
    └── npmd-url@1.0.0  extraneous