CentOS 7, Nginx 502 error

402 views
Skip to first unread message

cjc15153

unread,
Sep 6, 2014, 12:39:47 PM9/6/14
to sea...@googlegroups.com

Greetings,

Seafile did work properly when I used port 8000, but I am trying to get Seafile to use Nginx as a reverse-proxy.  I have not configured SSL yet.

Nginx serves up a 502 Bad Gateway error when I visit the domain. 

I have followed the instructions on how to set up nginx.  The seafile error log says: "2014/09/06 12:16:00 [crit] 5601#0: *1 connect() to 127.0.0.1:8000 failed (13: Permission denied) while connecting to upstream, client: xx.xx.xx.xx, server: sea.xxx.net, request: "GET /favicon.ico HTTP/1.1", upstream: "fastcgi://127.0.0.1:8000", host: "sea.xxx.net""

I think it may be a file permission problem.  The Seafile is running as the seafile user in the Seafile user home.
Nginx is running as its own user.

PHP-FPM is owned by root.
srw-rw-rw-. 1 root root 0 Sep  6 12:15 /var/run/php-fpm/php-fpm.sock

I briefly have go+x on the file, but it did not help.


Any ideas?

Thank you

Shuai Lin

unread,
Sep 6, 2014, 1:19:50 PM9/6/14
to sea...@googlegroups.com
Seafile has nothing to do with php-fpm. Did you start seahub with "./seahub.sh start-fastcgi"?




--
You received this message because you are subscribed to the Google Groups "seafile" group.
To unsubscribe from this group and stop receiving emails from it, send an email to seafile+u...@googlegroups.com.
To post to this group, send email to sea...@googlegroups.com.
Visit this group at http://groups.google.com/group/seafile.
For more options, visit https://groups.google.com/d/optout.

cjc15153

unread,
Sep 6, 2014, 1:49:04 PM9/6/14
to sea...@googlegroups.com
Thank you for the fast reply.  I am using seahub.sh start-fastcgi.  

I must have nginx misconfigured somehow.
Message has been deleted

Dev1L89

unread,
Apr 24, 2015, 6:46:09 AM4/24/15
to sea...@googlegroups.com
Hi, I had the same problem, whether it was succeeded to solve it in what there was a problem?

cjc15153

unread,
Apr 24, 2015, 12:12:28 PM4/24/15
to sea...@googlegroups.com
I gave up, actually.  Sorry.

Jiří Martínek

unread,
Jul 3, 2015, 5:04:38 AM7/3/15
to sea...@googlegroups.com
Temporary solution is:
# setenforce 0
It has something to do with SElinux. It is not good idea to disable it permanently... ;-)

Dne pátek 24. dubna 2015 18:12:28 UTC+2 cjc15153 napsal(a):
Reply all
Reply to author
Forward
0 new messages