Can someone take a look here and tell me what may be going on? I''ve been trying to get instiki-0.10.2 running with Apache and FastCGI. I''m using the standard configuration that I would with instiki-ar. I''ve got that distpatch.fcgi from that release. I have my .htaccess setup just the same. If I point Apache to my instiki-ar installation it works as a FastCGI just fine. When I do it with 0.10.2 I get the error below. I don''t know anything about what instiki or rails is doing when you run it in this mode so this error isn''t telling me a whole lot. Does anyone have any ideas? [Sat Nov 05 10:30:30 2005] [warn] FastCGI: (dynamic) server "/var/www/instiki/instiki/public/dispatch.fcgi" started (pid 27402) Processing WikiController#index (for 127.0.0.1 at Sat Nov 05 10:30:31 PST 2005) Parameters: {"action"=>"index", "controller"=>"wiki"} NoMethodError (undefined method `setup?'' for nil:NilClass): /app/controllers/wiki_controller.rb:13:in `index'' /vendor/rails/actionpack/lib/action_controller/base.rb:756:in `send'' /vendor/rails/actionpack/lib/action_controller/base.rb:756:in `perform_action_without_filters'' /vendor/rails/actionpack/lib/action_controller/filters.rb:295:in `perform_action_without_benchmark'' /vendor/rails/actionpack/lib/action_controller/benchmarking.rb:41:in `perform_action_without_rescue'' /vendor/rails/actionpack/lib/action_controller/benchmarking.rb:41:in `measure'' /vendor/rails/actionpack/lib/action_controller/benchmarking.rb:41:in `perform_action_without_rescue'' /vendor/rails/actionpack/lib/action_controller/rescue.rb:80:in `perform_action'' /vendor/rails/actionpack/lib/action_controller/base.rb:356:in `send'' /vendor/rails/actionpack/lib/action_controller/base.rb:356:in `process'' /vendor/rails/railties/lib/dispatcher.rb:32:in `dispatch'' /vendor/rails/railties/lib/fcgi_handler.rb:144:in `process_request'' /vendor/rails/railties/lib/fcgi_handler.rb:64:in `process!'' /vendor/rails/railties/lib/fcgi_handler.rb:55:in `each_cgi'' /usr/lib/ruby/site_ruby/1.8/fcgi.rb:597:in `each'' /usr/lib/ruby/site_ruby/1.8/fcgi.rb:597:in `each_cgi'' /vendor/rails/railties/lib/fcgi_handler.rb:55:in `process!'' /vendor/rails/railties/lib/fcgi_handler.rb:21:in `process!'' /public/dispatch.fcgi:6 - Eric eric.crahen at gmail.com __________________________________ Start your day with Yahoo! - Make it your home page! http://www.yahoo.com/r/hs
If I get in there and screw around with layout.rhtml I found that @wiki is never defined. So I think there is some initialization that the instiki startup script is doing the fcgi gateway is not? --- Erc Crahen <eric_crahen at yahoo.com> wrote:> Can someone take a look here and tell me what may be > going on? > > I''ve been trying to get instiki-0.10.2 running with > Apache and FastCGI. I''m using the standard > configuration that I would with instiki-ar. I''ve got > that distpatch.fcgi from that release. I have my > .htaccess setup just the same. > > If I point Apache to my instiki-ar installation it > works as a FastCGI just fine. When I do it with > 0.10.2 > I get the error below. I don''t know anything about > what instiki or rails is doing when you run it in > this > mode so this error isn''t telling me a whole lot. > > Does anyone have any ideas? > > > > [Sat Nov 05 10:30:30 2005] [warn] FastCGI: (dynamic) > server > "/var/www/instiki/instiki/public/dispatch.fcgi" > started (pid 27402) > > > Processing WikiController#index (for 127.0.0.1 at > Sat > Nov 05 10:30:31 PST 2005) > Parameters: {"action"=>"index", > "controller"=>"wiki"} > > > NoMethodError (undefined method `setup?'' for > nil:NilClass): > /app/controllers/wiki_controller.rb:13:in > `index'' > >/vendor/rails/actionpack/lib/action_controller/base.rb:756:in> `send'' > >/vendor/rails/actionpack/lib/action_controller/base.rb:756:in> `perform_action_without_filters'' > >/vendor/rails/actionpack/lib/action_controller/filters.rb:295:in> `perform_action_without_benchmark'' > >/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:41:in> `perform_action_without_rescue'' > >/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:41:in> `measure'' > >/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:41:in> `perform_action_without_rescue'' > >/vendor/rails/actionpack/lib/action_controller/rescue.rb:80:in> `perform_action'' > >/vendor/rails/actionpack/lib/action_controller/base.rb:356:in> `send'' > >/vendor/rails/actionpack/lib/action_controller/base.rb:356:in> `process'' > /vendor/rails/railties/lib/dispatcher.rb:32:in > `dispatch'' > > /vendor/rails/railties/lib/fcgi_handler.rb:144:in > `process_request'' > /vendor/rails/railties/lib/fcgi_handler.rb:64:in > `process!'' > /vendor/rails/railties/lib/fcgi_handler.rb:55:in > `each_cgi'' > /usr/lib/ruby/site_ruby/1.8/fcgi.rb:597:in > `each'' > /usr/lib/ruby/site_ruby/1.8/fcgi.rb:597:in > `each_cgi'' > /vendor/rails/railties/lib/fcgi_handler.rb:55:in > `process!'' > /vendor/rails/railties/lib/fcgi_handler.rb:21:in > `process!'' > /public/dispatch.fcgi:6 > > > > > > - Eric > eric.crahen at gmail.com > > > > __________________________________ > Start your day with Yahoo! - Make it your home page! > > http://www.yahoo.com/r/hs > _______________________________________________ > Instiki-users mailing list > Instiki-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/instiki-users >- Eric eric.crahen at gmail.com __________________________________ Start your day with Yahoo! - Make it your home page! http://www.yahoo.com/r/hs
Erc Crahen wrote:>If I get in there and screw around with layout.rhtml I >found that @wiki is never defined. So I think there is >some initialization that the instiki startup script is >doing the fcgi gateway is not? > >That''s right. It starts Madeleine thread and loads the latest storage snapshot on startup. IMHO, there is little practical sense in running Instiki-0.10.2 under FCGI - it can only run as a single process, and startup is pretty expensive. Alex