Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 10th October 2007, 11:39
zakalwe zakalwe is offline
Junior Member
 
Join Date: Oct 2007
Location: London, UK
Posts: 3
Thanks: 1
Thanked 1 Time in 1 Post
Question Using Ruby On Rails With Apache2 On Debian Etch

Hi,

I just followed the RoR with Apache2 on Debian tutorial to setup a rails based vhost on my existing Apache 2 server.
I followed the instructions to the letter and everything went fine until I tried to look at the site :/

I can see the "Welcome Aboard" page OK but when I click on the "About your application's environment" link I get the following error:
Code:
Routing Error

Recognition failed for "/rails/info/properties"
(screenshot attached)

The following is dumped in the /log/development.log file:
Code:
Processing Base#index (for nnn.nnn.nnn.nnn at 2007-10-10 10:17:53) [GET]
  Session ID: 6e050ec9b64a69144063d5900ce438c5
  Parameters: {}


ActionController::RoutingError (Recognition failed for "/rails/info/properties"):
    /vendor/rails/actionpack/lib/action_controller/routing.rb:522:in `recognition_failed'
    /vendor/rails/actionpack/lib/action_controller/routing.rb:512:in `recognize!'
    /vendor/rails/railties/lib/dispatcher.rb:38:in `dispatch'
    /vendor/rails/railties/lib/fcgi_handler.rb:150:in `process_request'
    /vendor/rails/railties/lib/fcgi_handler.rb:54:in `process!'
    /usr/lib/ruby/1.8/fcgi.rb:612:in `each_cgi'
    /usr/lib/ruby/1.8/fcgi.rb:609:in `each'
    /usr/lib/ruby/1.8/fcgi.rb:609:in `each_cgi'
    /vendor/rails/railties/lib/fcgi_handler.rb:53:in `process!'
    /vendor/rails/railties/lib/fcgi_handler.rb:23:in `process!'
/path/to/domain.com/public/dispatch.fcgi:26
Any ideas on what might be going wrong?

Thanks
Simon
Attached Images
 
Reply With Quote
Sponsored Links
  #2  
Old 11th October 2007, 17:15
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
Default

Please compare your configuration with the one from the tutorial. Maybe you made a typo somewhere?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
The Following User Says Thank You to falko For This Useful Post:
zakalwe (23rd October 2007)
  #3  
Old 11th October 2007, 23:33
zakalwe zakalwe is offline
Junior Member
 
Join Date: Oct 2007
Location: London, UK
Posts: 3
Thanks: 1
Thanked 1 Time in 1 Post
Default

Originally I ran the tutorial and changed the directory because I keep all the virtualhosts on my server in /home/me/domains/somedomain.com
Then I went through it again, using the same directory as the tutorial, and got the same error. I spent a couple of hours checking, re-checking and googling error messages before I posted here

I think the version may have been the problem. I removed ruby with apt because Etch installs 1.1.6 and installed the latest version with RubyGems instead and now it seems to be OK. Now I get the following message:
Code:
For security purposes, this information is only available to local requests.
Once I get around to copying the site I'm working on from my computer to the server I'll post back here and let you know if that fixed it
Reply With Quote
  #4  
Old 23rd October 2007, 12:30
zakalwe zakalwe is offline
Junior Member
 
Join Date: Oct 2007
Location: London, UK
Posts: 3
Thanks: 1
Thanked 1 Time in 1 Post
 
Default

Yep, all works fine now - installing a newer version of Ruby fixed it
Reply With Quote
The Following User Says Thank You to zakalwe For This Useful Post:
falko (24th October 2007)
Reply

Bookmarks

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
Debian Etch (Debian 4.0) apache2 file needed Dekalb Installation/Configuration 3 1st June 2007 23:40
Bind Failed christoph2k HOWTO-Related Questions 4 28th April 2007 00:57
Debian with Ruby on Rails and Apache 2 with FastCGI - Having Issues hayashi HOWTO-Related Questions 2 7th April 2007 03:49
Ruby on Rails Apache2 Fastcgi debian fnewtz HOWTO-Related Questions 1 30th July 2006 16:51
e-mail problem!!! Debian 3.1 maroonworks Installation/Configuration 18 6th December 2005 14:42


All times are GMT +2. The time now is 14:11.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.