getting tons of 503 errors

#1
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:

webizen

Well-Known Member
#2
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.

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!
 

webizen

Well-Known Member
#3
please increase lsphp5 (external app) process limit.

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!
 
#4
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
 
#5
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 .
 

webizen

Well-Known Member
#6
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
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
zend_extension="/path/to/ioncube_loader_lin_x.x.so"
 
#7
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
 

NiteWave

Administrator
#8
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.
 
#9
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
 
Top