#61 ✓invalid
Nathan Reckart

Dispatcher failed to catch: undefined method `read' for class `FCGI::Stream' (NameError)

Reported by Nathan Reckart | July 27th, 2009 @ 02:05 PM

I have a Rails site hosted on Bluehost, which recently upgraded to Rails 2.3.3. When they did so, it broke my site, which was frozen to Rails 2.3.2. In my fastcgi.crash.log I found the following.

[23/Jul/2009:10:00:28 :: 23983] Dispatcher failed to catch: undefined method read' for classFCGI::Stream' (NameError) /usr/lib/ruby/
gems/
1.8/gems/rack-1.0.0/lib/rack/handler/fastcgi.rb:7
/home/username/rails/app/vendor/rails/railties/lib/fcgi_handler.rb: 103:in process_request' /home/username/rails/app/vendor/rails/<br/> railties/lib/fcgi_handler.rb:153:inwith_signal_handler'
/home/username/rails/app/vendor/rails/railties/lib/fcgi_handler.rb: 101:in process_request'<br/> /home/username/rails/app/vendor/rails/railties/lib/fcgi_handler.rb: 78:inprocess_each_request'
/usr/lib/ruby/gems/1.8/gems/fcgi-0.8.7/lib/fcgi.rb:117:in session' /usr/lib/ruby/gems/1.8/gems/fcgi-0.8.7/lib/fcgi.rb:104:ineach_request' /usr/lib/ruby/gems/1.8/gems/fcgi-0.8.7/lib/fcgi.rb:36:in each' /home/username/rails/app/vendor/rails/railties/lib/fcgi_handler.rb: 77:inprocess_each_request'
/home/username/rails/app/vendor/rails/railties/lib/fcgi_handler.rb: 76:in catch' /home/username/rails/app/vendor/rails/railties/lib/<br/> fcgi_handler.rb:76:inprocess_each_request'
/home/username/rails/app/vendor/rails/railties/lib/fcgi_handler.rb: 51:in process!'<br/> /home/username/rails/app/vendor/rails/railties/lib/fcgi_handler.rb: 23:inprocess!'
dispatch.fcgi:24 unhandled dispatch error

The attached patch fixes the issue by moving the _rack_read_without_buffer alias to after the definition of the read method.

Comments and changes to this ticket

  • josh

    josh August 3rd, 2009 @ 03:41 PM

    • State changed from “new” to “invalid”

    This sounds like a Rails related bug. I think we should be patching "fcgi_handler" instead.

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

People watching this ticket

Attachments

Referenced by

Pages