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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > General > 503, but no logs, or explanation...

Reply
 
Thread Tools Display Modes
  #1  
Old 05-24-2009, 12:48 PM
amaltemara amaltemara is offline
Member
 
Join Date: Dec 2007
Posts: 29
Question 503, but no logs, or explanation...

I'm getting this error, and a 503 page, but no other logs...

2009-05-24 15:45:21.296 [NOTICE] [96.25.25.71:10237-0#forms-redirect] [uds://tmp/lshttpd/forms-redirect:_.sock] Request in process stage, fail with 503

I'm trying to set up a rails app with the ez context, but isn't this a general concern with lsws? I don't know how to get better logging info...

Anyone know where I can look?

TIA

-Anthony
Reply With Quote
  #2  
Old 05-24-2009, 02:07 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
You should try the 4.0.4 build by changing the version number in the download link.
With earlier release, you may get 503 error during application startup when Rails app was started on demand and the frame work takes more than 15 seconds to initialize.
4.0.4 should take care of it.

You can set "Run on start up" to have you app start with LSWS.
http://www.litespeedtech.com/docs/we.../#runOnStartUp
Reply With Quote
  #3  
Old 05-28-2009, 07:08 AM
subBlue subBlue is offline
Member
 
Join Date: Oct 2006
Posts: 42
We are also experiencing this problem. Using the beta 64bit 4.0.4-ent version for linux ( http://www.litespeedtech.com/package...4-linux.tar.gz ). We had to manually copy the RailsRunner.rb and RailsRunner.rb.2.3 files over to /usr/local/lsws/fcgi-bin to get the rails 2.3.2 app running. However, after multiple restarts the app is 503-ing again. LS seems very unstable with rails 2.3.2!

We're currently running over 20 rails apps on this particular server so enabling the "Run on startup" option isn't good for us as all the rails apps starting up at the same time tends to freeze everything for a minute or two until everything is loaded.

Any update with LS and Rails 2.3.2 as we have a couple of sites we need to deploy very soon?
Reply With Quote
  #4  
Old 05-28-2009, 10:13 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
Does the 503 happen to the first request? randomly? or constantly?
Only with rails 2.3.2?

GEM_RAILS_VERSION need to be defined in the environment.rb in order to use RailsRunner.rb to run rails 2.3.2 application.
Reply With Quote
  #5  
Old 05-28-2009, 01:24 PM
subBlue subBlue is offline
Member
 
Join Date: Oct 2006
Posts: 42
The 503 happens most of the time - we have had the site up and running about twice in about 10 restarts. All our apps have GEMS_RAILS_VERSION defined the in the environment.rb. We're using Ruby Enterprise version 1.8.6 (2008-08-08 patchlevel 286) [x86_64-linux] on centos 5.2

The other rails apps on there are using rails 2.0.5 and 1.1.6 and no problems with them.
Reply With Quote
  #6  
Old 05-28-2009, 05:44 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
Does it always return 503 no matter how many times you access it? or only have 503 for the first request?

Maybe the best way to trouble shoot this is to login to your server and take a look.
Otherwise, you need to find a way to strace the ruby process that handling the request result in 503.
Reply With Quote
  #7  
Old 06-01-2009, 05:38 AM
subBlue subBlue is offline
Member
 
Join Date: Oct 2006
Posts: 42
It 503's all the time - although still in 1 out of about 5 restarts it will work and then doesn't 503 at all! The site will run fine via the console or webrick.

How do I go about stracing the ruby process?
Reply With Quote
  #8  
Old 06-01-2009, 07:37 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
Are all rails app run as the same user ID? Maybe you should increase the "Process soft/hard limit" under the rails tab.
Since it works sometimes, I think it is a resource limit problem.
Reply With Quote
  #9  
Old 06-09-2009, 09:09 AM
subBlue subBlue is offline
Member
 
Join Date: Oct 2006
Posts: 42
Thanks, I've doubled the process limits and things seem to be a little more stable now
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 03:39 AM.



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