线上生产服务器报 502 Bad Gateway

操作系统:centos 7
Seafile版本:6.0.7
日志seafile.log 和seahub.log ,如下:


问题:502 Bad Gateway

3月7日,通过重启服务器解决,当时没在意。
3月8日,问题再次出现,通过重启没有解决,所以在bbs发帖,寻求各位支持与分享解决思路。


更新
添加nginx日志


添加端口状态

最终问题解决方法:

早上执行 ./seahub.sh start-fastcgi 一次搞定

有个诡异问题是,昨晚我也同样敲了这条命令 ,结果是没有解决

用户的动作是
3月7日凌晨12点左右,用户A上传了共计10GB文件(主要是图片)到一个有30人的共享资料库。出现过1次 502 bad gateway ,然后重启服务器解决。
3月8日9点左右出现502 bad gateway 之前,一直有客户端在将同步10GB文件同步到本地。一直持续到问题解决这会,还有客户端在操作将10GB文件同步到本地。

上传大文件,看看这个有没有帮助

Tip for uploading very large files (> 4GB): By default Nginx will buffer large request bodies in temp files. After the body is completely received, Nginx will send the body to the upstream server (seaf-server in our case). But it seems when the file size is very large, the buffering mechanism dosen’t work well. It may stop proxying the body in the middle. So if you want to support file uploads larger than 4GB, we suggest to install Nginx version >= 1.8.0 and add the following options to Nginx config file:

    location /seafhttp {
        ... ...
        proxy_request_buffering off;
    }

https://manual.seafile.com/deploy/deploy_with_nginx.html

@lian
感谢!
已添加操作。

3月10日(本周五)切换使用新的Seafile服务器,这边会有将近预计 >100GB文件上传到服务器。
可以检测此动作的有效性。
我这边及时同步结果。

@lian
通过nginx设置了proxy_request_buffering_off;
周末传输了100+GB文件到Seafile资料库,未出现问题。

未出现问题。 :+1::+1::+1::+1::+1::+1: