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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > General > getting tons of 503 errors

Reply
 
Thread Tools Display Modes
  #1  
Old 08-11-2011, 12:02 PM
bhanuprasad1981 bhanuprasad1981 is offline
Senior Member
 
Join Date: Apr 2009
Posts: 160
Exclamation getting tons of 503 errors

customers are complaining lot of 503 errors , thought upgrading cpu lisense will get rid of it , but no still errors continues, i checked logs and found lot of these type of errors :-

Code:
[70.37.109.5:62477-0#APVH_mysite.com] No request delivery notification has been received from LSAPI process group [12376], possible run away process.
2011-08-11 05:51:28.026	INFO	[70.37.109.5:62477-0#APVH_mysite.com] connection to [/tmp/lshttpd/lsphp5.sock] on request #0, confirmed, 0, associated process: 12376, running: 1, error: Connection timed out!
2011-08-11 05:51:28.026	NOTICE	[70.37.109.5:62477-0#APVH_mysite.com] Suspicious request timeout, associated process: 12376, running: 1.
2011-08-11 05:51:28.026	NOTICE	[70.37.109.5:62477-0#APVH_mysite.com] Max retries has been reached, 503!
2011-08-11 05:51:28.026	NOTICE	[122.54.178.115:39385-0#APVH_mysite.com] No request delivery notification has been received from LSAPI process group [12376], possible run away process.
2011-08-11 05:51:28.026	NOTICE	[122.54.178.115:39385-0#APVH_mysite.com] Retry with new process group.
another type error in logs :-

Code:
[67.215.248.244:47840-0#APVH_mysite.mysite.com] connection to [/tmp/lshttpd/lsphp5.sock] on request #0, confirmed, 0, associated process: 12376, running: 1, error: Resource temporarily unavailable!
Code:
[70.37.60.245:49608-0#APVH_site.net] POST request in process stage, fail with 503

Last edited by bhanuprasad1981; 08-11-2011 at 12:05 PM..
Reply With Quote
  #2  
Old 08-11-2011, 12:08 PM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,390
this is likely a PHP code problem that crashes LSPHP process. you may want to check stderr.log and/or run the php script from command line to narrow down the code issue.

Quote:
2011-08-11 05:51:28.026 INFO [70.37.109.5:62477-0#APVH_mysite.com] connection to [/tmp/lshttpd/lsphp5.sock] on request #0, confirmed, 0, associated process: 12376, running: 1, error: Connection timed out!
2011-08-11 05:51:28.026 NOTICE [70.37.109.5:62477-0#APVH_mysite.com] Suspicious request timeout, associated process: 12376, running: 1.
2011-08-11 05:51:28.026 NOTICE [70.37.109.5:62477-0#APVH_mysite.com] Max retries has been reached, 503!
Reply With Quote
  #3  
Old 08-11-2011, 12:12 PM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,390
please increase lsphp5 (external app) process limit.

Quote:
Originally Posted by bhanuprasad1981 View Post
another type error in logs :-

Code:
[67.215.248.244:47840-0#APVH_mysite.mysite.com] connection to [/tmp/lshttpd/lsphp5.sock] on request #0, confirmed, 0, associated process: 12376, running: 1, error: Resource temporarily unavailable!
Reply With Quote
  #4  
Old 08-11-2011, 12:17 PM
bhanuprasad1981 bhanuprasad1981 is offline
Senior Member
 
Join Date: Apr 2009
Posts: 160
Quote:
Originally Posted by webizen View Post
this is likely a PHP code problem that crashes LSPHP process. you may want to check stderr.log and/or run the php script from command line to narrow down the code issue.
its not for one site but many sites all are vbulletin sites, any how as per you other reply i have increased process limit a bit
before soft 200 now 300
before hard 300 now 400

hope it works
Reply With Quote
  #5  
Old 08-11-2011, 12:43 PM
bhanuprasad1981 bhanuprasad1981 is offline
Senior Member
 
Join Date: Apr 2009
Posts: 160
also i am failing to install / activate xcache on server, installing xcache regular way way is not working , if i try compile php using litespeed admin option , i am missing too many modules like ionciube, mysql etc please help , i cant even pm you .
Reply With Quote
  #6  
Old 08-11-2011, 03:15 PM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,390
if install xcache from source (http://xcache.lighttpd.net/wiki/InstallFromSource) and build shared module (.so file), you need to specify correct path to phpize (for lsphp5, it is usually /usr/local/lsws/lsphp5/bin/phpize). to activate, run
Quote:
cat xcache.ini >> /path/to/php.ini (e.g. /usr/local/lsws/lsphp5/lib/php/php.ini)
service lsws restart
if compile php with lsws admin cp, you need to '--with-mysql' compilation option for mysql.

for ioncube module, just download from http://www.ioncube.com/loaders.php and add entry in php.ini
Quote:
zend_extension="/path/to/ioncube_loader_lin_x.x.so"
Reply With Quote
  #7  
Old 08-11-2011, 08:15 PM
bhanuprasad1981 bhanuprasad1981 is offline
Senior Member
 
Join Date: Apr 2009
Posts: 160
i see in phpinfo, these are php configure when i use match php option :-

Code:
'./configure' '--enable-bcmath' '--enable-calendar' '--enable-ftp' '--enable-libxml' '--enable-mbstring' '--enable-pdo=shared' '--enable-sockets' '--prefix=/usr/local' '--with-curl=/opt/curlssl/' '--with-gd' '--with-imap=/opt/php_with_imap_client/' '--with-imap-ssl=/usr' '--with-jpeg-dir=/usr' '--with-kerberos' '--with-libdir=lib64' '--with-libxml-dir=/opt/xml2/' '--with-mcrypt=/opt/libmcrypt/' '--with-mysql=/usr' '--with-mysql-sock=/var/lib/mysql/mysql.sock' '--with-mysqli=/usr/bin/mysql_config' '--with-openssl=/usr' '--with-openssl-dir=/usr' '--with-pcre-regex=/opt/pcre' '--with-pdo-mysql=shared' '--with-pdo-sqlite=shared' '--with-pic' '--with-png-dir=/usr' '--with-sqlite=shared' '--with-xpm-dir=/usr' '--with-zlib' '--with-zlib-dir=/usr' '--with-litespeed'

when i try to compile directly using litespeed i only see these :-

Code:
--with-mysqli --with-zlib --with-gd --enable-shmop --enable-track-vars --enable-sockets --enable-sysvsem --enable-sysvshm --enable-magic-quotes --enable-mbstring --with-iconv
Reply With Quote
  #8  
Old 08-11-2011, 09:24 PM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,297
Quote:
when i try to compile directly using litespeed i only see these :-
those are default options, change them to match php option, and check XCache option. so you can build matching php at lsws admin console.
Reply With Quote
  #9  
Old 08-12-2011, 01:01 AM
bhanuprasad1981 bhanuprasad1981 is offline
Senior Member
 
Join Date: Apr 2009
Posts: 160
can i use this command

Code:
--with-mysql=/usr --with-mysql-sock=/var/lib/mysql/mysql.sock  --with-mysqli --with-zlib --with-gd --enable-shmop --enable-track-vars --enable-sockets --enable-sysvsem --enable-sysvshm --enable-magic-quotes --enable-mbstring --with-iconv --enable-bcmath --enable-calendar --enable-ftp --enable-libxml --enable-pdo=shared --with-curl=/opt/curlssl/ --with-imap=/opt/php_with_imap_client/ --with-imap-ssl=/usr --with-jpeg-dir=/usr --with-kerberos --with-libdir=lib64 --with-libxml-dir=/opt/xml2/ --with-mcrypt=/opt/libmcrypt/ --with-openssl=/usr --with-openssl-dir=/usr --with-pcre-regex=/opt/pcre --with-pdo-mysql=shared --with-pdo-sqlite=shared --with-pic --with-png-dir=/usr --with-sqlite=shared --with-xpm-dir=/usr --with-zlib --with-zlib-dir=/usr --with-litespeed
Reply With Quote
  #10  
Old 08-12-2011, 02:23 AM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,297
looks ok.
maybe use original
--with-mysqli=/usr/bin/mysql_config
than
--with-mysqli

is better or either is ok.
Reply With Quote
Reply

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 04:34 AM.



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