getting tons of 503 errors

Discussion in 'General' started by bhanuprasad1981, Aug 11, 2011.

  1. bhanuprasad1981

    bhanuprasad1981 New Member

    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: Aug 11, 2011
  2. webizen

    webizen New Member

    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.

  3. webizen

    webizen New Member

    please increase lsphp5 (external app) process limit.

  4. bhanuprasad1981

    bhanuprasad1981 New Member

    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. bhanuprasad1981

    bhanuprasad1981 New Member

    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 .
  6. webizen

    webizen New Member

    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
    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
  7. bhanuprasad1981

    bhanuprasad1981 New Member

    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
    
  8. NiteWave

    NiteWave Administrator

    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. bhanuprasad1981

    bhanuprasad1981 New Member

    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
    
  10. NiteWave

    NiteWave Administrator

    looks ok.
    maybe use original
    --with-mysqli=/usr/bin/mysql_config
    than
    --with-mysqli

    is better or either is ok.

Share This Page