seafile+ nginx on centos7 502 错误

2017-03-04 07:53:56 +08:00
 qzheng93

各位大神赐教,

FILE_SERVER_ROOT = 'https://XXX/seafhttp'

SERVICE_URL = https://XXX

seahub.sh start-fastcgi

都是按照文档里面配置的。 firewalld 也关了。

seafile 装在 docker 里面, docker 外 curl 错误:

curl: (56) Recv failure: Connection reset by peer

直接访问域名出现 502 错误,可以访问 seafdav 界面。

2800 次点击
所在节点    问与答
5 条回复
Eleutherios
2017-03-04 09:18:21 +08:00
哪个 docker image?

docker run 的参数是什么?

docker exec CONTAINER netstat -ntpl 的返回结果是什么?

firewalld 为什么关?明明可以只开端口……
Eleutherios
2017-03-04 09:18:55 +08:00
docker 里的 logs 你都看过了么?
/PATH/TO/SEAFILE/logs/*.log
qzheng93
2017-03-04 09:58:03 +08:00
@Eleutherios
多谢大神回复,

萌新。。 firewall 不太会用就先关了。

docker 里面没有 netstat 也没 yum ,就还没装,等下我下个包装一下。

docker run 的参数是这个:

docker run -d --name seafile_server -p 8000:8000 -p 8082:8082 -p 8080:8081 -v /home/seafile/:/opt/seafile/ -e workaround478=true jenserat/seafile

之前有带 -e fastcgi=true 也是一样的错误不知道有没有用就先删了。

docker 里面的 log ccnet ../common/peer.c(943): Local peer down

nginx 的 seahub.error.log 是这个错
recv() failed (104: Connection reset by peer) while reading response header from upstream
Eleutherios
2017-03-04 10:28:05 +08:00
nginx 的 seahub.error.log 是这个错
recv() failed (104: Connection reset by peer) while reading response header from upstream

意味着 upstream 的 seahub 出错
所以你应该查 $SEAFILE_PATH/logs/seahub.log

如果你愿意的话,可以试试这个:
https://github.com/coeusite/coeusite.github.io/blob/master/_posts/2016-09-27-Docker-Containers-on-My-Dedibox.adoc
https://hub.docker.com/r/coeusite/docker-seafile/
qzheng93
2017-03-04 10:41:11 +08:00
@Eleutherios 我 seahub 的 log 是空的。我之后试一下这个镜像~

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

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

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

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

© 2021 V2EX