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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > General > HTTP status 503 while HEAD request

Reply
 
Thread Tools Display Modes
  #1  
Old 07-14-2008, 07:30 AM
KAhlers KAhlers is offline
New Member
 
Join Date: May 2008
Posts: 8
Exclamation HTTP status 503 while HEAD request

Hello,

I've got a problem regarding HEAD-requests on the LSWS. I'm using version 3.3.15 and rails 2.

Code:
2008-07-14 16:01:54.044 [INFO] [*.*.*.*:56997-0#Default:lsapi] connection to [uds://tmp/lshttpd/Default:_.sock] on request #13, error: Connection reset by peer!
2008-07-14 16:01:54.044 [NOTICE] [*.*.*.*:56997-0#Default:lsapi] oops! 503 Service Unavailable
2008-07-14 16:01:54.044 [NOTICE] [*.*.*.*:56997-0#Default:lsapi] Content len: 0, Request line:
HEAD /uptime HTTP/1.1
2008-07-14 16:01:54.044 [NOTICE] [*.*.*.*:56997-0#Default:lsapi] Redirect: #1, URL: /dispatch.lsapi
In the log entry I had to mask the IP of the access for security reasons but I think they are not necessary.

Every time the request is made by curl there is no problem and it is responded with a status of 200.

lwp-request or the siteuptime.com-monitor will get every time an error 503.

The logexcerpt above is made from an lwp-request.

Does anyone know this problem or a solution?

Kind regards,
K. Ahlers
Reply With Quote
  #2  
Old 07-14-2008, 10:44 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
Please enable the debug logging in LSWS, also check Rails log.
Looks like Rails app crashed while handling the HEAD request.
You can also try curl with a HEAD request.
Reply With Quote
  #3  
Old 07-15-2008, 12:12 AM
KAhlers KAhlers is offline
New Member
 
Join Date: May 2008
Posts: 8
Hello,

the log above is from the HIGH-debug level.

In the rails log I can't find anything which looks like a crashed rails app.

With curl the request (HEAD) returns a status 200, with others 503.

Best Regards,
K. Ahlers
Reply With Quote
  #4  
Old 07-15-2008, 04:29 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
Have you tried mongrel or other RoR server?
It might be Rails internal bug.
What you can do is to strace the ruby process to find out why lwp crash it.
Reply With Quote
  #5  
Old 07-16-2008, 03:14 AM
KAhlers KAhlers is offline
New Member
 
Join Date: May 2008
Posts: 8
Together with a technican I've investigated the problem again and it seems like it was a problem in the rails app.

Thank you for your help.
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 05:25 AM.



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