V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
CatSama
V2EX  ›  问与答

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

  •  
  •   CatSama · 2017-08-30 18:02:10 +08:00 · 3537 次点击
    这是一个创建于 2647 天前的主题,其中的信息可能已经有所发展或是发生改变。
    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 太吃资源不适合在路由器上搭
    就是想试试先,难道是配置太低才跑不动吗?
    5 条回复    2017-09-01 00:04:19 +08:00
    0ZXYDDu796nVCFxq
        1
    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
        2
    CatSama  
    OP
       2017-08-30 21:33:23 +08:00
    @gstqc nginx 开了 debug 日志没什么变化,多了几条正常启动的,报错还是那一条

    扩展 我记得他们都是搭完访问 index.php 自动运行检查页面,之后提示的,我是打开 index.php 直接 502
    内存的话,最多 2,3 个人用,8GB/100 User 的话应该够吧
    0ZXYDDu796nVCFxq
        3
    0ZXYDDu796nVCFxq  
       2017-08-30 22:00:25 +08:00 via iPhone
    当然是 php 的 debug log
    CatSama
        4
    CatSama  
    OP
       2017-08-31 23:05:49 +08:00
    @gstqc 好像没有多出什么有用的信息来。
    CatSama
        5
    CatSama  
    OP
       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 的时候的信息
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1093 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 22:31 · PVG 06:31 · LAX 14:31 · JFK 17:31
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.