求问 LEDE 上 nginx+php7-fpm 搭 pydio 报 502 的原因

2017-08-30 18:02:10 +08:00
 CatSama
K3 刷的 LEDE
CPU 应该是 armv7 的
WEB 环境安装好之后,搭了个 Kodexplorer,可以正常运行使用。
然后我后面看到了 pydio,觉得逼格很高,就想试试
结果一直提示 502 Bad Gateway

nginx 错误日志是这样的 [ IP 和域名地址我删掉了]
2017/08/30 17:31:01 [error] 22836#0: *65 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: XXXXXXX, server: XXXXXXXX, request: "GET /pydio/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php7-fpm.sock:", host: "XXXXXXXXXXX:7777"

php7 日志是这样的
[30-Aug-2017 17:31:01] WARNING: [pool www] child 22844 exited with code 1 after 3473.454570 seconds from start
[30-Aug-2017 17:31:01] NOTICE: [pool www] child 30524 started


我谷歌搜的办法都试过了,都不能解决,
什么 max_execution_time
pm.max_children
之类都试过了

请问大神这个到底是什么原因,我知道 pydio 太吃资源不适合在路由器上搭
就是想试试先,难道是配置太低才跑不动吗?
3533 次点击
所在节点    问与答
5 条回复
0ZXYDDu796nVCFxq
2017-08-30 18:39:11 +08:00
Required PHP Extension: IonCube Loader
Cache: Apc/ApcU PHP Extension, or additional Redis server
RAM : 8GB / 100 Users

开 debug 日志吧
CatSama
2017-08-30 21:33:23 +08:00
@gstqc nginx 开了 debug 日志没什么变化,多了几条正常启动的,报错还是那一条

扩展 我记得他们都是搭完访问 index.php 自动运行检查页面,之后提示的,我是打开 index.php 直接 502
内存的话,最多 2,3 个人用,8GB/100 User 的话应该够吧
0ZXYDDu796nVCFxq
2017-08-30 22:00:25 +08:00
当然是 php 的 debug log
CatSama
2017-08-31 23:05:49 +08:00
@gstqc 好像没有多出什么有用的信息来。
CatSama
2017-09-01 00:04:19 +08:00
@gstqc

[01-Sep-2017 00:02:56.504236] DEBUG: pid 5336, fpm_pctl_perform_idle_server_maintenance(), line 379: [pool www] currently 0 active children, 5 spare children, 5 running children. Spawning rate 1
[01-Sep-2017 00:02:57.514266] DEBUG: pid 5336, fpm_pctl_perform_idle_server_maintenance(), line 379: [pool www] currently 0 active children, 5 spare children, 5 running children. Spawning rate 1
[01-Sep-2017 00:02:58.524303] DEBUG: pid 5336, fpm_pctl_perform_idle_server_maintenance(), line 379: [pool www] currently 0 active children, 5 spare children, 5 running children. Spawning rate 1
[01-Sep-2017 00:02:59.534326] DEBUG: pid 5336, fpm_pctl_perform_idle_server_maintenance(), line 379: [pool www] currently 0 active children, 5 spare children, 5 running children. Spawning rate 1
[01-Sep-2017 00:03:00.544392] DEBUG: pid 5336, fpm_pctl_perform_idle_server_maintenance(), line 379: [pool www] currently 0 active children, 5 spare children, 5 running children. Spawning rate 1
[01-Sep-2017 00:03:00.784329] DEBUG: pid 5336, fpm_got_signal(), line 76: received SIGCHLD
[01-Sep-2017 00:03:00.784541] WARNING: pid 5336, fpm_children_bury(), line 252: [pool www] child 5339 exited with code 1 after 66.901842 seconds from start
[01-Sep-2017 00:03:00.785262] NOTICE: pid 5336, fpm_children_make(), line 421: [pool www] child 7384 started
[01-Sep-2017 00:03:00.785462] DEBUG: pid 5336, fpm_event_loop(), line 419: event module triggered 1 events
[01-Sep-2017 00:03:01.554391] DEBUG: pid 5336, fpm_pctl_perform_idle_server_maintenance(), line 379: [pool www] currently 0 active children, 5 spare children, 5 running children. Spawning rate 1
[01-Sep-2017 00:03:02.564470] DEBUG: pid 5336, fpm_pctl_perform_idle_server_maintenance(), line 379: [pool www] currently 0 active children, 5 spare children, 5 running children. Spawning rate 1
[01-Sep-2017 00:03:03.574464] DEBUG: pid 5336, fpm_pctl_perform_idle_server_maintenance(), line 379: [pool www] currently 0 active children, 5 spare children, 5 running children. Spawning rate 1
[01-Sep-2017 00:03:04.584492] DEBUG: pid 5336, fpm_pctl_perform_idle_server_maintenance(), line 379: [pool www] currently 0 active children, 5 spare children, 5 running children. Spawning rate 1
[01-Sep-2017 00:03:05.594522] DEBUG: pid 5336, fpm_pctl_perform_idle_server_maintenance(), line 379: [pool www] currently 0 active children, 5 spare children, 5 running children. Spawning rate 1
[01-Sep-2017 00:03:06.604548] DEBUG: pid 5336, fpm_pctl_perform_idle_server_maintenance(), line 379: [pool www] currently 0 active children, 5 spare children, 5 running children. Spawning rate 1


中间那几条就是 debug 模式我访问 pydio 的时候的信息

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/386957

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX