Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > Random RoutingError

Reply
Thread Tools

Random RoutingError

 
 
Jean Verger
Guest
Posts: n/a
 
      01-18-2007
Hi,
I'm getting "Page Cannot be Found" error. The funny (let's call it funny
) is that is random.
When I restart the server, I can log in into my web properly.
After a few minutes and server "log in's", it shows "Page Cannot be found"

I checked the production.log, and it complains about
ActionController::RoutingError:

How can i debug this error? Why is it random?
Also, it surprise me, that the log says:
"*Processing Base#index*" (instead of the name of the controller,
AuthenticatorController)
*ActionController::RoutingError (Recognition failed for
"/authenticator/auth/"):*


thanks,

Jean

Here the logs:

Processing Base#index (for 1.2.3.4 at 2007-01-18 01:27:19) [GET]
Session ID: 09f4870ca3e2b381646f00acee7c8c36
Parameters:
{"pwd"=>"a1ff1ead1ba7c17257687763772f2af69b753d16c e19b681fa0b232a2ec1bc43f79658b520e025fa2da137d768a a1b77bbf2a64529500e191dd7c2ac5dd44b5d6cad64e309132 da29735562e1bcb626fae3c20448ae82c1121ba9afefed11fc f4c54b957a275596d221dd28d8f7d2608096f8cab7fd4f1089 eb5283be0a5dd9b",
"usr"=>"usert@testingcom"}


ActionController::RoutingError (Recognition failed for
"/authenticator/auth/"):

/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/routing.rb:522:in
`recognition_failed'

/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/routing.rb:512:in
`recognize!'

/usr/local/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/dispatcher.rb:38:in
`dispatch'

/usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/lib/mongrel/rails.rb:73:in
`process'

/usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/lib/mongrel.rb:551:in
`process_client'

/usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/lib/mongrel.rb:550:in
`process_client'

/usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/lib/mongrel.rb:636:in
`run'

/usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/lib/mongrel.rb:636:in
`run'

/usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/lib/mongrel.rb:625:in
`run'

/usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/lib/mongrel.rb:956:in
`run'

/usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/lib/mongrel.rb:955:in
`run'

/usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/bin/mongrel_rails:127:in
`run'

/usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/lib/mongrel/command.rb:199:in
`run'
/usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/bin/mongrel_rails:235
/usr/local/bin/mongrel_rails:18




 
Reply With Quote
 
 
 
 
Jean Verger
Guest
Posts: n/a
 
      01-18-2007
Hi,
just some other details of this annoying bug ... I can replicate it by
calling very often this url in the browser (in my local machine):

http://www.mytestingweb.com/authenti...050f104af4af6b

This URL will invoke the auth method in the authenticator class.
It seems that when this is run repeatedly and often, it gets somehow to
a collision or something than crash, giving the RoutingError.
Mmmm is there any problem with mongrels when calling very often?
collision? Mongrels have been working fine for me for this time ... I
don't think that all of a sudden, there are collision problems.

any comment will be much appreciated,

regards,

Jean

Jean Verger wrote:
> Hi,
> I'm getting "Page Cannot be Found" error. The funny (let's call it
> funny ) is that is random.
> When I restart the server, I can log in into my web properly.
> After a few minutes and server "log in's", it shows "Page Cannot be
> found"
>
> I checked the production.log, and it complains about
> ActionController::RoutingError:
>
> How can i debug this error? Why is it random?
> Also, it surprise me, that the log says:
> "*Processing Base#index*" (instead of the name of the controller,
> AuthenticatorController)
> *ActionController::RoutingError (Recognition failed for
> "/authenticator/auth/"):*
>
>
> thanks,
>
> Jean
>
> Here the logs:
>
> Processing Base#index (for 1.2.3.4 at 2007-01-18 01:27:19) [GET]
> Session ID: 09f4870ca3e2b381646f00acee7c8c36
> Parameters:
> {"pwd"=>"a1ff1ead1ba7c17257687763772f2af69b753d16c e19b681fa0b232a2ec1bc43f79658b520e025fa2da137d768a a1b77bbf2a64529500e191dd7c2ac5dd44b5d6cad64e309132 da29735562e1bcb626fae3c20448ae82c1121ba9afefed11fc f4c54b957a275596d221dd28d8f7d2608096f8cab7fd4f1089 eb5283be0a5dd9b",
> "usr"=>"usert@testingcom"}
>
>
> ActionController::RoutingError (Recognition failed for
> "/authenticator/auth/"):
>
> /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/routing.rb:522:in
> `recognition_failed'
>
> /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/routing.rb:512:in
> `recognize!'
>
> /usr/local/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/dispatcher.rb:38:in
> `dispatch'
>
> /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/lib/mongrel/rails.rb:73:in
> `process'
>
> /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/lib/mongrel.rb:551:in
> `process_client'
>
> /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/lib/mongrel.rb:550:in
> `process_client'
>
> /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/lib/mongrel.rb:636:in
> `run'
>
> /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/lib/mongrel.rb:636:in
> `run'
>
> /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/lib/mongrel.rb:625:in
> `run'
>
> /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/lib/mongrel.rb:956:in
> `run'
>
> /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/lib/mongrel.rb:955:in
> `run'
>
> /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/bin/mongrel_rails:127:in
> `run'
>
> /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/lib/mongrel/command.rb:199:in
> `run'
>
> /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/bin/mongrel_rails:235
> /usr/local/bin/mongrel_rails:18
>
>
>
>
>


 
Reply With Quote
 
 
 
Reply

Thread Tools

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
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Math.random() and Math.round(Math.random()) and Math.floor(Math.random()*2) VK Javascript 15 05-02-2010 03:43 PM
random.random(), random not defined!? globalrev Python 4 04-20-2008 08:12 AM
Random "The IListSource does not contain any datasources" and more (Crashing a live site at random, twice a week or so) Lars-Erik Aabech ASP .Net 8 04-28-2005 07:52 AM
Random not really random... Maziar Aflatoun ASP .Net 4 08-05-2004 01:26 AM
Random NOt random? Darren Clark ASP .Net 3 06-24-2004 05:23 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57