502 Bad Gateway - nginx/1.1.19

906 views
Skip to first unread message

a.ho...@bc-cesu.ch

unread,
Jun 27, 2014, 7:09:47 AM6/27/14
to ica-ato...@googlegroups.com
Hello,

Strange thing happening this morning.I am unable to reach our ica-atom 2.0.1 website. I get a 502 Bad Gateway error. It was working and I don't know why this is suddenly happening to me!

I looked in the error log for nginx and here is the content:


2014/06/27 08:38:51 [crit] 915#0: *157 connect() to unix:/var/run/php5-fpm.atom.sock failed (2: No such file or directory) while connecting to upstream, client: 10.192.121.98, server: _, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.atom.sock:", host: "10.192.121.56"

2014/06/27 08:56:45 [crit] 893#0: *1 connect() to unix:/var/run/php5-fpm.atom.sock failed (13: Permission denied) while connecting to upstream, client: 10.192.121.98, server: _, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.atom.sock:", host: "10.192.121.56"

 
The php5-fpm.atom.sock file exists. It seems it has a size of 0.

Can someone help me out of this situation?

Thanks for the help.

Andrew

David Juhasz

unread,
Jun 27, 2014, 11:26:23 AM6/27/14
to ica-ato...@googlegroups.com
Hi Andrew,

This problem seems to be caused by a recent Ubuntu security update to php5, see: http://stackoverflow.com/questions/23443398/nginx-error-connect-to-php5-fpm-sock-failed-13-permission-denied

The solution is to add the following lines to your /etc/php5/fpm/pool.d/atom.conf file:

listen.owner = www-data
listen.group = www-data
listen.mode = 0660


Then restart the php5-fpm with the following command:

sudo /etc/init.d/php5-fpm restart


Best regards,
David

--

David Juhasz
Director, AtoM Technical Services Artefactual Systems Inc. www.artefactual.com


--
You received this message because you are subscribed to the Google Groups "ICA-AtoM Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ica-atom-user...@googlegroups.com.
To post to this group, send email to ica-ato...@googlegroups.com.
Visit this group at http://groups.google.com/group/ica-atom-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/ica-atom-users/5614f7e7-d392-48f5-aa61-6c60136793f6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages