whyour / qinglong

支持 Python3、JavaScript、Shell、Typescript 的定时任务管理平台(Timed task management platform supporting Python3, JavaScript, Shell, Typescript)
http://demo.ninesix.cc:4433
Apache License 2.0
15.19k stars 2.86k forks source link

个别路由器固件上,启动PM2服务出错 #2406

Open mengniu8 opened 1 month ago

mengniu8 commented 1 month ago

Qinglong version

2.17.*

Steps to reproduce

环境:京东云路由器 亚瑟 AX1800pro

What is expected?

启动最新版青龙

What is actually happening?

2.15及以后的版本会出现这个错误,启动PM2服务出错。主要是/ql/shell/share.sh文件302和309行。 /ql/shell/share.sh: line 309: 66 Trace/breakpoint trap pm2 flush &> /dev/null /ql/shell/share.sh: line 309: 73 Trace/breakpoint trap pm2 startOrGracefulReload other.config.js /ql/shell/share.sh: line 302: 83 Trace/breakpoint trap pm2 flush &> /dev/null /ql/shell/share.sh: line 302: 90 Trace/breakpoint trap pm2 startOrGracefulReload

System Info

======================4. 启动pm2服务========================

/ql/shell/share.sh: line 309:    66 Trace/breakpoint trap   pm2 flush &> /dev/null

#
# Fatal error in , line 0
# Check failed: 0 == ret.
#
#
#
#FailureMessage Object: 0x7fefe03fd8
----- Native stack trace -----

/ql/shell/share.sh: line 309:    73 Trace/breakpoint trap   pm2 startOrGracefulReload other.config.js
/ql/shell/share.sh: line 302:    83 Trace/breakpoint trap   pm2 flush &> /dev/null

#
# Fatal error in , line 0
# Check failed: 0 == ret.
#
#
#
#FailureMessage Object: 0x7ffd35b988
----- Native stack trace -----

/ql/shell/share.sh: line 302:    90 Trace/breakpoint trap   pm2 startOrGracefulReload ecosystem.config.js
############################################################

容器启动成功...
############################################################

crond[97]: crond (busybox 1.36.1) started, log level 8

Any additional comments?

没有了

lucien2023 commented 1 month ago

也是ipq6010? 我tp的路由器也是这个U,报错一模一样

whyour commented 1 month ago

run 的时候增加 --privileged=true 参数正常吗

whyour commented 1 month ago

https://github.com/whyour/qinglong/issues/897#issuecomment-1085888178 看这个能不能解决

lucien2023 commented 1 month ago

run 的时候增加 --privileged=true 参数正常吗 有开启特权模式的,但是依然是这样子, 和TPlink的研发沟通过这件事情,研发表示应该是node这个可执行文件的原因,但是node这个程序显示又是armv7的。 当然不排除TP的docker给的权限有限,关于系统的一些权限不能下放,同时也屏蔽了host模式。当然TP ARM64的docker是能正常运行青龙的,我这边实测这个V7架构的在2.14.12以上镜像会一直报错卡在“启动中,请稍后...”,2.14.12运行起来似乎也有点小问题。 如果您有时间可以安排与厂家联调下,感激不尽。 以下是错误日志: ======================1. 检测配置文件======================== '/ql/docker/nginx.conf' -> '/etc/nginx/nginx.conf' '/ql/docker/front.conf' -> '/etc/nginx/conf.d/front.conf' ./docker/docker-entrypoint.sh: line 13: 25 Bus error (core dumped) pm2 l &> /dev/null ======================2. 安装依赖======================== ======================3. 启动nginx======================== nginx启动成功... ======================4. 启动pm2服务======================== /ql/shell/share.sh: line 309: 43 Bus error (core dumped) pm2 flush &> /dev/null #

Fatal error in , line 0

Check failed: 0 == ret.

# # #

FailureMessage Object: 0x7e89314c

----- Native stack trace ----- /ql/shell/share.sh: line 309: 50 Bus error (core dumped) pm2 startOrGracefulReload other.config.js /ql/shell/share.sh: line 302: 60 Bus error (core dumped) pm2 flush &> /dev/null #

