奇怪的 Ruby 企业版问题

发布于 2024-08-01 22:08:15 字数 11177 浏览 4 评论 0原文

我刚刚在 Ubuntu Hardy 8.04 VPS 上安装了 Ruby Enterprise Edition 和 Passenger。 据我所知,安装是成功的。 我的 Rails 应用程序可以访问并且总体上运行良好。 但是,我的应用程序中用户可以使用 AJAX 发表评论的部分不起作用。 我的 Comment 模型有一个针对请求的 setter 方法,按照 Railscasts Episode 65

def request=(request) 
  logger.info '*** Entered request setter method ***' # <- Never output!
  self.ip_address = request.remote_ip
  self.user_agent = request.env['HTTP_USER_AGENT']
  self.referrer   = request.env['HTTP_REFERER']
end

在开发中一切正常,但在生产中从未调用此方法,并且在尝试发布评论时收到 HTTP 500 错误。 我的生产日志如下所示。

我对如何调试这个有点不知所措,所以希望得到任何指点! 我不知道是什么试图使用 each 方法对 Fixnum 类进行猴子修补。

编辑:事实证明,有 Hoptoad 异常通知程序的已知问题,它解释了 Fixnum 问题。 它仍然无法解释为什么我的请求设置器没有被 REE 调用!


Production.log

