[egg-scripts] Wait Start: 35...
[egg-scripts] 2018-01-23 16:12:03,863 ERROR 3941 [-/127.0.0.1/-/0ms GET /] nodejs.Error: [ClusterClient] leader does not be active in 30000ms on port:45728
[egg-scripts] at Function.waitFor (/root/egg/node_modules/[email protected]@cluster-client/lib/server.js:239:15)
[egg-scripts] at waitFor.next ()
[egg-scripts] at onFulfilled (/root/egg/node_modules/[email protected]@co/index.js:65:19)
[egg-scripts] at
[egg-scripts] at process._tickCallback (internal/process/next_tick.js:160:7)
[egg-scripts]
[egg-scripts] pid: 3941
[egg-scripts] hostname: iZ2ze76p2wnibfx0j7dslmZ
[egg-scripts]
[egg-scripts] 2018-01-23 16:12:03,863 ERROR 3941 nodejs.Error: [ClusterClient] leader does not be active in 30000ms on port:45728
[egg-scripts] at Function.waitFor (/root/egg/node_modules/[email protected]@cluster-client/lib/server.js:239:15)
[egg-scripts] at waitFor.next ()
[egg-scripts] at onFulfilled (/root/egg/node_modules/[email protected]@co/index.js:65:19)
[egg-scripts] at
[egg-scripts] at process._tickCallback (internal/process/next_tick.js:160:7)
[egg-scripts]
[egg-scripts] pid: 3941
[egg-scripts] hostname: iZ2ze76p2wnibfx0j7dslmZ
[egg-scripts]
[egg-scripts] 2018-01-23 16:12:03,863 ERROR 3941 [app_worker] start error, exiting with code:1
[egg-scripts] 2018-01-23 16:12:03,863 ERROR 3941 [app_worker] exit with code:1
[egg-scripts] 2018-01-23 16:12:03,869 ERROR 3925 nodejs.AppWorkerDiedError: [master] app_worker#1:3941 died (code: 1, signal: null, suicide: false, state: dead), current workers: []
[egg-scripts] at Master.onAppExit (/root/egg/node_modules/[email protected]@egg-cluster/lib/master.js:384:21)
[egg-scripts] at Master.emit (events.js:159:13)
[egg-scripts] at Messenger.sendToMaster (/root/egg/node_modules/[email protected]@egg-cluster/lib/utils/messenger.js:122:17)
[egg-scripts] at Messenger.send (/root/egg/node_modules/[email protected]@egg-cluster/lib/utils/messenger.js:87:12)
[egg-scripts] at EventEmitter.cluster.on (/root/egg/node_modules/[email protected]@egg-cluster/lib/master.js:263:22)
[egg-scripts] at EventEmitter.emit (events.js:164:20)
[egg-scripts] at ChildProcess.worker.process.once (internal/cluster/master.js:185:13)
[egg-scripts] at Object.onceWrapper (events.js:254:19)
[egg-scripts] at ChildProcess.emit (events.js:159:13)
[egg-scripts] at Process.ChildProcess._handle.onexit (internal/child_process.js:209:12)
[egg-scripts] name: 'AppWorkerDiedError'
[egg-scripts] pid: 3925
[egg-scripts] hostname: iZ2ze76p2wnibfx0j7dslmZ
[egg-scripts]
[egg-scripts] 2018-01-23 16:12:03,870 ERROR 3925 [master] app_worker#1:3941 start fail, exiting with code:1
[egg-scripts] 2018-01-23 16:12:03,871 ERROR 3925 [master] exit with code:1
[egg-scripts] 2018-01-23 16:12:03,873 ERROR 3931 [agent_worker] receive disconnect event on child_process fork mode, exiting with code:110
[egg-scripts] 2018-01-23 16:12:03,873 ERROR 3931 [agent_worker] exit with code:110
[egg-scripts]
[egg-scripts] Start got error, see /root/logs/master-stderr.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: egg-scripts start --workers=1 --daemon
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2018-01-23T08_12_05_860Z-debug.log
刚刚测试了一下
加上了 --workers=1 还是不行
求大神支招~~~
还是新项目,没有加过任何内容的
最小可复现仓库?,我试过直接在阿里云服务器上按照下面教程安装启动,代码没动,但是照样报同样的错误,实在找不到原因,一直很奇怪“ERROR 9248 nodejs.Error: [ClusterClient] leader does not be active in 30000ms on port:45188”这个是什么错误,这个端口哪里来的,而且每一次启动错误的端口都不一样?
$ npm i egg-init -g
$ egg-init egg-example --type=simple
$ cd egg-example
$ npm install
$npm start
egg-scripts] 2018-01-23 16:12:03,863 ERROR 3941 [-/127.0.0.1/-/0ms GET /] nodejs.Error: [ClusterClient] leader does not be active in 30000ms on port:45728