7
在一次重启后青龙面板显示服务错误;大概和设置清空 logs 有关不知道是不是 Bug,昨天设置的 20 多天就清空 logs,今天机器出了点问题重启就这样了,烦请修复不知道这样交 issues 正确不多多理解。
环境: Docker 青龙 v2.12.1 Operating System: Ubuntu 20.04.3 LTS Kernel: Linux 5.4.0-107-generic
脚本内容打星号、近乎相同的log打省略号处理
错误:
pm2 logs panel
[TAILING] Tailing last 500 lines for [panel] process (change the value with --lines option)
/root/.pm2/logs/panel-out.log last 500 lines:
1|panel | 2022-04-07T23:28:50: info: task **/**.js pid: 40624 exit 0 signal null
…………
1|panel | 2022-04-09T11:18:33: info: task **/**.js pid: 63471 closed 0
1|panel | 2022-04-09T11:23:06: info: [取消interval任务],任务ID: 10,任务名:删除日志
1|panel | 2022-04-09T11:23:06: info: [创建interval任务],任务ID: 10,任务名: 删除日志,执行命令: ql rmlog 30
1|panel | 2022-04-09T11:23:06: error: 🔥 error: Error: Due to setInterval limitations, no intervals longer than 24.85 days can be scheduled correctly. Please create LongIntervalJob instead.
1|panel | 2022-04-09T11:23:06: at SimpleIntervalJob.start (/ql/node_modules/.pnpm/toad-scheduler@1.6.0/node_modules/toad-scheduler/dist/lib/engines/simple-interval/SimpleIntervalJob.js:16:19)
1|panel | 2022-04-09T11:23:06: at SimpleIntervalEngine.add (/ql/node_modules/.pnpm/toad-scheduler@1.6.0/node_modules/toad-scheduler/dist/lib/engines/simple-interval/SimpleIntervalEngine.js:12:13)
1|panel | 2022-04-09T11:23:06: at ToadScheduler.addIntervalJob (/ql/node_modules/.pnpm/toad-scheduler@1.6.0/node_modules/toad-scheduler/dist/lib/toadScheduler.js:20:43)
1|panel | 2022-04-09T11:23:06: at ScheduleService.createIntervalTask (/ql/back/services/schedule.ts:128:27)
1|panel | 2022-04-09T11:23:06: at SystemService.updateLogRemoveFrequency (/ql/back/services/system.ts:71:34)
1|panel | 2022-04-09T11:23:06: at /ql/back/api/system.ts:74:24 {
1|panel | 2022-04-09T11:23:06: [stack]: 'Error: Due to setInterval limitations, no intervals longer than 24.85 days can be scheduled correctly. Please create LongIntervalJob instead.\n' +
1|panel | 2022-04-09T11:23:06: ' at SimpleIntervalJob.start (/ql/node_modules/.pnpm/toad-scheduler@1.6.0/node_modules/toad-scheduler/dist/lib/engines/simple-interval/SimpleIntervalJob.js:16:19)\n' +
1|panel | 2022-04-09T11:23:06: ' at SimpleIntervalEngine.add (/ql/node_modules/.pnpm/toad-scheduler@1.6.0/node_modules/toad-scheduler/dist/lib/engines/simple-interval/SimpleIntervalEngine.js:12:13)\n' +
1|panel | 2022-04-09T11:23:06: ' at ToadScheduler.addIntervalJob (/ql/node_modules/.pnpm/toad-scheduler@1.6.0/node_modules/toad-scheduler/dist/lib/toadScheduler.js:20:43)\n' +
1|panel | 2022-04-09T11:23:06: ' at ScheduleService.createIntervalTask (/ql/back/services/schedule.ts:128:27)\n' +
1|panel | 2022-04-09T11:23:06: ' at SystemService.updateLogRemoveFrequency (/ql/back/services/system.ts:71:34)\n' +
1|panel | 2022-04-09T11:23:06: ' at /ql/back/api/system.ts:74:24',
1|panel | 2022-04-09T11:23:06: [message]: 'Due to setInterval limitations, no intervals longer than 24.85 days can be scheduled correctly. Please create LongIntervalJob instead.'
1|panel | 2022-04-09T11:23:06: }
1|panel | 2022-04-09T11:23:12: info: [取消interval任务],任务ID: 10,任务名:删除日志
1|panel | 2022-04-09T11:23:12: info: [创建interval任务],任务ID: 10,任务名: 删除日志,执行命令: ql rmlog 20
1|panel | 2022-04-09T15:20:04: info: task **/**.js pid: 73901 exit 0 signal null
……
1|panel | 2022-04-10T23:55:06: info: [创建interval任务],任务ID: 10,任务名: 删除日志,执行命令: ql rmlog 30
1|panel | 2022-04-10T23:57:27: info: ✌️ Init file down
1|panel | 2022-04-10T23:57:28: info: ✌️ Sentry loaded
1|panel | 2022-04-10T23:57:29: info: ✌️ DB loaded
1|panel | 2022-04-10T23:57:29: info: ✌️ Dependency Injector loaded
1|panel | 2022-04-10T23:57:30: info: ✌️ Express loaded
1|panel | 2022-04-10T23:57:30: info: [创建interval任务],任务ID: 10,任务名: 删除日志,执行命令: ql rmlog 30
1|panel | 2022-04-11T00:00:29: info: ✌️ Init file down
1|panel | 2022-04-11T00:00:29: info: ✌️ Sentry loaded
1|panel | 2022-04-11T00:00:30: info: ✌️ DB loaded
1|panel | 2022-04-11T00:00:31: info: ✌️ Dependency Injector loaded
1|panel | 2022-04-11T00:00:31: info: ✌️ Express loaded
1|panel | 2022-04-11T00:00:31: info: [创建interval任务],任务ID: 10,任务名: 删除日志,执行命令: ql rmlog 30
1|panel | 2022-04-11T00:22:44: info: ✌️ Init file down
1|panel | 2022-04-11T00:22:46: info: ✌️ Sentry loaded
1|panel | 2022-04-11T00:22:49: info: ✌️ DB loaded
1|panel | 2022-04-11T00:22:51: info: ✌️ Dependency Injector loaded
1|panel | 2022-04-11T00:22:51: info: ✌️ Express loaded
1|panel | 2022-04-11T00:22:52: info: [创建interval任务],任务ID: 10,任务名: 删除日志,执行命令: ql rmlog 30
/root/.pm2/logs/panel-error.log last 500 lines:
1|panel | 2022-04-10T23:51:05: Error: Due to setInterval limitations, no intervals longer than 24.85 days can be scheduled correctly. Please create LongIntervalJob instead.
1|panel | 2022-04-10T23:51:05: at SimpleIntervalJob.start (/ql/node_modules/.pnpm/toad-scheduler@1.6.0/node_modules/toad-scheduler/dist/lib/engines/simple-interval/SimpleIntervalJob.js:16:19)
1|panel | 2022-04-10T23:51:05: at SimpleIntervalEngine.add (/ql/node_modules/.pnpm/toad-scheduler@1.6.0/node_modules/toad-scheduler/dist/lib/engines/simple-interval/SimpleIntervalEngine.js:12:13)
1|panel | 2022-04-10T23:51:05: at ToadScheduler.addIntervalJob (/ql/node_modules/.pnpm/toad-scheduler@1.6.0/node_modules/toad-scheduler/dist/lib/toadScheduler.js:20:43)
1|panel | 2022-04-10T23:51:05: at ScheduleService.createIntervalTask (/ql/back/services/schedule.ts:128:27)
1|panel | 2022-04-10T23:51:05: at exports.default (/ql/back/loaders/initData.ts:131:27)
1|panel | 2022-04-10T23:51:05: at Object.exports.default (/ql/back/loaders/app.ts:17:3)
1|panel | 2022-04-10T23:51:05: at startServer (/ql/back/app.ts:18:3)
1|panel | 2022-04-10T23:51:05: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason:
1|panel | 2022-04-10T23:51:05: Error: Due to setInterval limitations, no intervals longer than 24.85 days can be scheduled correctly. Please create LongIntervalJob instead.
1|panel | 2022-04-10T23:51:05: at SimpleIntervalJob.start (/ql/node_modules/.pnpm/toad-scheduler@1.6.0/node_modules/toad-scheduler/dist/lib/engines/simple-interval/SimpleIntervalJob.js:16:19)
1|panel | 2022-04-10T23:51:05: at SimpleIntervalEngine.add (/ql/node_modules/.pnpm/toad-scheduler@1.6.0/node_modules/toad-scheduler/dist/lib/engines/simple-interval/SimpleIntervalEngine.js:12:13)
1|panel | 2022-04-10T23:51:05: at ToadScheduler.addIntervalJob (/ql/node_modules/.pnpm/toad-scheduler@1.6.0/node_modules/toad-scheduler/dist/lib/toadScheduler.js:20:43)
1|panel | 2022-04-10T23:51:05: at ScheduleService.createIntervalTask (/ql/back/services/schedule.ts:128:27)
1|panel | 2022-04-10T23:51:05: at exports.default (/ql/back/loaders/initData.ts:131:27)
1|panel | 2022-04-10T23:51:05: at Object.exports.default (/ql/back/loaders/app.ts:17:3)
1|panel | 2022-04-10T23:51:05: at startServer (/ql/back/app.ts:18:3)
1|panel | 2022-04-10T23:52:36: Error: Due to setInterval limitations, no intervals longer than 24.85 days can be scheduled correctly. Please create LongIntervalJob instead.
1|panel | 2022-04-10T23:52:36: at SimpleIntervalJob.start (/ql/node_modules/.pnpm/toad-scheduler@1.6.0/node_modules/toad-scheduler/dist/lib/engines/simple-interval/SimpleIntervalJob.js:16:19)
1|panel | 2022-04-10T23:52:36: at SimpleIntervalEngine.add (/ql/node_modules/.pnpm/toad-scheduler@1.6.0/node_modules/toad-scheduler/dist/lib/engines/simple-interval/SimpleIntervalEngine.js:12:13)
1|panel | 2022-04-10T23:52:36: at ToadScheduler.addIntervalJob (/ql/node_modules/.pnpm/toad-scheduler@1.6.0/node_modules/toad-scheduler/dist/lib/toadScheduler.js:20:43)
1|panel | 2022-04-10T23:52:36: at ScheduleService.createIntervalTask (/ql/back/services/schedule.ts:128:27)
1|panel | 2022-04-10T23:52:36: at exports.default (/ql/back/loaders/initData.ts:131:27)
1|panel | 2022-04-10T23:52:36: at Object.exports.default (/ql/back/loaders/app.ts:17:3)
1|panel | 2022-04-10T23:52:36: at startServer (/ql/back/app.ts:18:3)
……
1|panel | 2022-04-11T00:22:52: Error: Due to setInterval limitations, no intervals longer than 24.85 days can be scheduled correctly. Please create LongIntervalJob instead.
1|panel | 2022-04-11T00:22:52: at SimpleIntervalJob.start (/ql/node_modules/.pnpm/toad-scheduler@1.6.0/node_modules/toad-scheduler/dist/lib/engines/simple-interval/SimpleIntervalJob.js:16:19)
1|panel | 2022-04-11T00:22:52: at SimpleIntervalEngine.add (/ql/node_modules/.pnpm/toad-scheduler@1.6.0/node_modules/toad-scheduler/dist/lib/engines/simple-interval/SimpleIntervalEngine.js:12:13)
1|panel | 2022-04-11T00:22:52: at ToadScheduler.addIntervalJob (/ql/node_modules/.pnpm/toad-scheduler@1.6.0/node_modules/toad-scheduler/dist/lib/toadScheduler.js:20:43)
1|panel | 2022-04-11T00:22:52: at ScheduleService.createIntervalTask (/ql/back/services/schedule.ts:128:27)
1|panel | 2022-04-11T00:22:52: at exports.default (/ql/back/loaders/initData.ts:131:27)
1|panel | 2022-04-11T00:22:52: at Object.exports.default (/ql/back/loaders/app.ts:17:3)
1|panel | 2022-04-11T00:22:52: at startServer (/ql/back/app.ts:18:3)
面板内配置已下载,并且重新部署