On Sun, Sep 07, 2014 at 07:15:46PM -0400, nfn wrote:
Hi,
I’m getting lots of 502 errors but my nginx logs and php logs don’t give me
information that can help me identify the problem.
I only have the 502 errors in the access logs. I don’t see any errors in the
error.log or php logs.
Fist, how can I configure nginx and php so I can get more information about
the problem?
If the 502 error is returned by nginx, the reason should be logged
to error log, at the “error” level or higher.
If you don’t see anything in your error log, this may mean one of
the following:
The error was returned by the backend. (Highly unlikely in case of
php-fpm, AFAIK.)
You are looking into the wrong log, or your error log is configured
to only log errors with higher levels. See Core functionality for details on configuring error
logging.
It is also possible to configure nginx to write debugging logs,
with all low-level information about request processing, see here:
Can you help me understand why I have these random 502 error?
Thanks
Have you looked at dmesg? It doesn’t look related to nginx.
That can be caused by segfaults in php-fpm processes, so
you should check what happens with them.
Just find out some clues and these are related to segmentation faults.
In php logs ia have: WARNING: [pool www] child 20050 exited on signal 11
(SIGSEGV) after 57.791598 seconds from start
in /var/log/messages I have :php5-fpm[2791]: segfault at fffffffa ip
0832d6d4 sp bf8e51c0 error 5 in php5-fpm[8048000+835000]
I’m running Debian wheezy with dotdeb repo (5.5.16-1~dotdeb.1) and
opcache
with apcu.
This neve happened to me. Should I try to change to xcache with
memcache?
Any suggestions?
Thanks
Posted at Nginx Forum:
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.