Welcome Guest | Login

Routing error with login

I am getting the error "The page you were looking for doesn't exist". My production.log shows
Processing ApplicationController#index (for 210.18.189.173 at 2007-03-20 09:57:59) [GET]
 Session ID: 282685f39541f8eac75152d5b4106ce7
 Parameters: {}
ActionController::RoutingError (no route found to match "/" with {:method=>:get}):
   /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/routing.rb:1292:in `recognize_path'
   /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/routing.rb:1282:in `recognize'
   /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/dispatcher.rb:40:in `dispatch'
   /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/fcgi_handler.rb:168:in `process_request'
   /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/fcgi_handler.rb:143:in `process_each_request!'
   /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/fcgi_handler.rb:109:in `with_signal_handler'
   /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/fcgi_handler.rb:142:in `process_each_request!'
   /usr/local/lib/ruby/gems/1.8/gems/fcgi-0.8.7/lib/fcgi.rb:612:in `each_cgi'
   /usr/local/lib/ruby/gems/1.8/gems/fcgi-0.8.7/lib/fcgi.rb:609:in `each'
   /usr/local/lib/ruby/gems/1.8/gems/fcgi-0.8.7/lib/fcgi.rb:609:in `each_cgi'
   /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/fcgi_handler.rb:141:in `process_each_request!'
   /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/fcgi_handler.rb:55:in `process!'
   /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/fcgi_handler.rb:25:in `process!'
   dispatch.fcgi:24
I have removed the original public_html and created the symlink to app/public. My routes.rb has also been changed to include the main controller viz.login.

I am giving the routes.rb extract here
  # You can have the root of your site routed by hooking up ''
 # -- just remember to delete public/index.html.
  map.connect '', :controller => "login"

 # Allow downloading Web Service WSDL as a file with an extension
 # instead of a file named 'wsdl'
 map.connect ':controller/service.wsdl', :action => 'wsdl'

 # Install the default route as the lowest priority.
 map.connect ':controller/:action/:id.:format'
 map.connect ':controller/:action/:id'
I have also removed the index.html file in the public directory.

The login_controller.rb is also available in the app/controllers dir.

Where am I going wrong?

Regards,
Rajesh

2007-03-20 10:28 AM

If you go to domain.com/login does that work?    Have you restarted your fastcgi process when making these kind of changes in files that are cached by the application server (e.g. configs/controllers/models/etc..)?  

2007-03-20 10:35 AM

Yep, I have tried /login... that doesnt work either... I have also tried /login/specific_action... that too doesnt work.

Nope, I had not restarted fcgi...

After your message, I did
killall -usr1 dispatch.fcgi
I got the output
dispatch.fcgi(23284): Operation not permitted
dispatch.fcgi(24349): Operation not permitted
dispatch.fcgi(29248): Operation not permitted
dispatch.fcgi(31004): Operation not permitted
dispatch.fcgi(1617): Operation not permitted
dispatch.fcgi(2026): Operation not permitted
dispatch.fcgi(3296): Operation not permitted
dispatch.fcgi(5594): Operation not permitted
dispatch.fcgi(6043): Operation not permitted
dispatch.fcgi: no process killed
Regards,
Rajesh

2007-03-20 11:41 AM

Solved: Just to bring this discussion to a logical conclusion.

I did
skill -9 -u username -c dispatch.fcgi
and it worked. (username of course is the ssh username) I would like to know why the command recommended in the tutorial failed to kill, though!

Regards,
Rajesh

2007-03-20 11:50 AM

Rajesh,

Thanks, this worked.  

In my case killall -usr1 dispatch.fcgi gets the message
- Cannot find user sr1

Regards

jim

2008-02-06 09:02 AM

pkill -9 dispatch.fcgi  should also work.

2008-02-06 10:20 AM


Hello Guest! In order to post you must be an active client with us, please log in or sign up.