Mongrel: Error calling Dispatcher.dispatch #
2011-06-10 07:42:00 by SazI was trying to get Redmine with mongrel and nginx working. Every time I've tried to log me in, mongrel reported the following error message:
Fri Jun 10 05:21:20 +0000 2011: Error calling Dispatcher.dispatch #<NoMethodError: undefined method `[]' for nil:NilClass> /usr/lib/ruby/1.8/mongrel/cgi.rb:108:in `send_cookies' /usr/lib/ruby/1.8/mongrel/cgi.rb:136:in `out' /usr/lib/ruby/1.8/mongrel/http_response.rb:65:in `start' /usr/lib/ruby/1.8/mongrel/cgi.rb:135:in `out' /usr/lib/ruby/1.8/mongrel/rails.rb:81:in `process' /usr/lib/ruby/1.8/mongrel.rb:159:in `process_client' /usr/lib/ruby/1.8/mongrel.rb:158:in `each' /usr/lib/ruby/1.8/mongrel.rb:158:in `process_client' /usr/lib/ruby/1.8/mongrel.rb:285:in `run' /usr/lib/ruby/1.8/mongrel.rb:285:in `initialize' /usr/lib/ruby/1.8/mongrel.rb:285:in `new' /usr/lib/ruby/1.8/mongrel.rb:285:in `run' /usr/lib/ruby/1.8/mongrel.rb:268:in `initialize' /usr/lib/ruby/1.8/mongrel.rb:268:in `new' /usr/lib/ruby/1.8/mongrel.rb:268:in `run' /usr/lib/ruby/1.8/mongrel/configurator.rb:282:in `run' /usr/lib/ruby/1.8/mongrel/configurator.rb:281:in `each' /usr/lib/ruby/1.8/mongrel/configurator.rb:281:in `run' /usr/bin/mongrel_rails:129:in `run' /usr/lib/ruby/1.8/mongrel/command.rb:212:in `run' /usr/bin/mongrel_rails:282
I've created a patch for mongrel, which will fix this problem. You can find it here: https://gist.github.com/1018287