LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > General > 503 errors until restart on some virtual hosts only

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 10-04-2012, 11:44 AM
dataiv dataiv is offline
New Member
 
Join Date: Oct 2009
Posts: 7
Default 503 errors until restart on some virtual hosts only

Hi,
I am running LSWS 4.2 Standard and am having problems only sometimes with 503 errors on some virtual hosts only. I get no 503 errors for a long time (the last stretch was 2 weeks), then all of a sudden I get 503 errors constantly for that site with no requests working at all. The logs don't show anything but messages like this for the virtual hosts that are affected. It looks fine with processes starting and stopping until all of a sudden it starts failing to connect and giving 503s:

Code:
2012-09-20 01:57:14.408 [INFO] Remove pid: 27939, exitcode: 0
2012-09-20 01:57:15.638 [INFO] Remove pid: 27937, exitcode: 0
2012-09-20 01:57:25.836 [INFO] [157.55.32.111:31752-0#site136] connection to [/tmp/lshttpd/lsphp5-site136.sock] on request #0, confirmed, 0, associated process: 25224, running: 0, error: No such file or directory!
2012-09-20 01:57:25.836 [INFO] [uds://tmp/lshttpd/lsphp5-site136.sock] Connection refused, restart!
2012-09-20 01:57:25.836 [INFO] [157.55.32.111:31752-0#site136] connection to [/tmp/lshttpd/lsphp5-site136.sock] on request #0, confirmed, 0, associated process: 25224, running: 0, error: No such file or directory!
2012-09-20 01:57:25.836 [INFO] [uds://tmp/lshttpd/lsphp5-site136.sock] Connection refused, restart!
2012-09-20 01:57:25.836 [INFO] [157.55.32.111:31752-0#site136] connection to [/tmp/lshttpd/lsphp5-site136.sock] on request #0, confirmed, 0, associated process: 25224, running: 0, error: No such file or directory!
2012-09-20 01:57:25.836 [INFO] [uds://tmp/lshttpd/lsphp5-site136.sock] Connection refused, restart!
2012-09-20 01:57:25.836 [NOTICE] [157.55.32.111:31752-0#site136] Max retries has been reached, 503!
2012-09-20 01:57:25.836 [NOTICE] [157.55.32.111:31752-0#site136] oops! 503 Service Unavailable^M
2012-09-20 01:57:25.836 [NOTICE] [157.55.32.111:31752-0#site136] Content len: 0, Request line: 'GET /artist/70/29/1 HTTP/1.1'
2012-09-20 01:57:25.836 [NOTICE] [157.55.32.111:31752-0#site136] Redirect: #1, URL: /index.php
It doesn't stop doing this until I restart lsws, then the problem is magically fixed for some time again. Every PHP request gets a 503. Yet at the same time, other virtual hosts that aren't affected don't have the problem. Each virtual host has its own PHP handler to allow the PHP processes to all to run as the individual user.

I am surprised that it doesn't self-recover and stop giving 503s after a while, but even 12 hours later it still gives 503s on one virtual host and others are working just fine. Why isn't it retrying, and why does it have to wait until I restart lsws before it starts working again? Is there a way to force that to happen if it gets into this state automatically?

I am completely out of ideas and have tried tuning things lots. Any help / ideas would be appreciated.

For each vhost I have "ExtApp Set UID Mode" set to DocRoot UID and the PHP configuration is like it is in the attached image.

Thanks!
Attached Images
File Type: jpg lsws_lsphp.jpg (53.2 KB, 5 views)
Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 11:43 AM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.