Project

General

Profile

ActionController::RoutingError after upgrade vom 0.8.7 to 0.9.2

Added by Daniel Nauck almost 15 years ago

Hello,

i upgraded redmine 0.8.7 to version 0.9.2 on my ubuntu 9.10 server.

Frist problem was that rack-1.0.1 is not available on ubuntu 9.10, so i installed it via:

$ gem install rack -v 1.0.1 --user-install

Next problem is that mod_passenger 2.0.3 from ubuntu is not kompatible with the latest rails ...
So again:

$ gem install passenger --user-install
$ /home/redmine/.gem/ruby/1.8/bin/passenger-install-apache2-module

Then i removed ubuntu's passenger and ask apache2 to load passenger with:

LoadModule passenger_module /home/redmine/.gem/ruby/1.8/gems/passenger-2.2.9/ext/apache2/mod_passenger.so
PassengerRoot /home/redmine/.gem/ruby/1.8/gems/passenger-2.2.9
PassengerRuby /usr/bin/ruby

My virtual host looks like this:

<VirtualHost *:80>
        DocumentRoot /home/redmine/redmine-0.9.2/public
        ServerName example.com

        <Directory "/home/dna/redmine-0.9.2/public">
                AllowOverride all
                Options -MultiViews
        </Directory>
</VirtualHost>

But when i try to visit my page i get a 404 error.

The log/production.log shows following error:

# Logfile created on Sun Feb 07 17:31:01 +0100 2010

Processing ApplicationController#index (for 86.103.198.170 at 2010-02-07 17:31:03) [GET]

ActionController::RoutingError (No route matches "/index.html" with {:method=>:get}):
  passenger (2.2.9) lib/phusion_passenger/rack/request_handler.rb:92:in `process_request'
  passenger (2.2.9) lib/phusion_passenger/abstract_request_handler.rb:207:in `main_loop'
  passenger (2.2.9) lib/phusion_passenger/railz/application_spawner.rb:400:in `start_request_handler'
  passenger (2.2.9) lib/phusion_passenger/railz/application_spawner.rb:351:in `handle_spawn_application'
  passenger (2.2.9) lib/phusion_passenger/utils.rb:184:in `safe_fork'
  passenger (2.2.9) lib/phusion_passenger/railz/application_spawner.rb:349:in `handle_spawn_application'
  passenger (2.2.9) lib/phusion_passenger/abstract_server.rb:352:in `__send__'
  passenger (2.2.9) lib/phusion_passenger/abstract_server.rb:352:in `main_loop'
  passenger (2.2.9) lib/phusion_passenger/abstract_server.rb:196:in `start_synchronously'
  passenger (2.2.9) lib/phusion_passenger/abstract_server.rb:163:in `start'
  passenger (2.2.9) lib/phusion_passenger/railz/application_spawner.rb:209:in `start'
  passenger (2.2.9) lib/phusion_passenger/spawn_manager.rb:262:in `spawn_rails_application'
  passenger (2.2.9) lib/phusion_passenger/abstract_server_collection.rb:126:in `lookup_or_add'
  passenger (2.2.9) lib/phusion_passenger/spawn_manager.rb:256:in `spawn_rails_application'
  passenger (2.2.9) lib/phusion_passenger/abstract_server_collection.rb:80:in `synchronize'
  passenger (2.2.9) lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize'
  passenger (2.2.9) lib/phusion_passenger/spawn_manager.rb:255:in `spawn_rails_application'
  passenger (2.2.9) lib/phusion_passenger/spawn_manager.rb:154:in `spawn_application'
  passenger (2.2.9) lib/phusion_passenger/spawn_manager.rb:287:in `handle_spawn_application'
  passenger (2.2.9) lib/phusion_passenger/abstract_server.rb:352:in `__send__'
  passenger (2.2.9) lib/phusion_passenger/abstract_server.rb:352:in `main_loop'
  passenger (2.2.9) lib/phusion_passenger/abstract_server.rb:196:in `start_synchronously'

Rendering /home/redmine/redmine-0.9.2/public/404.html (404 Not Found)

Redmine 0.8.7 was working well, also redmine 0.9.2 does run with webrick.

Any ideas or hints to solve the problem?

Thanks.


Replies (3)

RE: ActionController::RoutingError after upgrade vom 0.8.7 to 0.9.2 - Added by Chris Redland almost 15 years ago

I had a similar problem serving with mod_fcgi, I had to adjust my public/.htaccess file again to solve it

#<IfModule mod_fastcgi.c>
  1. RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]
    #</IfModule>
    #<IfModule mod_fcgid.c>
  2. RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]
    #</IfModule>
    #<IfModule mod_cgi.c>
  3. RewriteRule ^(.*)$ dispatch.cgi [QSA,L]
    #</IfModule>
  4. : always this rewrite Rule
    RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]

RE: ActionController::RoutingError after upgrade vom 0.8.7 to 0.9.2 - Added by Chris Redland almost 15 years ago

Here with right markup...

I had a similar problem serving with mod_fcgi, I had to adjust my public/.htaccess file again to solve it

#<IfModule mod_fastcgi.c>
#       RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]
#</IfModule>
#<IfModule mod_fcgid.c>
#       RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]
#</IfModule>
#<IfModule mod_cgi.c>
#       RewriteRule ^(.*)$ dispatch.cgi [QSA,L]
#</IfModule>
# lindenmueller@hdm-stuttgart.de: always this rewrite Rule
RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]

RE: ActionController::RoutingError after upgrade vom 0.8.7 to 0.9.2 - Added by Daniel Nauck almost 15 years ago

Hello,

i just deleted the .htaccess file from redmine-0.9.2/public/ and now it works.

:/

    (1-3/3)