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

Go Back   LiteSpeed Support Forums > External Applications > Ruby/Rails > 503 Service Unavailable - Can't access my Rails app

Reply
 
Thread Tools Display Modes
  #1  
Old 10-17-2006, 06:01 AM
Granny Smith Granny Smith is offline
Member
 
Join Date: Oct 2006
Posts: 28
Default 503 Service Unavailable (solved) - but now 404

I didn't find anything about this problem (which probably isn't really a problem), so I post this here.

My LiteSpeed Web Server is running and I installed the Ruby API successfully.
I added a Virtual Host and configured it as a Rails app.
Using domain.com, I am able to see the Ruby on Rails "Welcome aboard" page, but I can't visit the controller's page using the domain.com/controller.
I'm a Rails noob, so I just know, that it normally works like this using WEBrick on OS X 10.4.
What am I doing wrong? Or what do I have to change?

Last edited by Granny Smith; 10-23-2006 at 10:10 AM.. Reason: Changing the headline.
Reply With Quote
  #2  
Old 10-17-2006, 07:36 AM
xing xing is offline
LiteSpeed Staff
 
Join Date: Oct 2003
Location: Los Angeles, California
Posts: 380
Pleaes check the log directory under ruby app folder and also log entries under litespeed for the source of the error.

More likely than not, your ruby app is not starting up correctly.
Reply With Quote
  #3  
Old 10-17-2006, 07:58 AM
Granny Smith Granny Smith is offline
Member
 
Join Date: Oct 2006
Posts: 28
lsws.log, production.log and server.log from the app's log folder are empty.

LiteSpeed says
Quote:
[80.131.59.135:61819-0#nass] Request has not been logged into access log, response body sent: 0!
[Rails:nass:/] stop worker processes
But I don't have any idea what I have to do with this ...
Reply With Quote
  #4  
Old 10-17-2006, 09:32 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,585
Is there anything logged in stderr.log?
You can try raise "Process soft/hard limit" under "Rails" and "security" tab, see if it help.
Reply With Quote
  #5  
Old 10-17-2006, 09:39 AM
Granny Smith Granny Smith is offline
Member
 
Join Date: Oct 2006
Posts: 28
Where is this file located?

Raising the Process soft/hard limit didn't help.
Reply With Quote
  #6  
Old 10-17-2006, 09:51 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,585
lsws/logs/stderr.log. If you see "warning: already initialized constant ENV" then the ruby lsapi has been working properly. if you see "fork() failed", you still need to raise the "Process soft/hard limit" to maybe "100".
Reply With Quote
  #7  
Old 10-18-2006, 07:32 AM
Granny Smith Granny Smith is offline
Member
 
Join Date: Oct 2006
Posts: 28
I forgot where my lsws folder is located.

But Process soft/hard limit is already 100.
Reply With Quote
  #8  
Old 10-18-2006, 05:25 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,585
/opt/lsws? You need to figure it out!
Reply With Quote
  #9  
Old 10-19-2006, 01:56 AM
Granny Smith Granny Smith is offline
Member
 
Join Date: Oct 2006
Posts: 28
Quote:
Rails requires Ruby version 1.8.2 (2004-12-25) or later.
You're running 1.8.1 (2003-12-25); please upgrade to continue.
I installed Ruby using Yast (on Suse 9.3) and it only "finds" version 1.8.1.
Before I did this (installing using Yast) I already downloaded it and tried to compile and install it, but there was a problem with zlib and so somebody told my I should try it with Yast.

But how can I get Ruby 1.8.2 or newer? Is this possible using Yast? (I'm a linux noob!)
Or is there another way how I can update Ruby and avoid problems with zlib?
Reply With Quote
  #10  
Old 10-19-2006, 05:50 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,585
You can install zlib from source code, then install ruby 1.8.4 or 1.8.5 from source code.
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 08:23 AM.



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