v2.15.20
服务启动超时 请先按如下方式修复:
- 宿主机执行 docker run --rm -v /var/run/docker.sock:/var/run/docker.sock containrrr/watchtower -cR <容器名>
- 容器内执行 ql -l check、ql -l update
- 如果无法解决,容器内执行 pm2 logs,拷贝执行结果提交 issue
null
2023-08-05T21:39:11: Error: Cannot find module 'tar'
2023-08-05T21:39:11: Require stack:
2023-08-05T21:39:11: - /ql/static/build/services/system.js
2023-08-05T21:39:11: - /ql/static/build/api/system.js
2023-08-05T21:39:11: - /ql/static/build/api/index.js
2023-08-05T21:39:11: - /ql/static/build/loaders/express.js
2023-08-05T21:39:11: - /ql/static/build/loaders/app.js
2023-08-05T21:39:11: - /ql/static/build/app.js
2023-08-05T21:39:11: at Function.Module._resolveFilename (node:internal/modules/cjs/loader:956:15)
2023-08-05T21:39:11: at Module.Hook._require.Module.require (/root/.local/share/pnpm/global/5/.pnpm/require-in-the-middle@5.1.0/node_modules/require-in-the-middle/index.js:61:29)
2023-08-05T21:39:11: at require (node:internal/modules/cjs/helpers:102:18)
2023-08-05T21:39:11: at Object.
(/ql/back/services/system.ts:27:1) 2023-08-05T21:39:11: at Module._compile (node:internal/modules/cjs/loader:1120:14) 2023-08-05T21:39:11: at Object.Module._extensions..js (node:internal/modules/cjs/loader:1174:10) 2023-08-05T21:39:11: at Module.load (node:internal/modules/cjs/loader:998:32) 2023-08-05T21:39:11: at Function.Module._load (node:internal/modules/cjs/loader:839:12) 2023-08-05T21:39:11: at Module.require (node:internal/modules/cjs/loader:1022:19) 2023-08-05T21:39:11: at Module.Hook._require.Module.require (/root/.local/share/pnpm/global/5/.pnpm/require-in-the-middle@5.1.0/node_modules/require-in-the-middle/index.js:80:39) { 2023-08-05T21:39:11: code: 'MODULE_NOT_FOUND', 2023-08-05T21:39:11: requireStack: [ 2023-08-05T21:39:11: '/ql/static/build/services/system.js', 2023-08-05T21:39:11: '/ql/static/build/api/system.js', 2023-08-05T21:39:11: '/ql/static/build/api/index.js', 2023-08-05T21:39:11: '/ql/static/build/loaders/express.js', 2023-08-05T21:39:11: '/ql/static/build/loaders/app.js', 2023-08-05T21:39:11: '/ql/static/build/app.js' 2023-08-05T21:39:11: ] 2023-08-05T21:39:11: } 2023-08-05T21:39:11: 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: 2023-08-05T21:39:11: Error: Cannot find module 'tar' 2023-08-05T21:39:11: Require stack: 2023-08-05T21:39:11: - /ql/static/build/services/system.js 2023-08-05T21:39:11: - /ql/static/build/api/system.js 2023-08-05T21:39:11: - /ql/static/build/api/index.js 2023-08-05T21:39:11: - /ql/static/build/loaders/express.js 2023-08-05T21:39:11: - /ql/static/build/loaders/app.js 2023-08-05T21:39:11: - /ql/static/build/app.js 2023-08-05T21:39:11: at Function.Module._resolveFilename (node:internal/modules/cjs/loader:956:15) 2023-08-05T21:39:11: at Module.Hook._require.Module.require (/root/.local/share/pnpm/global/5/.pnpm/require-in-the-middle@5.1.0/node_modules/require-in-the-middle/index.js:61:29) 2023-08-05T21:39:11: at require (node:internal/modules/cjs/helpers:102:18) 2023-08-05T21:39:11: at Object. (/ql/back/services/system.ts:27:1) 2023-08-05T21:39:11: at Module._compile (node:internal/modules/cjs/loader:1120:14) 2023-08-05T21:39:11: at Object.Module._extensions..js (node:internal/modules/cjs/loader:1174:10) 2023-08-05T21:39:11: at Module.load (node:internal/modules/cjs/loader:998:32) 2023-08-05T21:39:11: at Function.Module._load (node:internal/modules/cjs/loader:839:12) 2023-08-05T21:39:11: at Module.require (node:internal/modules/cjs/loader:1022:19) 2023-08-05T21:39:11: at Module.Hook._require.Module.require (/root/.local/share/pnpm/global/5/.pnpm/require-in-the-middle@5.1.0/node_modules/require-in-the-middle/index.js:80:39) 2023-08-05T21:40:16: Error: Cannot find module 'tar' 2023-08-05T21:40:16: Require stack: 2023-08-05T21:40:16: - /ql/static/build/services/system.js 2023-08-05T21:40:16: - /ql/static/build/api/system.js 2023-08-05T21:40:16: - /ql/static/build/api/index.js 2023-08-05T21:40:16: - /ql/static/build/loaders/express.js 2023-08-05T21:40:16: - /ql/static/build/loaders/app.js 2023-08-05T21:40:16: - /ql/static/build/app.js 2023-08-05T21:40:16: at Function.Module._resolveFilename (node:internal/modules/cjs/loader:956:15) 2023-08-05T21:40:16: at Module.Hook._require.Module.require (/root/.local/share/pnpm/global/5/.pnpm/require-in-the-middle@5.1.0/node_modules/require-in-the-middle/index.js:61:29) 2023-08-05T21:40:16: at require (node:internal/modules/cjs/helpers:102:18) 2023-08-05T21:40:16: at Object. (/ql/back/services/system.ts:27:1) 2023-08-05T21:40:16: at Module._compile (node:internal/modules/cjs/loader:1120:14) 2023-08-05T21:40:16: at Object.Module._extensions..js (node:internal/modules/cjs/loader:1174:10) 2023-08-05T21:40:16: at Module.load (node:internal/modules/cjs/loader:998:32) 2023-08-05T21:40:16: at Function.Module._load (node:internal/modules/cjs/loader:839:12) 2023-08-05T21:40:16: at Module.require (node:internal/modules/cjs/loader:1022:19) 2023-08-05T21:40:16: at Module.Hook._require.Module.require (/root/.local/share/pnpm/global/5/.pnpm/require-in-the-middle@5.1.0/node_modules/require-in-the-middle/index.js:80:39) { 2023-08-05T21:40:16: code: 'MODULE_NOT_FOUND', 2023-08-05T21:40:16: requireStack: [ 2023-08-05T21:40:16: '/ql/static/build/services/system.js', 2023-08-05T21:40:16: '/ql/static/build/api/system.js', 2023-08-05T21:40:16: '/ql/static/build/api/index.js', 2023-08-05T21:40:16: '/ql/static/build/loaders/express.js', 2023-08-05T21:40:16: '/ql/static/build/loaders/app.js', 2023-08-05T21:40:16: '/ql/static/build/app.js' 2023-08-05T21:40:16: ] 2023-08-05T21:40:16: } 2023-08-05T21:40:16: 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: 2023-08-05T21:40:16: Error: Cannot find module 'tar' 2023-08-05T21:40:16: Require stack: 2023-08-05T21:40:16: - /ql/static/build/services/system.js 2023-08-05T21:40:16: - /ql/static/build/api/system.js 2023-08-05T21:40:16: - /ql/static/build/api/index.js 2023-08-05T21:40:16: - /ql/static/build/loaders/express.js 2023-08-05T21:40:16: - /ql/static/build/loaders/app.js 2023-08-05T21:40:16: - /ql/static/build/app.js 2023-08-05T21:40:16: at Function.Module._resolveFilename (node:internal/modules/cjs/loader:956:15) 2023-08-05T21:40:16: at Module.Hook._require.Module.require (/root/.local/share/pnpm/global/5/.pnpm/require-in-the-middle@5.1.0/node_modules/require-in-the-middle/index.js:61:29) 2023-08-05T21:40:16: at require (node:internal/modules/cjs/helpers:102:18) 2023-08-05T21:40:16: at Object. (/ql/back/services/system.ts:27:1) 2023-08-05T21:40:16: at Module._compile (node:internal/modules/cjs/loader:1120:14) 2023-08-05T21:40:16: at Object.Module._extensions..js (node:internal/modules/cjs/loader:1174:10) 2023-08-05T21:40:16: at Module.load (node:internal/modules/cjs/loader:998:32) 2023-08-05T21:40:16: at Function.Module._load (node:internal/modules/cjs/loader:839:12) 2023-08-05T21:40:16: at Module.require (node:internal/modules/cjs/loader:1022:19) 2023-08-05T21:40:16: at Module.Hook._require.Module.require (/root/.local/share/pnpm/global/5/.pnpm/require-in-the-middle@5.1.0/node_modules/require-in-the-middle/index.js:80:39)
{"code":7,"killed":false,"signal":null,"cmd":"curl -s http://localhost:5600/api/system"}
解决
5700/error错误。脚本在运行。web页打不开。check update都试过,不能修复。