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

Go Back   LiteSpeed Support Forums > External Applications > Ruby/Rails > 503 error with Rails 2.3.2

Reply
 
Thread Tools Display Modes
  #11  
Old 05-02-2009, 08:52 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
I think an App generated by Rails 2.3.2 is likely to break with 2.2.2.
I only care about the result with 2.3.2.
If the app can be easily packed, please send it to bug@... , we can try it in our lab.
Reply With Quote
  #12  
Old 05-02-2009, 08:57 PM
jmackin jmackin is offline
Member
 
Join Date: Apr 2009
Posts: 22
Done... it's on its way.
Reply With Quote
  #13  
Old 05-03-2009, 06:12 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Your app works fine in our lab. So, it must be your local environment.
Please double check the RailsRunner.rb against the one in our installation package 4.0.2

Check if there are multiple version of Ruby installed and the correct one has been used.
Reply With Quote
  #14  
Old 05-03-2009, 08:06 PM
amaltemara amaltemara is offline
Member
 
Join Date: Dec 2007
Posts: 29
Question any luck?

I'm having 503 errors as well...

They seem to come more often when the server is under load, or this is the first request of this rails app since litespeed restarted...

I tried updating the timeouts in the rails virtual host conf... but they're pretty long, and still it's happening...
Reply With Quote
  #15  
Old 05-10-2009, 03:15 AM
jmackin jmackin is offline
Member
 
Join Date: Apr 2009
Posts: 22
OK... good to hear that it works at least.

Now, I'd probably need some help with all those checks because I'm not that solid in linux etc. But this is how far I've gotten:

First I did look for RailsRunner.rb on my server and this is the output:

/home/jms/sources/lsws-3.1/fcgi-bin/RailsRunner.rb
/home/jms/sources/lsws-4.0.2/fcgi-bin/RailsRunner.rb
/home/jms/sources/lsws-4.0.2/fcgi-bin/RailsRunner.rb.2.3
/usr/local/lsws/autoupdate/lsws-3.3.1/fcgi-bin/RailsRunner.rb
/usr/local/lsws/fcgi-bin/RailsRunner.rb
/usr/local/lsws/fcgi-bin/RailsRunner.rb.2.3

I have no RailsRunner.rb installed on my local machine.

I checked the versions with 'ruby -v'

Local: ruby 1.8.6 (2007-09-24 patchlevel 111) [x86_64-linux]
Server: ruby 1.8.6 (2007-09-23 patchlevel 110) [i686-darwin9.1.0]

I found the ruby installations here:

Local: /opt/local/lib/ruby/1.8
Server: /usr/lib/ruby/1.8

I can't seem to find other installations but I'm not sure how to look for them.

Is there anything else you'd need to know?
Reply With Quote
  #16  
Old 05-10-2009, 10:32 AM
pguy pguy is offline
Member
 
Join Date: Jul 2007
Posts: 28
Copy /home/jms/sources/lsws-4.0.2/fcgi-bin/RailsRunner.rb.2.3 to /usr/local/lsws/fcgi-bin/RailsRunner.rb

& /home/jms/sources/lsws-4.0.2/fcgi-bin/RailsRunner.rb.2.3 to /usr/local/lsws/fcgi-bin/RailsRunner.rb.2.3

and over write to ensure you have the latest RailsRunner.rb & .rb.2.3
Reply With Quote
  #17  
Old 05-13-2009, 04:09 PM
jmackin jmackin is offline
Member
 
Join Date: Apr 2009
Posts: 22
So far it looks like it's working... Extensive testing to come.

Thanks for your help. It's greatly appreciated.
Reply With Quote
  #18  
Old 05-25-2009, 08:40 AM
amaltemara amaltemara is offline
Member
 
Join Date: Dec 2007
Posts: 29
Question outdated RailsRunner.rb??

Quote:
Originally Posted by pguy View Post
Copy /home/jms/sources/lsws-4.0.2/fcgi-bin/RailsRunner.rb.2.3 to /usr/local/lsws/fcgi-bin/RailsRunner.rb

& /home/jms/sources/lsws-4.0.2/fcgi-bin/RailsRunner.rb.2.3 to /usr/local/lsws/fcgi-bin/RailsRunner.rb.2.3

and over write to ensure you have the latest RailsRunner.rb & .rb.2.3


Is this something we must manually do everytime we upgrade?

Also, How can we serve both rails v2.3 and rails v2.2 on the save server? Does our virtual host automatically choose between the two?
Reply With Quote
  #19  
Old 05-26-2009, 01:40 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Please check the RailsRunner.rb in the latest 4.0.x release, it should be compatible with both v2.2 and v2.3.

You may need to explicitly specify the rails version with "RAILS_GEM_VERSION" in environment.rb if you want to use rails 2.3.x
Reply With Quote
  #20  
Old 06-23-2009, 03:05 PM
palb palb is offline
Senior Member
 
Join Date: Jul 2007
Posts: 143
I got the same problem. Works with WEBRick server.
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 07:18 PM.



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