503 Errors / LSAPI Packet Header is Invalid

Discussion in 'PHP' started by bkonia, Feb 26, 2009.

  1. bkonia

    bkonia New Member

    I'm getting intermittent 503 errors on the checkout page of my shopping cart. This appears to occur after the payment has been passed to the processor, because the payment is successful, but then it returns the error. Upon reviewing the error log, I see the following:

    2009-02-26 13:14:34.870 WARN [76.26.63.51:45512-1#Drupal] LSAPI Packet header is invalid,('N','o',' ','r','e','c','i','p')
    2009-02-26 13:14:34.870 INFO [76.26.63.51:45512-1#Drupal] connection to [uds://tmp/lshttpd/lsphp5.sock] on request #8, Input/output error!
    2009-02-26 13:14:35.161 WARN [76.26.63.51:45512-1#Drupal] LSAPI Packet header is invalid,('N','o',' ','r','e','c','i','p')
    2009-02-26 13:14:35.161 INFO [76.26.63.51:45512-1#Drupal] connection to [uds://tmp/lshttpd/lsphp5.sock] on request #3, Input/output error!
    2009-02-26 13:37:56.088 WARN [76.26.63.51:36273-1#Drupal] LSAPI Packet header is invalid,('N','o',' ','r','e','c','i','p')
    2009-02-26 13:37:56.088 INFO [76.26.63.51:36273-1#Drupal] connection to [uds://tmp/lshttpd/lsphp5.sock] on request #40, Input/output error!
    2009-02-26 13:37:56.277 WARN [76.26.63.51:36273-1#Drupal] LSAPI Packet header is invalid,('N','o',' ','r','e','c','i','p')
    2009-02-26 13:37:56.277 INFO [76.26.63.51:36273-1#Drupal] connection to [uds://tmp/lshttpd/lsphp5.sock] on request #5, Input/output error!
    2009-02-26 13:37:56.563 WARN [76.26.63.51:36273-1#Drupal] LSAPI Packet header is invalid,('N','o',' ','r','e','c','i','p')
    2009-02-26 13:37:56.563 INFO [76.26.63.51:36273-1#Drupal] connection to [uds://tmp/lshttpd/lsphp5.sock] on request #3, Input/output error!
    2009-02-26 13:37:56.563 NOTICE [76.26.63.51:36273-1#Drupal] oops! 503 Service Unavailable
    2009-02-26 13:37:56.563 NOTICE [76.26.63.51:36273-1#Drupal] Content len: 0, Request line:
    GET /cart/checkout/complete HTTP/1.1
    2009-02-26 13:37:56.563 NOTICE [76.26.63.51:36273-1#Drupal] Redirect: #1, URL: /index.php
    2009-02-26 13:39:07.447 WARN [76.26.63.51:34803-9#Drupal] LSAPI Packet header is invalid,('N','o',' ','r','e','c','i','p')
    2009-02-26 13:39:07.447 INFO [76.26.63.51:34803-9#Drupal] connection to [uds://tmp/lshttpd/lsphp5.sock] on request #9, Input/output error!
    2009-02-26 13:39:07.684 WARN [76.26.63.51:34803-9#Drupal] LSAPI Packet header is invalid,('N','o',' ','r','e','c','i','p')
    2009-02-26 13:39:07.684 INFO [76.26.63.51:34803-9#Drupal] connection to [uds://tmp/lshttpd/lsphp5.sock] on request #3, Input/output error!
    2009-02-26 13:39:07.967 WARN [76.26.63.51:34803-9#Drupal] LSAPI Packet header is invalid,('N','o',' ','r','e','c','i','p')
    2009-02-26 13:39:07.967 INFO [76.26.63.51:34803-9#Drupal] connection to [uds://tmp/lshttpd/lsphp5.sock] on request #3, Input/output error!
    2009-02-26 13:39:07.967 NOTICE [76.26.63.51:34803-9#Drupal] oops! 503 Service Unavailable
    2009-02-26 13:39:07.967 NOTICE [76.26.63.51:34803-9#Drupal] Content len: 0, Request line:
    GET /cart/checkout/complete HTTP/1.1
    2009-02-26 13:39:07.967 NOTICE [76.26.63.51:34803-9#Drupal] Redirect: #1, URL: /index.php
    2009-02-26 13:48:38.994 WARN [76.26.63.51:34837-1#Drupal] LSAPI Packet header is invalid,('N','o',' ','r','e','c','i','p')
    2009-02-26 13:48:38.994 INFO [76.26.63.51:34837-1#Drupal] connection to [uds://tmp/lshttpd/lsphp5.sock] on request #13, Input/output error!
    2009-02-26 13:48:39.204 WARN [76.26.63.51:34837-1#Drupal] LSAPI Packet header is invalid,('N','o',' ','r','e','c','i','p')
    2009-02-26 13:48:39.204 INFO [76.26.63.51:34837-1#Drupal] connection to [uds://tmp/lshttpd/lsphp5.sock] on request #9, Input/output error!
    2009-02-26 13:48:39.514 WARN [76.26.63.51:34837-1#Drupal] LSAPI Packet header is invalid,('N','o',' ','r','e','c','i','p')
    2009-02-26 13:48:39.514 INFO [76.26.63.51:34837-1#Drupal] connection to [uds://tmp/lshttpd/lsphp5.sock] on request #62, Input/output error!
    2009-02-26 13:48:39.514 NOTICE [76.26.63.51:34837-1#Drupal] oops! 503 Service Unavailable
    2009-02-26 13:48:39.514 NOTICE [76.26.63.51:34837-1#Drupal] Content len: 0, Request line:
    GET /cart/checkout/complete HTTP/1.1
    2009-02-26 13:48:39.514 NOTICE [76.26.63.51:34837-1#Drupal] Redirect: #1, URL: /index.php

    I'm running PHP 5.2.8 with eAccelerator. Any suggestions? One thing that jumps out at me is the "Content len: 0" error notice.
  2. mistwang

    mistwang LiteSpeed Staff

    One PHP module write "No recip..." string to STDOUT directly, which causes this error. usually, it is caused by "printf()" in PHP module written in C.
  3. bkonia

    bkonia New Member

    Is this problem specific to LiteSpeed? Can it be fixed?
  4. mistwang

    mistwang LiteSpeed Staff

    That's because lsphp and lshttpd communicated with each other using File handle 1 (STDOUT).

    We just released LiteSpeed PHP SAPI 4.9 to address this issue.
    If you use cPanel, just Build matching PHP binary again, you probably need to switch back to Apache, and remove /usr/local/lsws/fcgi-bin/lsphp-5.2.x in order to rebuild PHP binary.
    If you build PHP binary manually, just download the latest php-litespeed package.
  5. bkonia

    bkonia New Member

    I recompiled PHP using the LiteSpeed GUI, but it looks like it's still using the 4.8 SAPI. After the compilation is complete, I have php-litespeed-4.8.tgz in the phpbuild/php-5.2.8/sapi directory.
  6. mistwang

    mistwang LiteSpeed Staff

    you need to patch utility/buildPHPExecute.php before we release an update.

Share This Page