bombayjs / bombayjs-server

bombayjs后台服务端
35 stars 11 forks source link

启动报错 #4

Open ferying opened 3 years ago

ferying commented 3 years ago

启动日志如下:

[egg-ts-helper] create typings/app/extend/application.d.ts (3ms) [egg-ts-helper] create typings/app/extend/context.d.ts (4ms) [egg-ts-helper] create typings/app/extend/helper.d.ts (5ms) [egg-ts-helper] create typings/app/controller/index.d.ts (3ms) [egg-ts-helper] create typings/app/middleware/index.d.ts (1ms) [egg-ts-helper] create typings/app/model/index.d.ts (2ms) [egg-ts-helper] create typings/config/index.d.ts (16ms) [egg-ts-helper] create typings/config/plugin.d.ts (2ms) [egg-ts-helper] create typings/app/service/index.d.ts (6ms) [egg-ts-helper] create typings/app/index.d.ts (1ms) 2021-02-26 10:59:15,313 INFO 1480 [master] node version v12.16.3 2021-02-26 10:59:15,314 INFO 1480 [master] egg version 2.29.3 2021-02-26 10:59:19,143 INFO 1480 [master] agent_worker#1:1485 started (3796ms) (node:1494) DeprecationWarning: current Server Discovery and Monitoring engine is deprecated, and will be removed in a future version. To use the new Server Discover and Monitoring engine, pass option { useUnifiedTopology: true } to the MongoClient constructor. (node:1494) DeprecationWarning: Listening to events on the Db class has been deprecated and will be removed in the next major version. (node:1494) DeprecationWarning: collection.ensureIndex is deprecated. Use createIndexes instead. 2021-02-26 10:59:26,701 ERROR 1494 [egg-redis] client error: ClusterAllFailedError: Failed to refresh slots cache. at tryNode (/Users/feng/DFile/workspace/埋点/bombayjs-server/node_modules/ioredis/built/cluster/index.js:392:31) at /Users/feng/DFile/workspace/埋点/bombayjs-server/node_modules/ioredis/built/cluster/index.js:409:21 at /Users/feng/DFile/workspace/埋点/bombayjs-server/node_modules/ioredis/built/cluster/index.js:657:24 at run (/Users/feng/DFile/workspace/埋点/bombayjs-server/node_modules/ioredis/built/utils/index.js:156:22) at tryCatcher (/Users/feng/DFile/workspace/埋点/bombayjs-server/node_modules/standard-as-callback/built/utils.js:11:23) at /Users/feng/DFile/workspace/埋点/bombayjs-server/node_modules/standard-as-callback/built/index.js:30:51 at processTicksAndRejections (internal/process/task_queues.js:97:5) { lastNodeError: [ReplyError] } 2021-02-26 10:59:26,702 ERROR 1494 nodejs.ClusterAllFailedError: Failed to refresh slots cache. at tryNode (/Users/feng/DFile/workspace/埋点/bombayjs-server/node_modules/ioredis/built/cluster/index.js:392:31) at /Users/feng/DFile/workspace/埋点/bombayjs-server/node_modules/ioredis/built/cluster/index.js:409:21 at /Users/feng/DFile/workspace/埋点/bombayjs-server/node_modules/ioredis/built/cluster/index.js:657:24 at run (/Users/feng/DFile/workspace/埋点/bombayjs-server/node_modules/ioredis/built/utils/index.js:156:22) at tryCatcher (/Users/feng/DFile/workspace/埋点/bombayjs-server/node_modules/standard-as-callback/built/utils.js:11:23) at /Users/feng/DFile/workspace/埋点/bombayjs-server/node_modules/standard-as-callback/built/index.js:30:51 at processTicksAndRejections (internal/process/task_queues.js:97:5) lastNodeError: {"command":{"name":"cluster","args":["slots"]}} pid: 1494 hostname: fengdeMacBook-Pro.local

2021-02-26 10:59:26,708 ERROR 1494 [-/127.0.0.1/-/1ms GET /] nodejs.ClusterAllFailedError: Failed to refresh slots cache. at tryNode (/Users/feng/DFile/workspace/埋点/bombayjs-server/node_modules/ioredis/built/cluster/index.js:392:31) at /Users/feng/DFile/workspace/埋点/bombayjs-server/node_modules/ioredis/built/cluster/index.js:409:21 at /Users/feng/DFile/workspace/埋点/bombayjs-server/node_modules/ioredis/built/cluster/index.js:657:24 at run (/Users/feng/DFile/workspace/埋点/bombayjs-server/node_modules/ioredis/built/utils/index.js:156:22) at tryCatcher (/Users/feng/DFile/workspace/埋点/bombayjs-server/node_modules/standard-as-callback/built/utils.js:11:23) at /Users/feng/DFile/workspace/埋点/bombayjs-server/node_modules/standard-as-callback/built/index.js:30:51 at processTicksAndRejections (internal/process/task_queues.js:97:5) lastNodeError: {"command":{"name":"cluster","args":["slots"]}} pid: 1494 hostname: fengdeMacBook-Pro.local

