简体   繁体   English

调用Dispatcher.dispatch时出错#

[英]Error calling Dispatcher.dispatch #<NameError: uninitialized constant ActionController::CgiRequest

I'm getting the following error on log/mongrel.6001.log 我在log / mongrel.6001.log上收到以下错误

I'm using mongrel_cluster , rails 3 and ruby 1.8.7 我正在使用mongrel_cluster,rails 3和ruby 1.8.7

I start mongrel_cluster using mongrel_rails cluster::start But when I try to access the page on browser I get the error bellow 我使用mongrel_rails启动mongrel_cluster cluster :: start但是当我尝试访问浏览器上的页面时,我得到错误

"Error calling Dispatcher.dispatch # “调用Dispatcher.dispatch时出错#

Mon Oct 11 00:26:04 -0500 2010: Error calling Dispatcher.dispatch #<NameError: uninitialized constant ActionController::CgiRequest>
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/rails.rb:76:in `process'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/rails.rb:74:in `synchronize'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/rails.rb:74:in `process'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:159:in `process_client'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:158:in `each'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:158:in `process_client'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:285:in `run'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:285:in `initialize'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:285:in `new'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:285:in `run'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:268:in `initialize'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:268:in `new'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:268:in `run'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/configurator.rb:282:in `run'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/configurator.rb:281:in `each'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/configurator.rb:281:in `run'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:128:in `run'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/command.rb:212:in `run'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:281
/usr/bin/mongrel_rails:19:in `load'
/usr/bin/mongrel_rails:19

Can anyone help? 有人可以帮忙吗?

mongrel_cluster.yml mongrel_cluster.yml

--- 
address: 127.0.0.1
log_file: log/mongrel.log
port: "6001"
cwd: /home/maiordes/rails_apps/maiordesconto
environment: development
pid_file: tmp/pids/mongrel.pid
servers: 5

As far as I know, mongrel_cluster does not support Rails 3 yet. 据我所知,mongrel_cluster还不支持Rails 3。 Fastest solution is to switch to Thin , it supports multiple Rails instances and it's configuration file is very similar to Mongrel's one. 最快的解决方案是切换到Thin ,它支持多个Rails实例,它的配置文件非常类似于Mongrel的实例。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 黄瓜错误未初始化的常量ActionController :: Dispatcher(NameError) - Cucumber Error uninitialized constant ActionController::Dispatcher (NameError) NameError:未初始化的常量ActionController :: Dispatcher - NameError: uninitialized constant ActionController::Dispatcher 运行Mongrel时出现错误“未初始化的常量ActionController :: CgiRequest&gt;” - Error “uninitialized constant ActionController::CgiRequest>” when running Mongrel 未初始化的常量 ActionController (NameError) - uninitialized constant ActionController (NameError) Cucumber Rails 3.1 未初始化常量 ActionController::Dispatcher (NameError) - Cucumber Rails 3.1 uninitialized constant ActionController::Dispatcher (NameError) 未初始化的常量ActionController :: Dispatcher :: MiddlewareStack - uninitialized constant ActionController::Dispatcher::MiddlewareStack 未初始化的常量ActionController :: Routing(NameError) - uninitialized constant ActionController::Routing (NameError) Redmine-调用Dispatcher.dispatch#时出错<NoMethodError: private method `split' called for nil:NilClass> - Redmine - Error calling Dispatcher.dispatch #<NoMethodError: private method `split' called for nil:NilClass> Rspec停止工作 - ` <module:ActionController> &#39;:未初始化的常量ActionController :: Metal(NameError) - Rspec stopped working - `<module:ActionController>': uninitialized constant ActionController::Metal (NameError) MiniTest错误:“NameError:uninitialized constant” - MiniTest Error: “NameError: uninitialized constant”
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM