Forum: Ruby on Rails The Strange Case of the Disappearing Website

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Ecf15b0bccba46fe1285f392b3ad0dde?d=identicon&s=25 Tom Styles (Guest)
on 2007-02-01 17:16
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
6d57db44c5a4e0721cc7f78cf0ce308a?d=identicon&s=25 Stephen Bartholomew (steveb)
on 2007-02-01 21:43
(Received via mailing list)
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
72ea925c0ca3d19fdd2f12fa76681624?d=identicon&s=25 Stephan Wehner (stephanwehner)
on 2007-02-01 22:31
Tom Styles 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
Ecf15b0bccba46fe1285f392b3ad0dde?d=identicon&s=25 Tom Styles (Guest)
on 2007-02-09 18:28
Stephan Wehner 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
72ea925c0ca3d19fdd2f12fa76681624?d=identicon&s=25 Stephan Wehner (stephanwehner)
on 2007-02-09 18:48
> 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
This topic is locked and can not be replied to.