最新版(maybe)
Steps to reproduce前几天都用的好好的,今天想加个脚本发的进不去了,尝试过check和update 均报错Error: Cannot find module '/root/.local/share/pnpm/global/5/node_modules/pm2/bin/pm2' MODULE_NOT_FOUND
What is expected?正常进入后台
What is actually happening?无法进入 日志如下:
root@qinglong:/ql $ ql check
开始执行... 2023-12-11 11:20:33=====> 开始检测
changed 1 package in 6s Writing to /root/.config/pip/pip.conf Lockfile is up to date, resolution step is skipped Already up to date WARN Failed to create bin at /root/.local/share/pnpm/global/5/.pnpm/node_modules/.bin/blessed. The source file at /root/.local/share/pnpm/global/5/.pnpm/node_modules/blessed/bin/tput.js does not exist. WARN Failed to create bin at /root/.local/share/pnpm/global/5/.pnpm/node_modules/.bin/esbuild. The source file at /root/.local/share/pnpm/global/5/.pnpm/node_modules/esbuild/bin/esbuild does not exist. WARN Failed to create bin at /root/.local/share/pnpm/global/5/.pnpm/node_modules/.bin/escodegen. The source file at /root/.local/share/pnpm/global/5/.pnpm/node_modules/escodegen/bin/escodegen.js does not exist. WARN Failed to create bin at /root/.local/share/pnpm/global/5/.pnpm/node_modules/.bin/mkdirp. The source file at /root/.local/share/pnpm/global/5/.pnpm/node_modules/mkdirp/bin/cmd.js does not exist. WARN Failed to create bin at /root/.local/share/pnpm/global/5/.pnpm/node_modules/.bin/needle. The source file at /root/.local/share/pnpm/global/5/.pnpm/node_modules/needle/bin/needle does not exist. WARN Failed to create bin at /root/.local/share/pnpm/global/5/.pnpm/node_modules/.bin/resolve. The source file at /root/.local/share/pnpm/global/5/.pnpm/node_modules/resolve/bin/resolve does not exist. WARN Failed to create bin at /root/.local/share/pnpm/global/5/.pnpm/node_modules/.bin/semver. The source file at /root/.local/share/pnpm/global/5/.pnpm/node_modules/semver/bin/semver.js does not exist. WARN Failed to create bin at /root/.local/share/pnpm/global/5/.pnpm/node_modules/.bin/uuid. The source file at /root/.local/share/pnpm/global/5/.pnpm/node_modules/uuid/bin/uuid does not exist. WARN Failed to create bin at /root/.local/share/pnpm/global/5/.pnpm/node_modules/.bin/esgenerate. The source file at /root/.local/share/pnpm/global/5/.pnpm/node_modules/escodegen/bin/esgenerate.js does not exist. WARN Failed to create bin at /root/.local/share/pnpm/global/5/.pnpm/node_modules/.bin/esparse. The source file at /root/.local/share/pnpm/global/5/.pnpm/node_modules/esprima/bin/esparse.js does not exist. WARN Failed to create bin at /root/.local/share/pnpm/global/5/.pnpm/node_modules/.bin/esvalidate. The source file at /root/.local/share/pnpm/global/5/.pnpm/node_modules/esprima/bin/esvalidate.js does not exist. WARN Failed to create bin at /root/.local/share/pnpm/global/5/.pnpm/node_modules/.bin/yaml2json. The source file at /root/.local/share/pnpm/global/5/.pnpm/node_modules/yamljs/bin/yaml2json does not exist. WARN Failed to create bin at /root/.local/share/pnpm/global/5/.pnpm/node_modules/.bin/json2yaml. The source file at /root/.local/share/pnpm/global/5/.pnpm/node_modules/yamljs/bin/json2yaml does not exist. WARN Failed to create bin at /root/.local/share/pnpm/global/5/node_modules/.bin/pm2. The source file at /root/.local/share/pnpm/global/5/node_modules/pm2/bin/pm2 does not exist. WARN Failed to create bin at /root/.local/share/pnpm/global/5/node_modules/.bin/pm2-dev. The source file at /root/.local/share/pnpm/global/5/node_modules/pm2/bin/pm2-dev does not exist. WARN Failed to create bin at /root/.local/share/pnpm/global/5/node_modules/.bin/pm2-docker. The source file at /root/.local/share/pnpm/global/5/node_modules/pm2/bin/pm2-docker does not exist. WARN Failed to create bin at /root/.local/share/pnpm/global/5/node_modules/.bin/pm2-runtime. The source file at /root/.local/share/pnpm/global/5/node_modules/pm2/bin/pm2-runtime does not exist.
Done in 6.6s Progress: resolved 1, reused 0, downloaded 0, added 0 Progress: resolved 4, reused 1, downloaded 0, added 0 Progress: resolved 28, reused 6, downloaded 0, added 0 Progress: resolved 47, reused 13, downloaded 0, added 0 Progress: resolved 81, reused 20, downloaded 0, added 0 WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. Progress: resolved 109, reused 27, downloaded 1, added 0 Progress: resolved 156, reused 28, downloaded 1, added 0 Progress: resolved 182, reused 36, downloaded 1, added 0 Packages: +1 -4 +---- Progress: resolved 182, reused 70, downloaded 1, added 1, done WARN Failed to create bin at /root/.local/share/pnpm/global/5/.pnpm/node_modules/.bin/blessed. The source file at /root/.local/share/pnpm/global/5/.pnpm/node_modules/blessed/bin/tput.js does not exist. WARN Failed to create bin at /root/.local/share/pnpm/global/5/.pnpm/node_modules/.bin/esbuild. The source file at /root/.local/share/pnpm/global/5/.pnpm/node_modules/esbuild/bin/esbuild does not exist. WARN Failed to create bin at /root/.local/share/pnpm/global/5/.pnpm/node_modules/.bin/escodegen. The source file at /root/.local/share/pnpm/global/5/.pnpm/node_modules/escodegen/bin/escodegen.js does not exist. WARN Failed to create bin at /root/.local/share/pnpm/global/5/.pnpm/node_modules/.bin/mkdirp. The source file at /root/.local/share/pnpm/global/5/.pnpm/node_modules/mkdirp/bin/cmd.js does not exist. WARN Failed to create bin at /root/.local/share/pnpm/global/5/.pnpm/node_modules/.bin/needle. The source file at /root/.local/share/pnpm/global/5/.pnpm/node_modules/needle/bin/needle does not exist. WARN Failed to create bin at /root/.local/share/pnpm/global/5/.pnpm/node_modules/.bin/resolve. The source file at /root/.local/share/pnpm/global/5/.pnpm/node_modules/resolve/bin/resolve does not exist. WARN Failed to create bin at /root/.local/share/pnpm/global/5/.pnpm/node_modules/.bin/semver. The source file at /root/.local/share/pnpm/global/5/.pnpm/node_modules/semver/bin/semver.js does not exist. WARN Failed to create bin at /root/.local/share/pnpm/global/5/.pnpm/node_modules/.bin/uuid. The source file at /root/.local/share/pnpm/global/5/.pnpm/node_modules/uuid/bin/uuid does not exist. WARN Failed to create bin at /root/.local/share/pnpm/global/5/.pnpm/node_modules/.bin/esgenerate. The source file at /root/.local/share/pnpm/global/5/.pnpm/node_modules/escodegen/bin/esgenerate.js does not exist. WARN Failed to create bin at /root/.local/share/pnpm/global/5/.pnpm/node_modules/.bin/esparse. The source file at /root/.local/share/pnpm/global/5/.pnpm/node_modules/esprima/bin/esparse.js does not exist. WARN Failed to create bin at /root/.local/share/pnpm/global/5/.pnpm/node_modules/.bin/esvalidate. The source file at /root/.local/share/pnpm/global/5/.pnpm/node_modules/esprima/bin/esvalidate.js does not exist. WARN Failed to create bin at /root/.local/share/pnpm/global/5/.pnpm/node_modules/.bin/yaml2json. The source file at /root/.local/share/pnpm/global/5/.pnpm/node_modules/yamljs/bin/yaml2json does not exist. WARN Failed to create bin at /root/.local/share/pnpm/global/5/.pnpm/node_modules/.bin/json2yaml. The source file at /root/.local/share/pnpm/global/5/.pnpm/node_modules/yamljs/bin/json2yaml does not exist. WARN Failed to create bin at /root/.local/share/pnpm/global/5/.pnpm/tsx@4.6.2/node_modules/tsx/node_modules/.bin/esbuild. The source file at /root/.local/share/pnpm/global/5/.pnpm/esbuild@0.18.20/node_modules/esbuild/bin/esbuild does not exist. WARN Failed to create bin at /root/.local/share/pnpm/pm2. The source file at /root/.local/share/pnpm/global/5/node_modules/pm2/bin/pm2 does not exist. WARN Failed to create bin at /root/.local/share/pnpm/pm2-dev. The source file at /root/.local/share/pnpm/global/5/node_modules/pm2/bin/pm2-dev does not exist. WARN Failed to create bin at /root/.local/share/pnpm/pm2-docker. The source file at /root/.local/share/pnpm/global/5/node_modules/pm2/bin/pm2-docker does not exist. WARN Failed to create bin at /root/.local/share/pnpm/pm2-runtime. The source file at /root/.local/share/pnpm/global/5/node_modules/pm2/bin/pm2-runtime does not exist.
/root/.local/share/pnpm/global/5:
- tsx 3.12.10
- tsx 4.6.2
Done in 17.1s ---> 1. 开始检测配置文件
---> 配置文件检测完成
---> 2. 开始安装青龙依赖
安装 /ql 依赖包...
devDependencies: skipped
@ postinstall /ql max setup 2>/dev/null || true
Done in 9s ---> 青龙依赖安装完成
---> 3. 开始安装脚本依赖
安装 /ql/data/scripts 依赖包...
devDependencies: skipped
Done in 5.2s ---> 脚本依赖安装完成
---> 1. 复制通知文件
---> 复制一份 /ql/sample/notify.py 为 /ql/data/scripts/notify.py
'/ql/sample/notify.py' -> '/ql/data/scripts/notify.py'
---> 复制一份 /ql/sample/notify.js 为 /ql/data/scripts/sendNotify.js
'/ql/sample/notify.js' -> '/ql/data/scripts/sendNotify.js' ---> 通知文件复制完成
---> 2. 复制nginx配置文件
'/ql/docker/nginx.conf' -> '/etc/nginx/nginx.conf' '/ql/docker/front.conf' -> '/etc/nginx/conf.d/front.conf' ---> 配置文件复制完成
=====> 检测面板
<!DOCTYPE html>
=====> 面板服务启动正常 =====> 检测nginx服务 68 nginx: master process nginx -c /etc/nginx/nginx.conf 69 nginx: worker process 70 nginx: worker process 71 nginx: worker process 72 nginx: worker process =====> nginx服务正常 ---> pm2日志 2023-12-01T20:13:39: ✌️ DB loaded 2023-12-01T20:13:39: ✌️ Init file down 2023-12-01T20:13:40: ✌️ Sentry loaded 2023-12-01T20:13:43: ✌️ Dependency Injector loaded 2023-12-01T20:13:44: ✌️ Express loaded 2023-12-01T20:13:44: ✌️ init data loaded 2023-12-01T20:13:45: ✌️ link deps loaded 2023-12-01T20:13:45: ✌️ init task loaded 2023-12-01T20:13:45: ✌️ 后端服务启动成功! 2023-12-02T06:03:01: ✌️ DB loaded 2023-12-02T06:03:01: ✌️ Init file down 2023-12-02T06:03:03: ✌️ Sentry loaded 2023-12-02T06:03:07: ✌️ Dependency Injector loaded 2023-12-02T06:03:08: ✌️ Express loaded 2023-12-02T06:03:09: ✌️ init data loaded 2023-12-02T06:03:09: ✌️ link deps loaded 2023-12-02T06:03:09: ✌️ init task loaded 2023-12-02T06:03:10: ✌️ 后端服务启动成功! 2023-12-03T06:02:50: ✌️ DB loaded 2023-12-03T06:02:50: ✌️ Init file down 2023-12-03T06:02:51: ✌️ Sentry loaded 2023-12-03T06:02:55: ✌️ Dependency Injector loaded 2023-12-03T06:02:56: ✌️ Express loaded 2023-12-03T06:02:58: ✌️ init data loaded 2023-12-03T06:02:58: ✌️ link deps loaded 2023-12-03T06:02:58: ✌️ init task loaded 2023-12-03T06:02:59: ✌️ 后端服务启动成功! 2023-12-04T06:02:51: ✌️ DB loaded 2023-12-04T06:02:51: ✌️ Init file down 2023-12-04T06:02:52: ✌️ Sentry loaded 2023-12-04T06:02:58: ✌️ Dependency Injector loaded 2023-12-04T06:02:58: ✌️ Express loaded 2023-12-04T06:03:00: ✌️ init data loaded 2023-12-04T06:03:00: ✌️ link deps loaded 2023-12-04T06:03:00: ✌️ init task loaded 2023-12-04T06:03:01: ✌️ 后端服务启动成功! 2023-12-05T06:02:49: ✌️ DB loaded 2023-12-05T06:02:49: ✌️ Init file down 2023-12-05T06:02:50: ✌️ Sentry loaded 2023-12-05T06:02:56: ✌️ Dependency Injector loaded 2023-12-05T06:02:57: ✌️ Express loaded 2023-12-05T06:02:59: ✌️ init data loaded 2023-12-05T06:02:59: ✌️ link deps loaded 2023-12-05T06:02:59: ✌️ init task loaded 2023-12-05T06:03:00: ✌️ 后端服务启动成功! 2023-12-06T06:03:01: ✌️ DB loaded 2023-12-06T06:03:01: ✌️ Init file down 2023-12-06T06:03:03: ✌️ Sentry loaded 2023-12-06T06:03:07: ✌️ Dependency Injector loaded 2023-12-06T06:03:08: ✌️ Express loaded 2023-12-06T06:03:09: ✌️ init data loaded 2023-12-06T06:03:10: ✌️ link deps loaded 2023-12-06T06:03:10: ✌️ init task loaded 2023-12-06T06:03:10: ✌️ 后端服务启动成功! 2023-12-07T06:02:59: ✌️ DB loaded 2023-12-07T06:02:59: ✌️ Init file down 2023-12-07T06:03:00: ✌️ Sentry loaded 2023-12-07T06:03:07: ✌️ Dependency Injector loaded 2023-12-07T06:03:07: ✌️ Express loaded 2023-12-07T06:03:09: ✌️ init data loaded 2023-12-07T06:03:10: ✌️ link deps loaded 2023-12-07T06:03:10: ✌️ init task loaded 2023-12-07T06:03:11: ✌️ 后端服务启动成功! 2023-12-08T01:24:24: ✌️ DB loaded 2023-12-08T01:24:24: ✌️ Init file down 2023-12-08T01:24:25: ✌️ Sentry loaded 2023-12-08T01:24:29: ✌️ Dependency Injector loaded 2023-12-08T01:24:29: ✌️ Express loaded 2023-12-08T01:24:31: ✌️ init data loaded 2023-12-08T01:24:31: ✌️ link deps loaded 2023-12-08T01:24:31: ✌️ init task loaded 2023-12-08T01:24:32: ✌️ 后端服务启动成功! 2023-12-08T06:03:29: ✌️ DB loaded 2023-12-08T06:03:29: ✌️ Init file down 2023-12-08T06:03:30: ✌️ Sentry loaded 2023-12-08T06:03:35: ✌️ Dependency Injector loaded 2023-12-08T06:03:36: ✌️ Express loaded 2023-12-08T06:03:37: ✌️ init data loaded 2023-12-08T06:03:37: ✌️ link deps loaded 2023-12-08T06:03:37: ✌️ init task loaded 2023-12-08T06:03:38: ✌️ 后端服务启动成功! 2023-12-09T06:03:02: ✌️ DB loaded 2023-12-09T06:03:02: ✌️ Init file down 2023-12-09T06:03:04: ✌️ Sentry loaded 2023-12-09T06:03:10: ✌️ Dependency Injector loaded 2023-12-09T06:03:10: ✌️ Express loaded 2023-12-09T06:03:11: ✌️ init data loaded 2023-12-09T06:03:12: ✌️ link deps loaded 2023-12-09T06:03:12: ✌️ init task loaded 2023-12-09T06:03:12: ✌️ 后端服务启动成功! 2023-12-10T06:03:01: ✌️ DB loaded 2023-12-10T06:03:01: ✌️ Init file down 2023-12-10T06:03:03: ✌️ Sentry loaded 2023-12-10T06:03:10: ✌️ Dependency Injector loaded 2023-12-10T06:03:10: ✌️ Express loaded 2023-12-10T06:03:12: ✌️ init data loaded 2023-12-10T06:03:12: ✌️ link deps loaded 2023-12-10T06:03:12: ✌️ init task loaded 2023-12-10T06:03:13: ✌️ 后端服务启动成功! 2023-12-01T20:13:17: Server need close, singal SIGINT 2023-12-01T20:14:38: ValidationError: The Express 'trust proxy' setting is true, which allows anyone to trivially bypass IP-based rate limiting. See https://express-rate-limit.github.io/ERR_ERL_PERMISSIVE_TRUST_PROXY/ for more information. 2023-12-01T20:14:38: at Object.trustProxy (/ql/node_modules/.pnpm/express-rate-limit@7.0.0_express@4.18.2/node_modules/express-rate-limit/dist/index.cjs:148:13) 2023-12-01T20:14:38: at Object.wrappedValidations.