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

Go Back   LiteSpeed Support Forums > External Applications > PHP > 503 Errors / LSAPI Packet Header is Invalid

Reply
 
Thread Tools Display Modes
  #1  
Old 02-26-2009, 02:34 PM
bkonia bkonia is offline
Member
 
Join Date: Sep 2005
Posts: 16
Default 503 Errors / LSAPI Packet Header is Invalid

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.
Reply With Quote
  #2  
Old 02-26-2009, 06:14 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,585
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.
Reply With Quote
  #3  
Old 02-26-2009, 06:22 PM
bkonia bkonia is offline
Member
 
Join Date: Sep 2005
Posts: 16
Is this problem specific to LiteSpeed? Can it be fixed?
Reply With Quote
  #4  
Old 02-27-2009, 03:49 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,585
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.
Reply With Quote
  #5  
Old 02-28-2009, 11:48 AM
bkonia bkonia is offline
Member
 
Join Date: Sep 2005
Posts: 16
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.
Reply With Quote
  #6  
Old 02-28-2009, 07:14 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,585
you need to patch utility/buildPHPExecute.php before we release an update.
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 09:02 PM.



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