graceful icon indicating copy to clipboard operation
graceful copied to clipboard

ps-tree error on node.js 20

Open fengmk2 opened this issue 2 years ago • 1 comments

https://github.com/node-modules/graceful/blob/master/index.js#LL122C3-L122C9

2023-05-03 21:50:56,921 ERROR 3873346 [-/127.0.0.1/6f008500-e9b9-11ed-977e-775c5ef9fd68/41033.026ms SCHEDULE /__schedule?path=/home/admin/application/app/port/schedule/SyncPackageWorker.js&interval=1000&type=all&env=&disable=false&immediate=false] nodejs.TypeError: Cannot read properties of undefined (reading 'on') (uncaughtException throw 4 times on pid:3873346)
    at duplex (/home/admin/application/node_modules/[email protected]@duplexer/index.js:31:12)
    at Object.module.exports (/home/admin/application/node_modules/[email protected]@stream-combiner/index.js:8:17)
    at childrenOfPid (/home/admin/application/node_modules/[email protected]@ps-tree/index.js:50:6)
    at killChildren (/home/admin/application/node_modules/[email protected]@graceful/index.js:122:3)
    at Timeout._onTimeout (/home/admin/application/node_modules/[email protected]@graceful/index.js:67:9)
    at listOnTimeout (node:internal/timers:573:17)
    at processTimers (node:internal/timers:514:7)

pid: 3873346

2023-05-03 21:50:56,922 ERROR 3873346 [-/127.0.0.1/6f008500-e9b9-11ed-977e-775c5ef9fd68/41034.085ms SCHEDULE /__schedule?path=/home/admin/application/app/port/schedule/SyncPackageWorker.js&interval=1000&type=all&env=&disable=false&immediate=false] nodejs.EMFILEError: spawn ps EMFILE (uncaughtException throw 5 times on pid:3873346)
    at Process.ChildProcess._handle.onexit (node:internal/child_process:285:19)
    at onErrorNT (node:internal/child_process:483:16)
    at processTicksAndRejections (node:internal/process/task_queues:82:21)
errno: -24
code: "EMFILE"
syscall: "spawn ps"
path: "ps"
spawnargs: ["-A","-o","ppid,pid,stat,comm"]
name: "EMFILEError"
pid: 3873346

fengmk2 avatar May 04 '23 08:05 fengmk2

2023-05-04 00:11:22,441 ERROR 1361655 [-/127.0.0.1/f2f64761-e9cc-11ed-9078-3bc9f0576b81/84723.037ms SCHEDULE /__schedule?path=/home/admin/application/app/port/schedule/SyncPackageWorker.js&interval=1000&type=all&env=&disable=false&immediate=false] nodejs.EMFILEError: EMFILE: too many open files, open '/root/.cnpmcore/downloads/2023/05/04/4322e81f96551cc79fe3-easy-test-13.5.0.tgz' (uncaughtException throw 11 times on pid:1361655)

fengmk2 avatar May 04 '23 08:05 fengmk2