Stuart Hungerford
2005-Jul-27 01:01 UTC
FastCGI error says "Dispatcher failed to catch: undefined method `is_cgi?''" What Gives?
Hi all, I have a Rails application that runs successfully under Apache 2.0.54 using virtual hosting. So now I''m trying to get it running with FastCGI. FastCGI developer''s kit and Apache module have been installed and I''ve done a "gem install fcgi" for the Ruby FastCGI interface. I''ve added a section to the httpd.conf before the virtual hosting section: <IfModule mod_fastcgi.c> FastCgiIpcDir /tmp/fcgi_ipc FastCgiServer /projects/epinet/website/current/public/dispatch.fcgi \ -initial-env RAILS_ENV=production \ -processes 5 \ -idle-timeout 60 </IfModule> I''ve also changed the rewrite rule in the application''s .htaccess file to use dispatch.fcgi rather than dispatch.cgi. When Apache is restarted I can see the FastCGI processes start up but then they crash on the first page view. The fastcgi.crash.log file is full of these errors: [Wed Jul 27 10:51:56 EST 2005] Dispatcher failed to catch: undefined method `is_cgi?'' for FCGI:Class (NoMethodError) /opt/ruby-1.8.2/lib/ruby/gems/1.8/gems/fcgi-0.8.6.1/./fcgi.rb:593:in `each_cgi'' /projects/epinet/website/current/public/dispatch.fcgi:20 FCGI process 5602 killed by this error Which makes me think that some part of the FastCGI installation is missing? Any suggestions much appreciated! Stu