The Strange Case of the Disappearing Website

Hi there ROR folks.

We’ve been running our web site http://www.notts50plus.co.uk at
textdrive for a while and have managed to get over most of the initial
configuation hurdles that cropped up. So the thing is running fairly
quickly and well, then all of a sudden the site disappears.

I’ve looked in the FCGI-error-log and can’t see anything interesting.
I’ve not found anything in the Crash log either. The only thing I can
find is this error in the production log, but I don’t know what to make
of it. Can anyone explain it our what it might mean.

Processing Base#index (for 195.11.99.225 at 2007-01-29 11:23:49) [GET]
Session ID: 6457a9ddbae7313629a36839aefed6b7
Parameters: {}

ActionController::RoutingError (Recognition failed for
“/stylesheets/none”):
/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/rails-1.1.6/lib/fcgi_handler.rb:150:in process_request’
/usr/local/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/fcgi_handler.rb:54:in
process!' /usr/local/lib/ruby/gems/1.8/gems/fcgi-0.8.6.1/./fcgi.rb:600:in each_cgi’
/usr/local/lib/ruby/gems/1.8/gems/fcgi-0.8.6.1/./fcgi.rb:597:in
each_cgi' /usr/local/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/fcgi_handler.rb:53:in process!’
/usr/local/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/fcgi_handler.rb:23:in
`process!’
/users/home/nottsopi/web/public/dispatch.fcgi:24

Don’t normally like posting error messages but this one has me beaten.

Any help is appreciated.

Cheers
Tom

Nottingham UK

That error looks like the url ‘/stylesheets/none’ is called but it
doesn’t exist. With a standard set up, any files that don’t
physically exist on the file system are passed on to rails to handle.
As such you’ll get this kind of error if there are links to files that
don’t exist.

This is unlikely to be the cause of your website disappearances, but
it’s worth finding out where those erroneous links are coming from.

As for the disappearances, what actually happens? Do you get a blank
screen or an error page?

Steve

Tom S. wrote:

Hi there ROR folks.

We’ve been running our web site http://www.notts50plus.co.uk at
textdrive for a while and have managed to get over most of the initial
configuation hurdles that cropped up. So the thing is running fairly
quickly and well, then all of a sudden the site disappears.

I’ve looked in the FCGI-error-log and can’t see anything interesting.
I’ve not found anything in the Crash log either. The only thing I can
find is this error in the production log, but I don’t know what to make
of it. Can anyone explain it our what it might mean.

Processing Base#index (for 195.11.99.225 at 2007-01-29 11:23:49) [GET]
Session ID: 6457a9ddbae7313629a36839aefed6b7
Parameters: {}

ActionController::RoutingError (Recognition failed for
“/stylesheets/none”):
/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/rails-1.1.6/lib/fcgi_handler.rb:150:in process_request’
/usr/local/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/fcgi_handler.rb:54:in
process!' /usr/local/lib/ruby/gems/1.8/gems/fcgi-0.8.6.1/./fcgi.rb:600:in each_cgi’
/usr/local/lib/ruby/gems/1.8/gems/fcgi-0.8.6.1/./fcgi.rb:597:in
each_cgi' /usr/local/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/fcgi_handler.rb:53:in process!’
/usr/local/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/fcgi_handler.rb:23:in
`process!’
/users/home/nottsopi/web/public/dispatch.fcgi:24

Don’t normally like posting error messages but this one has me beaten.

Any help is appreciated.

Cheers
Tom

Nottingham UK

Does the log entry not also give you a hint about the actual URL that
was requested, together with the referrer? If not, then maybe a code
change is called for?

I looked through the site and found no problems.

Stephan

Stephan W. wrote:

ActionController::RoutingError (Recognition failed for
“/stylesheets/none”):

Does the log entry not also give you a hint about the actual URL that
was requested, together with the referrer? If not, then maybe a code
change is called for?

I looked through the site and found no problems.

Stephan

Stephan, I’ve finally found the problem it wasn’t with my app at all it
was with my style sheet which contained a background:url(none); rather
than background:none; Small difference but big problem.

Thanks for you input, though I agree with you that it’s unlikely that
this error would result in the site coming down on a regular basis, it
can’t hurt to fix it and see if it makes a difference.

Cheers
Tom

Stephan, I’ve finally found the problem it wasn’t with my app at all it
was with my style sheet which contained a background:url(none); rather
than background:none; Small difference but big problem.

I guess that error message could be improved to something like “Page not
found: stylesheets/none”, instead of “Recognition failed …” In
particular that stacktrace looks pretty redundant and distracting.

Cheers to perseverance.

See you,

Stephan