2021-02-26 10:59:26,709 ERROR 1494 nodejs.ClusterAllFailedError: Failed to refresh slots cache. at tryNode (/Users/feng/DFile/workspace/埋点/bombayjs-server/node_modules/ioredis/built/cluster/index.js:392:31) at /Users/feng/DFile/workspace/埋点/bombayjs-server/node_modules/ioredis/built/cluster/index.js:409:21 at /Users/feng/DFile/workspace/埋点/bombayjs-server/node_modules/ioredis/built/cluster/index.js:657:24 at run (/Users/feng/DFile/workspace/埋点/bombayjs-server/node_modules/ioredis/built/utils/index.js:156:22) at tryCatcher (/Users/feng/DFile/workspace/埋点/bombayjs-server/node_modules/standard-as-callback/built/utils.js:11:23) at /Users/feng/DFile/workspace/埋点/bombayjs-server/node_modules/standard-as-callback/built/index.js:30:51 at processTicksAndRejections (internal/process/task_queues.js:97:5) lastNodeError: {"command":{"name":"cluster","args":["slots"]}} pid: 1494 hostname: fengdeMacBook-Pro.local

2021-02-26 10:59:26,709 ERROR 1494 [app_worker] start error, exiting with code:1 [2021-02-26 10:59:26.759] [cfork:master:1480] worker:1494 disconnect (exitedAfterDisconnect: false, state: disconnected, isDead: false, worker.disableRefork: true) [2021-02-26 10:59:26.759] [cfork:master:1480] don't fork, because worker:1494 will be kill soon 2021-02-26 10:59:26,759 INFO 1480 [master] app_worker#1:1494 disconnect, suicide: false, state: disconnected, current workers: ["1"] [2021-02-26 10:59:26.760] [cfork:master:1480] worker:1494 exit (code: null, exitedAfterDisconnect: false, state: dead, isDead: true, isExpected: false, worker.disableRefork: true) 2021-02-26 10:59:26,778 ERROR 1480 nodejs.AppWorkerDiedError: [master] app_worker#1:1494 died (code: null, signal: SIGTERM, suicide: false, state: dead), current workers: [] at Master.onAppExit (/Users/feng/DFile/workspace/埋点/bombayjs-server/node_modules/egg-cluster/lib/master.js:510:21) at Master.emit (events.js:310:20) at Messenger.sendToMaster (/Users/feng/DFile/workspace/埋点/bombayjs-server/node_modules/egg-cluster/lib/utils/messenger.js:137:17) at Messenger.send (/Users/feng/DFile/workspace/埋点/bombayjs-server/node_modules/egg-cluster/lib/utils/messenger.js:102:12) at EventEmitter. (/Users/feng/DFile/workspace/埋点/bombayjs-server/node_modules/egg-cluster/lib/master.js:353:22) at EventEmitter.emit (events.js:322:22) at ChildProcess. (internal/cluster/master.js:193:13) at Object.onceWrapper (events.js:417:26) at ChildProcess.emit (events.js:310:20) at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12) name: "AppWorkerDiedError" pid: 1480 hostname: fengdeMacBook-Pro.local

2021-02-26 10:59:26,785 ERROR 1480 [master] app_worker#1:1494 start fail, exiting with code:1 2021-02-26 10:59:26,787 ERROR 1480 [master] exit with code:1 2021-02-26 10:59:26,811 ERROR 1485 [agent_worker] receive disconnect event on child_process fork mode, exiting with code:110 2021-02-26 10:59:26,814 ERROR 1485 [agent_worker] exit with code:110 Error: /Users/feng/DFile/workspace/埋点/bombayjs-server/node_modules/egg-bin/lib/start-cluster {"typescript":true,"declarations":true,"port":7002,"workers":1,"baseDir":"/Users/feng/DFile/workspace/埋点/bombayjs-server","framework":"/Users/feng/DFile/workspace/埋点/bombayjs-server/node_modules/egg"} exit with code 1 at ChildProcess. (/Users/feng/DFile/workspace/埋点/bombayjs-server/node_modules/common-bin/lib/helper.js:56:21) at Object.onceWrapper (events.js:417:26) at ChildProcess.emit (events.js:310:20) at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12) { code: 1 } npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! bombayjs-server@1.0.0 dev: egg-bin dev --port=7002 npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the bombayjs-server@1.0.0 dev 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! /Users/feng/.npm/_logs/2021-02-26T02_59_26_851Z-debug.log