eggjs 启动失败 master uncaughtException: Error: write EMFILE?

image.png

[2023-01-11 14:58:41.709] [cfork:master:12640] master uncaughtException: Error: write EMFILE
    at target._send (node:internal/child_process:865:20)
    at target.send (node:internal/child_process:738:19)
    at sendHelper (node:internal/cluster/utils:28:15)
    at send (node:internal/cluster/primary:348:10)
    at node:internal/cluster/primary:314:5
    at SharedHandle.add (node:internal/cluster/shared_handle:30:3)
    at queryServer (node:internal/cluster/primary:308:10)
    at Worker.onmessage (node:internal/cluster/primary:254:5)
    at ChildProcess.onInternalMessage (node:internal/cluster/utils:49:5)
    at ChildProcess.emit (node:events:525:35)
Error: write EMFILE
    at target._send (node:internal/child_process:865:20)
    at target.send (node:internal/child_process:738:19)
    at sendHelper (node:internal/cluster/utils:28:15)
    at send (node:internal/cluster/primary:348:10)
    at node:internal/cluster/primary:314:5
    at SharedHandle.add (node:internal/cluster/shared_handle:30:3)
    at queryServer (node:internal/cluster/primary:308:10)
    at Worker.onmessage (node:internal/cluster/primary:254:5)
    at ChildProcess.onInternalMessage (node:internal/cluster/utils:49:5)
    at ChildProcess.emit (node:events:525:35) {
  errno: -4066,
  code: 'EMFILE',
  syscall: 'write'
}
(total 0 disconnect, 0 unexpected exit)
[2023-01-11 14:58:41.716] [cfork:master:12640] master uncaughtException: Error: write EMFILE
    at target._send (node:internal/child_process:865:20)
    at target.send (node:internal/child_process:738:19)
    at sendHelper (node:internal/cluster/utils:28:15)
    at send (node:internal/cluster/primary:348:10)
    at node:internal/cluster/primary:314:5
    at SharedHandle.add (node:internal/cluster/shared_handle:30:3)
    at queryServer (node:internal/cluster/primary:308:10)
    at Worker.onmessage (node:internal/cluster/primary:254:5)
    at ChildProcess.onInternalMessage (node:internal/cluster/utils:49:5)
    at ChildProcess.emit (node:events:525:35)
Error: write EMFILE
    at target._send (node:internal/child_process:865:20)
    at target.send (node:internal/child_process:738:19)
    at sendHelper (node:internal/cluster/utils:28:15)
    at send (node:internal/cluster/primary:348:10)
    at node:internal/cluster/primary:314:5
    at SharedHandle.add (node:internal/cluster/shared_handle:30:3)
    at queryServer (node:internal/cluster/primary:308:10)
    at Worker.onmessage (node:internal/cluster/primary:254:5)
    at ChildProcess.onInternalMessage (node:internal/cluster/utils:49:5)
    at ChildProcess.emit (node:events:525:35) {
  errno: -4066,
  code: 'EMFILE',
  syscall: 'write'
}
(total 0 disconnect, 0 unexpected exit)
[2023-01-11 14:58:41.718] [cfork:master:12640] master uncaughtException: Error: write EMFILE
    at target._send (node:internal/child_process:865:20)
    at ChildProcess.<anonymous> (node:internal/child_process:668:16)
    at ChildProcess.emit (node:events:525:35)
    at emit (node:internal/child_process:937:14)
    at process.processTicksAndRejections (node:internal/process/task_queues:83:21)
Error: write EMFILE
    at target._send (node:internal/child_process:865:20)
    at ChildProcess.<anonymous> (node:internal/child_process:668:16)
    at ChildProcess.emit (node:events:525:35)
    at emit (node:internal/child_process:937:14)
    at process.processTicksAndRejections (node:internal/process/task_queues:83:21) {
  errno: -4066,
  code: 'EMFILE',
  syscall: 'write'
}
(total 0 disconnect, 0 unexpected exit)
[2023-01-11 14:58:41.719] [cfork:master:12640] master uncaughtException: Error: write EMFILE
    at target._send (node:internal/child_process:865:20)
    at target.send (node:internal/child_process:738:19)
    at sendHelper (node:internal/cluster/utils:28:15)
    at send (node:internal/cluster/primary:348:10)
    at node:internal/cluster/primary:314:5
    at SharedHandle.add (node:internal/cluster/shared_handle:30:3)
    at queryServer (node:internal/cluster/primary:308:10)
    at Worker.onmessage (node:internal/cluster/primary:254:5)
    at ChildProcess.onInternalMessage (node:internal/cluster/utils:49:5)
    at ChildProcess.emit (node:events:525:35)