Fatal error in , line 0

Check failed: 0 == ret.

# # #

FailureMessage Object: 0x7e9c414c

----- Native stack trace ----- /ql/shell/share.sh: line 302: 67 Bus error (core dumped) pm2 startOrGracefulReload ecosystem.config.js ############################################################ 容器启动成功... ############################################################ crond[74]: crond (busybox 1.36.1) started, log level 8 ======================1. 检测配置文件======================== '/ql/docker/nginx.conf' -> '/etc/nginx/nginx.conf' '/ql/docker/front.conf' -> '/etc/nginx/conf.d/front.conf' ./docker/docker-entrypoint.sh: line 13: 25 Bus error (core dumped) pm2 l &> /dev/null ======================2. 安装依赖======================== ======================3. 启动nginx======================== nginx启动成功... ======================4. 启动pm2服务======================== /ql/shell/share.sh: line 309: 43 Bus error (core dumped) pm2 flush &> /dev/null #

Fatal error in , line 0

Check failed: 0 == ret.

# # #

FailureMessage Object: 0x7e9de14c

----- Native stack trace ----- /ql/shell/share.sh: line 309: 50 Bus error (core dumped) pm2 startOrGracefulReload other.config.js /ql/shell/share.sh: line 302: 60 Bus error (core dumped) pm2 flush &> /dev/null #

Fatal error in , line 0

Check failed: 0 == ret.

# # #

FailureMessage Object: 0x7ee0114c

----- Native stack trace ----- /ql/shell/share.sh: line 302: 67 Bus error (core dumped) pm2 startOrGracefulReload ecosystem.config.js ############################################################ 容器启动成功... ############################################################ crond[74]: crond (busybox 1.36.1) started, log level 8

mengniu8 commented 1 month ago

run 的时候增加 --privileged=true 参数正常吗

加这个参数和不加时一样。

mengniu8 commented 1 month ago

#897 (comment) 看这个能不能解决

#897 (comment) 看这个能不能解决

我的openwrt系统ibseccomp版本是2.5.1-1,目前没有找到公开的2.5.4的ipk,我学习一下怎么编译再来试试。

mengniu8 commented 1 month ago

#897 (comment) 看这个能不能解决

我把libseccomp更新到了2.5.4-2,问题依旧。 /docker/docker-entrypoint.sh: line 13: 47 Trace/breakpoint trap pm2 l &> /dev/null ======================2. 安装依赖========================

======================3. 启动nginx========================

nginx启动成功...

======================4. 启动pm2服务========================

/ql/shell/share.sh: line 309: 65 Trace/breakpoint trap pm2 flush &> /dev/null

#

Fatal error in , line 0

Check failed: 0 == ret.

# # #

FailureMessage Object: 0x7fc99a0618

----- Native stack trace -----

/ql/shell/share.sh: line 309: 72 Trace/breakpoint trap pm2 startOrGracefulReload other.config.js /ql/shell/share.sh: line 302: 82 Trace/breakpoint trap pm2 flush &> /dev/null

#

Fatal error in , line 0

Check failed: 0 == ret.

# # #

FailureMessage Object: 0x7fc7f27ae8

----- Native stack trace -----

/ql/shell/share.sh: line 302: 89 Trace/breakpoint trap pm2 startOrGracefulReload ecosystem.config.js ############################################################

容器启动成功... ############################################################

crond[96]: crond (busybox 1.36.1) started, log level 8

whyour commented 3 weeks ago

不用 pm2,node /ql/static/build/app.js 可以启动吗

whyour commented 3 weeks ago

2.14.12 以前的镜像可以正常使用?

lucien2023 commented 3 weeks ago

2.14.12 以前的镜像可以正常使用?

能正常打开网页,但是似乎跑不起来。 最新的2.17.7还是不行 root@qinglong:/ql $ node /ql/static/build/app.js

#

Fatal error in , line 0

Check failed: 0 == ret.

# # #

FailureMessage Object: 0x7ed0b17c

----- Native stack trace -----

Bus error (core dumped) root@qinglong:/ql $ ^C

root@qinglong:/ql $

mengniu8 commented 3 weeks ago

