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

Go Back   LiteSpeed Support Forums > External Applications > Ruby/Rails > 500 Error

Reply
 
Thread Tools Display Modes
  #1  
Old 09-06-2006, 04:10 PM
akamia123 akamia123 is offline
New Member
 
Join Date: Sep 2006
Posts: 3
Default 500 Error

Hey,

I just installed the latest standard version and I used the rails VHOST template to setup my site but I get this error:

Application error

Change this error message for exceptions thrown outside of an action (like in Dispatcher setups or broken Ruby code) in public/500.html

I'm using a brand new rails app generated on the server with one hello world controller, so there isn't any code to mess things up.

Any idea would help.

Thanks
Reply With Quote
  #2  
Old 09-06-2006, 04:23 PM
xing xing is offline
LiteSpeed Staff
 
Join Date: Oct 2003
Location: Los Angeles, California
Posts: 380
Check your /railapproot/log/ folder and check the log entries within "production.log" file to find see why your rail app is throwing this error.
Reply With Quote
  #3  
Old 09-06-2006, 05:05 PM
akamia123 akamia123 is offline
New Member
 
Join Date: Sep 2006
Posts: 3
Hey... I don't know if this is related or not but I'm getting this error now when I restart the server.

2006-09-06 18:59:45.318 ERROR [config:server:epsr:RubyRailsLSAPI] missing <path>
2006-09-06 18:59:45.318 ERROR [config:scripthandler] Can not find handler with type: 8, name: railsLsapi.
2006-09-06 18:59:45.318 ERROR [config:scripthandler] Can not find External Application: railsLsapi, type: lsapi
2006-09-06 18:59:45.318 ERROR [config:scripthandler] use static file handler for suffix [php]

As for the logs

I don't know if it matters but I'm running under development so in the development log I have this:
Recognition failed for ""
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.3/lib/action_controller/routing.rb:521:in `recognition_failed'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.3/lib/action_controller/routing.rb:511:in `recognize!'
/usr/local/lib/ruby/gems/1.8/gems/rails-1.1.4/lib/dispatcher.rb:38:in `dispatch'
dispatch.rb:10
Reply With Quote
  #4  
Old 09-06-2006, 05:45 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
Is that a fresh installation? Or upgrade?
Rails app configured via the vhost template does not have anything like "RubyRailsLSAPI" or "railsLsapi".
Install a fresh copy, and follow our Wiki, everything will work just fine.
Reply With Quote
  #5  
Old 09-06-2006, 06:36 PM
akamia123 akamia123 is offline
New Member
 
Join Date: Sep 2006
Posts: 3
I reinstalled and I'm not getting the RubyRailsLSAPI error but I'm still getting the 500 error plus this came up after I setup a vhost with the template:

2006-09-06 20:34:02.408 WARN [config:vhost:mydomain.com] Uid of /srv/myapp/public/ is smaller than minimum requirement 11, use server uid!
2006-09-06 20:34:02.408 WARN [config:vhost:mydomain.com] Gid of /srv/myapp/public/ is smaller than minimum requirement 10, use server gid!
Reply With Quote
  #6  
Old 09-06-2006, 06:45 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
Is your Rails application folder owned by "root"?
It is a permission problem, just change the owner of Rails application to a normal user.
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
SSL Cert Error - Need help with LiteSpeed Error MSG malffred Install/Configuration 5 06-19-2007 07:53 AM
BlueCloth Error with ruby-lsapi 2.0 tdinkins Bug Reports 3 03-03-2007 09:39 AM
Problem installing ruby-lsapi sfreiberg Install/Configuration 11 10-17-2006 01:56 PM
500 error when executing lots of sqls. dlhhyct Ruby/Rails 3 09-17-2006 09:04 AM
Question on custom error pages Auz Install/Configuration 3 02-08-2006 12:30 AM


All times are GMT -7. The time now is 11:24 PM.



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