Error: write EMFILE
    at target._send (node:internal/child_process:865:20)
    at target.send (node:internal/child_process:738:19)
    at sendHelper (node:internal/cluster/utils:28:15)
    at send (node:internal/cluster/primary:348:10)
    at node:internal/cluster/primary:314:5
    at SharedHandle.add (node:internal/cluster/shared_handle:30:3)
    at queryServer (node:internal/cluster/primary:308:10)
    at Worker.onmessage (node:internal/cluster/primary:254:5)
    at ChildProcess.onInternalMessage (node:internal/cluster/utils:49:5)
    at ChildProcess.emit (node:events:525:35) {
  errno: -4066,
  code: 'EMFILE',
  syscall: 'write'
}
(total 0 disconnect, 0 unexpected exit)
[2023-01-11 14:58:41.723] [cfork:master:12640] master uncaughtException: Error: write EMFILE
    at target._send (node:internal/child_process:865:20)
    at target.send (node:internal/child_process:738:19)
    at sendHelper (node:internal/cluster/utils:28:15)
    at send (node:internal/cluster/primary:348:10)
    at node:internal/cluster/primary:314:5
    at SharedHandle.add (node:internal/cluster/shared_handle:30:3)
    at queryServer (node:internal/cluster/primary:308:10)
    at Worker.onmessage (node:internal/cluster/primary:254:5)
    at ChildProcess.onInternalMessage (node:internal/cluster/utils:49:5)
    at ChildProcess.emit (node:events:525:35)
Error: write EMFILE
    at target._send (node:internal/child_process:865:20)
    at target.send (node:internal/child_process:738:19)
    at sendHelper (node:internal/cluster/utils:28:15)
    at send (node:internal/cluster/primary:348:10)
    at node:internal/cluster/primary:314:5
    at SharedHandle.add (node:internal/cluster/shared_handle:30:3)
    at queryServer (node:internal/cluster/primary:308:10)
    at Worker.onmessage (node:internal/cluster/primary:254:5)
    at ChildProcess.onInternalMessage (node:internal/cluster/utils:49:5)
    at ChildProcess.emit (node:events:525:35) {
  errno: -4066,
  code: 'EMFILE',
  syscall: 'write'
}
(total 0 disconnect, 0 unexpected exit)
[2023-01-11 14:58:41.724] [cfork:master:12640] master uncaughtException: Error: write EMFILE
    at target._send (node:internal/child_process:865:20)
    at target.send (node:internal/child_process:738:19)
    at sendHelper (node:internal/cluster/utils:28:15)
    at send (node:internal/cluster/primary:348:10)
    at node:internal/cluster/primary:314:5
    at SharedHandle.add (node:internal/cluster/shared_handle:30:3)
    at queryServer (node:internal/cluster/primary:308:10)
    at Worker.onmessage (node:internal/cluster/primary:254:5)
    at ChildProcess.onInternalMessage (node:internal/cluster/utils:49:5)
    at ChildProcess.emit (node:events:525:35)
Error: write EMFILE
    at target._send (node:internal/child_process:865:20)
    at target.send (node:internal/child_process:738:19)
    at sendHelper (node:internal/cluster/utils:28:15)
    at send (node:internal/cluster/primary:348:10)
    at node:internal/cluster/primary:314:5
    at SharedHandle.add (node:internal/cluster/shared_handle:30:3)
    at queryServer (node:internal/cluster/primary:308:10)
    at Worker.onmessage (node:internal/cluster/primary:254:5)
    at ChildProcess.onInternalMessage (node:internal/cluster/utils:49:5)
    at ChildProcess.emit (node:events:525:35) {
  errno: -4066,
  code: 'EMFILE',
  syscall: 'write'
}
(total 0 disconnect, 0 unexpected exit)
[2023-01-11 14:58:41.725] [cfork:master:12640] master uncaughtException: Error: write EMFILE
    at target._send (node:internal/child_process:865:20)
    at target.send (node:internal/child_process:738:19)
    at sendHelper (node:internal/cluster/utils:28:15)
    at send (node:internal/cluster/primary:348:10)
    at node:internal/cluster/primary:314:5
    at SharedHandle.add (node:internal/cluster/shared_handle:30:3)
    at queryServer (node:internal/cluster/primary:308:10)
    at Worker.onmessage (node:internal/cluster/primary:254:5)
    at ChildProcess.onInternalMessage (node:internal/cluster/utils:49:5)
    at ChildProcess.emit (node:events:525:35)
Error: write EMFILE
    at target._send (node:internal/child_process:865:20)
    at target.send (node:internal/child_process:738:19)
    at sendHelper (node:internal/cluster/utils:28:15)
    at send (node:internal/cluster/primary:348:10)
    at node:internal/cluster/primary:314:5
    at SharedHandle.add (node:internal/cluster/shared_handle:30:3)
    at queryServer (node:internal/cluster/primary:308:10)
    at Worker.onmessage (node:internal/cluster/primary:254:5)
    at ChildProcess.onInternalMessage (node:internal/cluster/utils:49:5)
    at ChildProcess.emit (node:events:525:35) {
  errno: -4066,
  code: 'EMFILE',
  syscall: 'write'
}
(total 0 disconnect, 0 unexpected exit)
2023-01-11 14:58:41,728 ERROR 12640 [master] app_worker#4:11724 start fail, exiting with code:1
2023-01-11 14:58:41,729 ERROR 12640 [master] exit with code:1
阅读 1.8k
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进