503 Errors

MikeDVB

Well-Known Member
#1
A customer is having an issue with intermittent 503 Errors and I took a look at the LSWS error logs but I'm not 100% sure why this is occurring. Looking for some insight.

Code:
2010-06-29 07:28:54.624	INFO	[255.255.255.255:25882-0#APVH_redacted.org] connection to [/tmp/lshttpd/APVH_redacted.org_Suphp.sock.813] on request #37, confirmed, 1, associated process: 10187, running: 1, error: Connection reset by peer!
2010-06-29 07:28:54.730	INFO	[255.255.255.255:25882-0#APVH_redacted.org] connection to [/tmp/lshttpd/APVH_redacted.org_Suphp.sock.813] on request #0, confirmed, 1, associated process: 10187, running: 1, error: Connection reset by peer!
2010-06-29 07:28:54.831	INFO	[255.255.255.255:25882-0#APVH_redacted.org] connection to [/tmp/lshttpd/APVH_redacted.org_Suphp.sock.813] on request #0, confirmed, 1, associated process: 10187, running: 1, error: Connection reset by peer!
2010-06-29 07:28:54.831	NOTICE	[255.255.255.255:25882-0#APVH_redacted.org] Max retries has been reached, 503!
2010-06-29 07:28:54.831	NOTICE	[255.255.255.255:25882-0#APVH_redacted.org] oops! 503 Service Unavailable
And yes, I did edit out the original IP and domain name to protect the client's personal account information :)
 

mistwang

LiteSpeed Staff
#2
most likely the request crashed PHP, LSWS tried three times, always crash PHP.
To trouble shoot this, the easiest way is to switch back to apache, put LSWS on a port offset, so only you can access litespeed.
change "max idle" of lsphp5 external app to a longer value like 300 seconds, then send a request that does not crash PHP for that account, one PHP process for that account will be fired up, then use "GDB" to attach to that process, send the request crash PHP, GDB will catch the call stack of crashing PHP, use the call stack to find out what is wrong.
 
Top