2.14.12 以前的镜像可以正常使用?

是的,新版本运行不起来,我就先用的旧版。2.14.12及之前的几个版本可以用。

mengniu8 commented 3 weeks ago

不用 pm2,node /ql/static/build/app.js 可以启动吗 不能,面板一直显示启动中,docker执行node /ql/static/build/app.js也不成功。 root@yase:/ql $ node /ql/static/build/app.js

#

Fatal error in , line 0

Check failed: 0 == ret.

# # #

FailureMessage Object: 0x7fd33cee88

----- Native stack trace -----

Trace/breakpoint trap

whyour commented 3 weeks ago

2.14.12 以前的镜像可以正常使用?

能正常打开网页,但是似乎跑不起来。 最新的2.17.7还是不行 root@qinglong:/ql $ node /ql/static/build/app.js

Fatal error in , line 0

Check failed: 0 == ret.

FailureMessage Object: 0x7ed0b17c ----- Native stack trace -----

Bus error (core dumped) root@qinglong:/ql $ ^C

root@qinglong:/ql $

你同样的设备,和楼主表现不一样?

whyour commented 3 weeks ago

2.14.12 以前的镜像可以正常使用?

是的,新版本运行不起来,我就先用的旧版。2.14.12及之前的几个版本可以用。

应该是你这个固件不支持 node 18+,只能用 node 16

lucien2023 commented 3 weeks ago

2.14.12 以前的镜像可以正常使用?

能正常打开网页,但是似乎跑不起来。 最新的2.17.7还是不行 root@qinglong:/ql $ node /ql/static/build/app.js

Fatal error in , line 0

Check failed: 0 == ret.

FailureMessage Object: 0x7ed0b17c ----- Native stack trace -----

Bus error (core dumped) root@qinglong:/ql $ ^C root@qinglong:/ql $

你同样的设备,和楼主表现不一样?

他是京东云的CPU是IPQ6000,我TP的是IPQ6010,都是四核64位 A53,都是V7架构的,我这性能会比他强一点 2.14.12安装完成后能正常打开网页,但是装依赖的时候就卡死了,我就没再试了。

whyour commented 3 weeks ago

2.14.12 以前的镜像可以正常使用?

能正常打开网页,但是似乎跑不起来。 最新的2.17.7还是不行 root@qinglong:/ql $ node /ql/static/build/app.js

Fatal error in , line 0

Check failed: 0 == ret.

FailureMessage Object: 0x7ed0b17c ----- Native stack trace -----

Bus error (core dumped) root@qinglong:/ql $ ^C root@qinglong:/ql $

你同样的设备,和楼主表现不一样?

他是京东云的CPU是IPQ6000,我TP的是IPQ6010,都是四核64位 A53,都是V7架构的,我这性能会比他强一点 2.14.12安装完成后能正常打开网页,但是装依赖的时候就卡死了,我就没再试了。

docker pull node:20-alpine 运行这个镜像,里面的 node 可以运行吗

whyour commented 3 weeks ago

docker run node:20-alpine node -v 看看这个能不能运行

lucien2023 commented 3 weeks ago

docker run node:20-alpine node -v 看看这个能不能运行

运行失败了,直接无法启动

lucien2023 commented 3 weeks ago

docker run node:20-alpine node -v

我还试了下 docker run node:16-alpine node -v 这是可以运行的

mengniu8 commented 3 weeks ago

2.14.12 以前的镜像可以正常使用?

能正常打开网页,但是似乎跑不起来。 最新的2.17.7还是不行 root@qinglong:/ql $ node /ql/static/build/app.js

Fatal error in , line 0

Check failed: 0 == ret.

FailureMessage Object: 0x7ed0b17c ----- Native stack trace -----

Bus error (core dumped) root@qinglong:/ql $ ^C root@qinglong:/ql $

你同样的设备,和楼主表现不一样?

可能他和我固件不一样吧,我是安装的OPENWRT,固件版本:QWRT R23.10.1 (QSDK 12.1) / main (git-23.285.56189-935f774) 我也分别运行了一下:docker run node:16(18/20)-alpine node -v 这3个版本,都正常输出。