8 月 8 日 17:06:14 Railsapp Rails[4666]: "\nNoMethodError (1:Fixnum 的未定义方法 each'):\n乘客 (2.2.4) lib/phusion_passenger/rack/request_handler.rb :91:在process_request'\n乘客(2.2.4)lib/phusion_passenger/abstract_request_handler.rb:206:在main_loop'\n乘客(2.2.4)lib/phusion_passenger/railz/application_spawner。 rb:376:instart_request_handler'\n 乘客 (2.2.4) lib/phusion_passenger/railz/application_spawner.rb:334:in handle_spawn_application'\n 乘客 (2.2.4) lib/phusion_passenger/utils .rb:182:insafe_fork'\n 乘客 (2.2.4) lib/phusion_passenger/railz/application_spawner.rb:332:in handle_spawn_application'\n 乘客 (2.2.4) lib/phusion_passenger/ Abstract_server.rb:351:in发送'\n乘客 (2.2.4) lib/phusion_passenger/abstract_server.rb:351:in main_loop'\n 乘客 (2.2. 4) lib/phusion_passenger/abstract_server.rb:195:instart_synchronously'\n 乘客 (2.2.4) lib/phusion_passenger/abstract_server.rb:162:in start'\n 乘客 (2.2.4) ) lib/phusion_passenger/railz/application_spawner.rb:213:instart'\n 乘客 (2.2.4) lib/phusion_passenger/spawn_manager.rb:261:in spawn_rails_application'\n 乘客 (2.2. 4) lib/phusion_passenger/abstract_server_collection.rb:126:inlookup_or_add'\n 乘客 (2.2.4) lib/phusion_passenger/spawn_manager.rb:255:in spawn_rails_application'\n 乘客 (2.2.4) ) lib/phusion_passenger/abstract_server_collection.rb:80:in同步'\n乘客 (2.2.4) lib/phusion_passenger/abstract_server_collection.rb:79:in 同步'\n乘客 (2.2.4) lib/phusion_passenger/spawn_manager.rb:254:inspawn_rails_application'\n 乘客 (2.2.4) lib/phusion_passenger/spawn_manager.rb:153:in spawn_application'\n 乘客 (2.2.4) lib /phusion_passenger/spawn_manager.rb:286:inhandle_spawn_application'\n乘客(2.2.4) lib/phusion_passenger/abstract_server.rb:351:in __send__'\n乘客(2.2.4) lib/ phusion_passenger/abstract_server.rb:351:inmain_loop'\n乘客 (2.2.4) lib/phusion_passenger/abstract_server.rb:195:in start_synchronously'\n\n" 8 月 8 日 17:06:14 Railsapp Rails[4666]: "/!\\ FAILSAFE /!\\ 8 月 8 日 17:06:14 +0000 2009\n 状态:500 内部服务器错误\n 未定义方法每个' 为 1:Fixnum\n /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/base.rb:489:in filter_parameters'\n /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/base.rb:496:infilter_parameters '\n /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/base.rb:495:in 收集'\n /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/base.rb:495:infilter_parameters'\n /opt /ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/base.rb:489:in each'\n /opt/ruby- enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/base.rb:489:infilter_parameters'\n /home/deploy/public_html/ Railsapp/releases/20090808155352/vendor/plugins/hoptoad_notifier/lib/hoptoad_notifier.rb:309:in clean_notice'\n /home/deploy/public_html/railsapp/releases/20090808155352/vendor/plugins/hoptoad_notifier/lib/hoptoad_notifier .rb:235:innotify_hoptoad'\n /home/deploy/public_html/railsapp/releases/20090808155352/vendor/plugins/hoptoad_notifier/lib/hoptoad_notifier.rb:226:in rescue_action_in_public'\n / opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/rescue.rb:154:inrescue_action_without_handler'\n /opt/ ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/rescue.rb:74:in rescue_action'\n /opt/ruby-enterprise -1.8.6-20090610/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/base.rb:527:in发送'\n /opt/ruby-enterprise-1.8 .6-20090610/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/base.rb:527:在 process_without_filters'\n /opt/ruby-enterprise-1.8.6- 20090610/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/filters.rb:606:在进程'\n /opt/ruby-enterprise-1.8.6-20090610/ lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/rescue.rb:65:in call_with_exception'\n /opt/ruby-enterprise-1.8.6-20090610/lib/ruby /gems/1.8/gems/actionpack-2.3.3/lib/action_controller/dispatcher.rb:91:indispatch'\n /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems /1.8/gems/actionpack-2.3.3/lib/action_controller/dispatcher.rb:111:in _call'\n /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/ gems/actionpack-2.3.3/lib/action_controller/dispatcher.rb:82:in初始化'\n /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/ Passenger-2.2.4/vendor/rack-1.0.0-git/lib/rack/head.rb:9:in call'\n /opt/ruby-enterprise-1.8.6-20090610/lib/ruby /gems/1.8/gems/passenger-2.2.4/vendor/rack-1.0.0-git/lib/rack/head.rb:9:incall'\n /opt/ruby-enterprise-1.8 .6-20090610/lib/ruby/gems/1.8/gems/passenger-2.2.4/vendor/rack-1.0.0-git/lib/rack/methodoverride.rb:24:in call'\n / opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/params_parser.rb:15:in调用'\n /opt/ ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/session/abstract_store.rb:122:in call'\n /opt/ruby -enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/activerecord-2.3.3/lib/active_record/query_cache.rb:29:in调用'\n /opt/ruby-enterprise -1.8.6-20090610/lib/ruby/gems/1.8/gems/activerecord-2.3.3/lib/active_record/connection_adapters/abstract/query_cache.rb:34:在缓存'\n /opt/ruby- enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/activerecord-2.3.3/lib/active_record/query_cache.rb:9:in缓存'\n /opt/ruby-enterprise- 1.8.6-20090610/lib/ruby/gems/1.8/gems/activerecord-2.3.3/lib/active_record/query_cache.rb:28:在 call'\n /opt/ruby-enterprise-1.8.6 -20090610/lib/ruby/gems/1.8/gems/activerecord-2.3.3/lib/active_record/connection_adapters/abstract/connection_pool.rb:361:in调用'\n /opt/ruby-enterprise-1.8 .6-20090610/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/failsafe.rb:26:在 call'\n /opt/ruby-enterprise-1.8.6- 20090610/lib/ruby/gems/1.8/gems/passenger-2.2.4/vendor/rack-1.0.0-git/lib/rack/lock.rb:11:in调用'\n /opt/ ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/passenger-2.2.4/vendor/rack-1.0.0-git/lib/rack/lock.rb:11:in <代码>同步'\n /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/passenger-2.2.4/vendor/rack-1.0.0-git/lib/rack/lock.rb :11:在调用'\n /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/dispatcher.rb:106 :在 call'\n /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/rack/request_handler.rb:91 中:在process_request'\n /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/abstract_request_handler.rb:206:in <代码>main_loop'\n /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/railz/application_spawner.rb:376:instart_request_handler'\n /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/railz/application_spawner.rb:334:in <代码>handle_spawn_application'\n /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/utils.rb:182:insafe_fork '\n /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/railz/application_spawner.rb:332:in handle_spawn_application' \n /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/abstract_server.rb:351:in发送'\n /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/abstract_server.rb:351:in main_loop'\n /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/abstract_server.rb:195:instart_synchronously' \n /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/abstract_server.rb:162:in start'\n / opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/railz/application_spawner.rb:213:instart'\n / opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/spawn_manager.rb:261:in spawn_rails_application'\n /opt/ruby -enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/abstract_server_collection.rb:126:inlookup_or_add'\n /opt/ruby-enterprise -1.8.6-20090610/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/spawn_manager.rb:255:in spawn_rails_application'\n /opt/ruby-enterprise-1.8。 6-20090610/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/abstract_server_collection.rb:80:in同步'\n /opt/ruby-enterprise-1.8.6- 20090610/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/abstract_server_collection.rb:79:in 同步'\n /opt/ruby-enterprise-1.8.6-20090610/lib /ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/spawn_manager.rb:254:inspawn_rails_application'\n /opt/ruby-enterprise-1.8.6-20090610/lib/ruby /gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/spawn_manager.rb:153:in spawn_application'\n /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/ 1.8/gems/passenger-2.2.4/lib/phusion_passenger/spawn_manager.rb:286:inhandle_spawn_application'\n /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/ gems/passenger-2.2.4/lib/phusion_passenger/abstract_server.rb:351:in __send__'\n /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/passenger -2.2.4/lib/phusion_passenger/abstract_server.rb:351:inmain_loop'\n /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/passenger-2.2 .4/lib/phusion_passenger/abstract_server.rb:195:在`start_synchronously'\n /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/passenger-2.2.4/bin/

