This project is archived and is in readonly mode.

#1440 ✓resolved

Complete move to Rack

Reported by DHH | November 22nd, 2008 @ 05:32 PM

Finish the Rack adapters for Rails including dealing with the issue of Rails' own FCGI adapter being more battle tested than the one in Rack.

Comments and changes to this ticket

  • josh

    josh November 22nd, 2008 @ 08:50 PM

    • State changed from “new” to “open”

    Just switched script/server over to Rack. I just need to do the same for the FCGI adapter.

  • josh

    josh December 1st, 2008 @ 06:32 PM

    • State changed from “open” to “resolved”
  • Jan De Poorter

    Jan De Poorter December 5th, 2008 @ 10:25 AM

    The change in breaks my request dispatching.

    [05/Dec/2008:11:02:20 :: 26836] Dispatcher failed to catch: undefined method env' for #<FCGI::CGI:0xb6dfb0f4> (NoMethodError) /usr/lib/ruby/gems/1.8/gems/rack-0.4.0/lib/rack/handler/fastcgi.rb:32:inserve' /home/sock/apps/sock/releases/20081205100135/vendor/rails/railties/lib/fcgi_handler.rb:101:in process_request' /home/sock/apps/sock/releases/20081205100135/vendor/rails/railties/lib/fcgi_handler.rb:151:inwith_signal_handler' /home/sock/apps/sock/releases/20081205100135/vendor/rails/railties/lib/fcgi_handler.rb:99:in process_request' /home/sock/apps/sock/releases/20081205100135/vendor/rails/railties/lib/fcgi_handler.rb:76:inprocess_each_request' /usr/lib/ruby/gems/1.8/gems/fcgi-0.8.7/lib/fcgi.rb:612:in each_cgi' /usr/lib/ruby/gems/1.8/gems/fcgi-0.8.7/lib/fcgi.rb:609:ineach' /usr/lib/ruby/gems/1.8/gems/fcgi-0.8.7/lib/fcgi.rb:609:in each_cgi' /home/sock/apps/sock/releases/20081205100135/vendor/rails/railties/lib/fcgi_handler.rb:75:inprocess_each_request' /home/sock/apps/sock/releases/20081205100135/vendor/rails/railties/lib/fcgi_handler.rb:74:in catch' /home/sock/apps/sock/releases/20081205100135/vendor/rails/railties/lib/fcgi_handler.rb:74:inprocess_each_request' /home/sock/apps/sock/releases/20081205100135/vendor/rails/railties/lib/fcgi_handler.rb:49:in process!' /home/sock/apps/sock/releases/20081205100135/vendor/rails/railties/lib/fcgi_handler.rb:23:inprocess!' /home/sock/apps/sock/current/public/dispatch.fcgi:24 unhandled dispatch error

  • Jan De Poorter

    Jan De Poorter December 5th, 2008 @ 11:44 AM

    It seems that the Rack::FastCGI adapter expects a FCGI object, while the fcgi_handler gives it a FCGI::CGI object

  • josh

    josh December 5th, 2008 @ 03:37 PM

    @Jan De Poorter Thanks for the alert. This seems critical. Can you please start a new ticket for the probem. I'd like to know more details about what server you are running to feed FCGI, etc.

  • Alexander Semyonov

Create your profile

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

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href=""></a>

People watching this ticket