I just installed Ruby Enterprise Edition and Passenger on an Ubuntu Hardy 8.04 VPS. As far as I'm aware, the installation was successful. My Rails application is accessible and on the whole, works fine. However, the part of my application where users can post comments using AJAX doesn't work. My Comment model has a setter method for the request as per Railscasts episode 65:

def request=(request) 
  logger.info '*** Entered request setter method ***' # <- Never output!
  self.ip_address = request.remote_ip
  self.user_agent = request.env['HTTP_USER_AGENT']
  self.referrer   = request.env['HTTP_REFERER']
end

Everything works fine in development, but in production this method is never invoked and I get an HTTP 500 error when trying to post a comment. My production log is shown below.

I'm kind of at a loss as to how to debug this one, so would appreciate any pointers! I don't know what's trying to monkey-patch the Fixnum class with an each method.

EDIT: It turns out that there's a known issue with the Hoptoad exception notifier that explains the Fixnum issue. It still doesn't explain why my request setter isn't called by REE though!


production.log

Aug 08 17:06:14 railsapp rails[4666]: "\nNoMethodError (undefined method each' for 1:Fixnum):\n passenger (2.2.4) lib/phusion_passenger/rack/request_handler.rb:91:inprocess_request'\n passenger (2.2.4) lib/phusion_passenger/abstract_request_handler.rb:206:in main_loop'\n passenger (2.2.4) lib/phusion_passenger/railz/application_spawner.rb:376:instart_request_handler'\n passenger (2.2.4) lib/phusion_passenger/railz/application_spawner.rb:334:in handle_spawn_application'\n passenger (2.2.4) lib/phusion_passenger/utils.rb:182:insafe_fork'\n passenger (2.2.4) lib/phusion_passenger/railz/application_spawner.rb:332:in handle_spawn_application'\n passenger (2.2.4) lib/phusion_passenger/abstract_server.rb:351:insend'\n passenger (2.2.4) lib/phusion_passenger/abstract_server.rb:351:in main_loop'\n passenger (2.2.4) lib/phusion_passenger/abstract_server.rb:195:instart_synchronously'\n passenger (2.2.4) lib/phusion_passenger/abstract_server.rb:162:in start'\n passenger (2.2.4) lib/phusion_passenger/railz/application_spawner.rb:213:instart'\n passenger (2.2.4) lib/phusion_passenger/spawn_manager.rb:261:in spawn_rails_application'\n passenger (2.2.4) lib/phusion_passenger/abstract_server_collection.rb:126:inlookup_or_add'\n passenger (2.2.4) lib/phusion_passenger/spawn_manager.rb:255:in spawn_rails_application'\n passenger (2.2.4) lib/phusion_passenger/abstract_server_collection.rb:80:insynchronize'\n passenger (2.2.4) lib/phusion_passenger/abstract_server_collection.rb:79:in synchronize'\n passenger (2.2.4) lib/phusion_passenger/spawn_manager.rb:254:inspawn_rails_application'\n passenger (2.2.4) lib/phusion_passenger/spawn_manager.rb:153:in spawn_application'\n passenger (2.2.4) lib/phusion_passenger/spawn_manager.rb:286:inhandle_spawn_application'\n passenger (2.2.4) lib/phusion_passenger/abstract_server.rb:351:in __send__'\n passenger (2.2.4) lib/phusion_passenger/abstract_server.rb:351:inmain_loop'\n passenger (2.2.4) lib/phusion_passenger/abstract_server.rb:195:in start_synchronously'\n\n"
Aug 08 17:06:14 railsapp rails[4666]: "/!\\ FAILSAFE /!\\ Sat Aug 08 17:06:14 +0000 2009\n Status: 500 Internal Server Error\n undefined method
each' for 1:Fixnum\n /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/base.rb:489:in filter_parameters'\n /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/base.rb:496:infilter_parameters'\n /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/base.rb:495:in collect'\n /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/base.rb:495:infilter_parameters'\n /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/base.rb:489:in each'\n /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/base.rb:489:infilter_parameters'\n /home/deploy/public_html/railsapp/releases/20090808155352/vendor/plugins/hoptoad_notifier/lib/hoptoad_notifier.rb:309:in clean_notice'\n /home/deploy/public_html/railsapp/releases/20090808155352/vendor/plugins/hoptoad_notifier/lib/hoptoad_notifier.rb:235:innotify_hoptoad'\n /home/deploy/public_html/railsapp/releases/20090808155352/vendor/plugins/hoptoad_notifier/lib/hoptoad_notifier.rb:226:in rescue_action_in_public'\n /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/rescue.rb:154:inrescue_action_without_handler'\n /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/rescue.rb:74:in rescue_action'\n /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/base.rb:527:insend'\n /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/base.rb:527:in process_without_filters'\n /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/filters.rb:606:inprocess'\n /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/rescue.rb:65:in call_with_exception'\n /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/dispatcher.rb:91:indispatch'\n /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/dispatcher.rb:111:in _call'\n /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/dispatcher.rb:82:ininitialize'\n /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/passenger-2.2.4/vendor/rack-1.0.0-git/lib/rack/head.rb:9:in call'\n /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/passenger-2.2.4/vendor/rack-1.0.0-git/lib/rack/head.rb:9:incall'\n /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/passenger-2.2.4/vendor/rack-1.0.0-git/lib/rack/methodoverride.rb:24:in call'\n /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/params_parser.rb:15:incall'\n /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/session/abstract_store.rb:122:in call'\n /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/activerecord-2.3.3/lib/active_record/query_cache.rb:29:incall'\n /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/activerecord-2.3.3/lib/active_record/connection_adapters/abstract/query_cache.rb:34:in cache'\n /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/activerecord-2.3.3/lib/active_record/query_cache.rb:9:incache'\n /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/activerecord-2.3.3/lib/active_record/query_cache.rb:28:in call'\n /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/activerecord-2.3.3/lib/active_record/connection_adapters/abstract/connection_pool.rb:361:incall'\n /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/failsafe.rb:26:in call'\n /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/passenger-2.2.4/vendor/rack-1.0.0-git/lib/rack/lock.rb:11:incall'\n /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/passenger-2.2.4/vendor/rack-1.0.0-git/lib/rack/lock.rb:11:in synchronize'\n /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/passenger-2.2.4/vendor/rack-1.0.0-git/lib/rack/lock.rb:11:incall'\n /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/dispatcher.rb:106:in call'\n /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/rack/request_handler.rb:91:inprocess_request'\n /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/abstract_request_handler.rb:206:in main_loop'\n /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/railz/application_spawner.rb:376:instart_request_handler'\n /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/railz/application_spawner.rb:334:in handle_spawn_application'\n /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/utils.rb:182:insafe_fork'\n /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/railz/application_spawner.rb:332:in handle_spawn_application'\n /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/abstract_server.rb:351:insend'\n /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/abstract_server.rb:351:in main_loop'\n /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/abstract_server.rb:195:instart_synchronously'\n /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/abstract_server.rb:162:in start'\n /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/railz/application_spawner.rb:213:instart'\n /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/spawn_manager.rb:261:in spawn_rails_application'\n /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/abstract_server_collection.rb:126:inlookup_or_add'\n /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/spawn_manager.rb:255:in spawn_rails_application'\n /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/abstract_server_collection.rb:80:insynchronize'\n /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/abstract_server_collection.rb:79:in synchronize'\n /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/spawn_manager.rb:254:inspawn_rails_application'\n /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/spawn_manager.rb:153:in spawn_application'\n /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/spawn_manager.rb:286:inhandle_spawn_application'\n /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/abstract_server.rb:351:in __send__'\n /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/abstract_server.rb:351:inmain_loop'\n /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/abstract_server.rb:195:in `start_synchronously'\n /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/passenger-2.2.4/bin/

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

慵挽 2024-08-08 22:08:15

删除 Hoptoad 并重试。 从我在堆栈跟踪的文本墙中可以看出,您的控制器没有被调用。 它在尝试解析传入参数时崩溃了。

Remove Hoptoad and try it again. From what I can tell in that textwall of a stack trace your controller isn't being called. It's blowing up trying to parse the incoming params.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文