我正在尝试使用 Rails 3.1.8 设置 Debian 挤压服务器。该应用程序在开发中启动得非常好,但在生产模式下,我在下面得到了这个堆栈跟踪。我的 ruby 构建有什么问题吗?有什么推荐的挤压标志吗?
将 PID 写入 /home/railsapps/localhost_production/shared/tmp/thin.2.pid 使用机架适配器 退出!/home/railsapps/localhost_production/shared/bundle/ruby/1.9.1/gems/activesupport-3.1.8/lib/active_support/dependencies.rb:306:independ_on
rescue in depend_on': Missing helper file helpers/addressable/uri.rb (LoadError) from /home/railsapps/localhost_production/shared/bundle/ruby/1.9.1/gems/activesupport-3.1.8/lib/active_support/dependencies.rb:301:in
' 来自 /home/railsapps/localhost_production/shared/bundle/ ruby/1.9.1/gems/activesupport-3.1.8/lib/active_support/dependencies.rb:214:inrequire_dependency' from /home/railsapps/localhost_production/shared/bundle/ruby/1.9.1/gems/actionpack-3.1.8/lib/abstract_controller/helpers.rb:135:in
block in modules_for_helpers' from /home/railsapps/localhost_production/shared/bundle/ruby/1.9.1/gems/actionpack -3.1.8/lib/abstract_controller/helpers.rb:131:inmap!' from /home/railsapps/localhost_production/shared/bundle/ruby/1.9.1/gems/actionpack-3.1.8/lib/abstract_controller/helpers.rb:131:in
modules_for_helpers' 来自 /home/railsapps/localhost_production/shared/bundle/ruby/1.9.1/gems/actionpack-3.1.8/lib/action_controller/metal/ helpers.rb:89:inmodules_for_helpers' from /home/railsapps/localhost_production/shared/bundle/ruby/1.9.1/gems/actionpack-3.1.8/lib/abstract_controller/helpers.rb:95:in
来自 /home/railsapps/localhost_production/shared/bundle/ruby/1.9.1/gems/actionpack-3.1.8/lib/abstract_controller/helpers.rb:159:indefault_helper_module!' from /home/railsapps/localhost_production/shared/bundle/ruby/1.9.1/gems/actionpack-3.1.8/lib/abstract_controller/helpers.rb:22:in
块中的 helper' 继承自 /home/railsapps/localhost_production /shared/bundle/ruby/1.9.1/gems/actionpack-3.1.8/lib/abstract_controller/helpers.rb:22:inclass_eval' from /home/railsapps/localhost_production/shared/bundle/ruby/1.9.1/gems/actionpack-3.1.8/lib/abstract_controller/helpers.rb:22:in
继承自 /home/railsapps/localhost_production/shared/bundle/ruby/1.9.1/ gems/actionpack-3.1.8/lib/action_controller/metal/hide_actions.rb:32:ininherited' from /home/railsapps/localhost_production/shared/bundle/ruby/1.9.1/gems/actionpack-3.1.8/lib/action_controller/metal/params_wrapper.rb:130:in
继承自 /home/railsapps/localhost_production/shared/bundle/ruby/1.9.1/gems/actionpack-3.1.8/lib /abstract_controller/railties/routes_helpers.rb:7:inblock (2 levels) in with' from /home/railsapps/localhost_production/shared/bundle/ruby/1.9.1/gems/actionpack-3.1.8/lib/action_controller/railties/paths.rb:7:in
block (2 levels) in with' from /home/railsapps/localhost_production/releases/20121028215215/app/controllers/application_controller.rb:1:in<top (required)>' from /home/railsapps/localhost_production/shared/bundle/ruby/1.9.1/gems/activesupport-3.1.8/lib/active_support/dependencies.rb:240:in
需要'来自 /home/railsapps/localhost_production/shared/bundle/ruby/1.9.1/gems/activesupport-3.1.8/lib/active_support/dependencies.rb:240:inblock in require' from /home/railsapps/localhost_production/shared/bundle/ruby/1.9.1/gems/activesupport-3.1.8/lib/active_support/dependencies.rb:225:in
load_dependency' 来自 /home/railsapps/localhost_production/shared /bundle/ruby/1.9.1/gems/activesupport-3.1.8/lib/active_support/dependencies.rb:240:inrequire' from /home/railsapps/localhost_production/shared/bundle/ruby/1.9.1/gems/activesupport-3.1.8/lib/active_support/dependencies.rb:348:in
require_or_load' 来自 /home/railsapps/localhost_production/shared/bundle/ruby/1.9.1/gems/ activesupport-3.1.8/lib/active_support/dependencies.rb:489:inload_missing_constant' from /home/railsapps/localhost_production/shared/bundle/ruby/1.9.1/gems/activesupport-3.1.8/lib/active_support/dependencies.rb:181:in
block in const_missing' from /home/railsapps/localhost_production/shared/bundle/ruby/1.9.1/gems/activesupport-3.1.8/lib/active_support /dependencies.rb:179:ineach' from /home/railsapps/localhost_production/shared/bundle/ruby/1.9.1/gems/activesupport-3.1.8/lib/active_support/dependencies.rb:179:in
const_missing' 来自 /home/railsapps/localhost_production/shared/bundle/ruby/1.9.1/gems/aws-s3-0.6.3/lib/aws/s3/extensions.rb:212:在const_missing_from_s3_library' from /home/railsapps/localhost_production/shared/bundle/ruby/1.9.1/gems/inherited_resources-1.3.1/app/controllers/inherited_resources/base.rb:11:in
'来自/home/railsapps/localhost_production/shared/bundle/ruby/1.9.1/gems/inherited_resources-1.3.1/app/controllers/inherited_resources/base.rb:1:in<top (required)>' from /home/railsapps/localhost_production/shared/bundle/ruby/1.9.1/gems/activesupport-3.1.8/lib/active_support/dependencies.rb:240:in
来自/home/railsapps/localhost_production/ shared/bundle/ruby/1.9.1/gems/activesupport-3.1.8/lib/active_support/dependencies.rb:240:inblock in require' from /home/railsapps/localhost_production/shared/bundle/ruby/1.9.1/gems/activesupport-3.1.8/lib/active_support/dependencies.rb:225:in
load_dependency' 来自 /home/railsapps/localhost_production/shared/bundle/ruby/1.9.1/gems /activesupport-3.1.8/lib/active_support/dependencies.rb:240:inrequire' from /home/railsapps/localhost_production/shared/bundle/ruby/1.9.1/gems/activesupport-3.1.8/lib/active_support/dependencies.rb:348:in
require_or_load' 来自 /home/railsapps/localhost_production/shared/bundle/ruby/1.9.1/gems/activesupport-3.1.8/lib/active_support/ dependencies.rb:489:inload_missing_constant' from /home/railsapps/localhost_production/shared/bundle/ruby/1.9.1/gems/activesupport-3.1.8/lib/active_support/dependencies.rb:181:in
block in const_missing' from /home/railsapps/localhost_production/shared/bundle/ruby/1.9.1/gems/activesupport-3.1.8/lib/active_support/dependencies.rb:179:在each' from /home/railsapps/localhost_production/shared/bundle/ruby/1.9.1/gems/activesupport-3.1.8/lib/active_support/dependencies.rb:179:in
const_missing' 来自 /home/railsapps/localhost_production/shared/bundle/ruby/1.9.1/gems/aws-s3-0.6.3/lib/aws/s3/extensions.rb:212:inconst_missing_from_s3_library' from /home/railsapps/localhost_production/shared/bundle/ruby/1.9.1/bundler/gems/active_admin-7d09a0ac8252/lib/active_admin/base_controller/menu.rb:2:in
' 来自 /home/railsapps/ localhost_production/shared/bundle/ruby/1.9.1/bundler/gems/active_admin-7d09a0ac8252/lib/active_admin/base_controller/menu.rb:1:in<top (required)>' from /home/railsapps/localhost_production/shared/bundle/ruby/1.9.1/gems/activesupport-3.1.8/lib/active_support/dependencies.rb:240:in
require'来自/home/railsapps/localhost_production/shared/bundle/ruby/1.9 .1/gems/activesupport-3.1.8/lib/active_support/dependencies.rb:240:inblock in require' from /home/railsapps/localhost_production/shared/bundle/ruby/1.9.1/gems/activesupport-3.1.8/lib/active_support/dependencies.rb:225:in
load_dependency' 来自 /home/railsapps/localhost_production/shared/bundle/ruby/1.9.1/gems/activesupport-3.1.8/ lib/active_support/dependencies.rb:240:inrequire' from /home/railsapps/localhost_production/shared/bundle/ruby/1.9.1/bundler/gems/active_admin-7d09a0ac8252/lib/active_admin/base_controller.rb:2:in
'来自 /home/railsapps/localhost_production/shared/bundle/ruby/1.9.1/bundler/gems/active_admin-7d09a0ac8252/lib/active_admin/application.rb:222:inbefore_filter' from /home/railsapps/localhost_production/releases/20121028215215/config/initializers/active_admin.rb:91:in
从 /home/railsapps/localhost_production/shared/bundle/ruby/1.9.1/bundler/gems/active_admin-7d09a0ac8252/lib/active_admin.rb:71:in 阻止setup' from /home/railsapps/localhost_production/releases/20121028215215/config/initializers/active_admin.rb:1:in
/home/railsapps/localhost_production/shared/bundle /ruby/1.9.1/gems/activesupport-3.1.8/lib/active_support/dependencies.rb:234:inload' from /home/railsapps/localhost_production/shared/bundle/ruby/1.9.1/gems/activesupport-3.1.8/lib/active_support/dependencies.rb:234:in
block in load' 来自 /home/railsapps/localhost_production/shared/bundle/ruby/1.9.1/gems/ activesupport-3.1.8/lib/active_support/dependencies.rb:225:inload_dependency' from /home/railsapps/localhost_production/shared/bundle/ruby/1.9.1/gems/activesupport-3.1.8/lib/active_support/dependencies.rb:234:in
load' 来自 /home/railsapps/localhost_production/shared/bundle/ruby/1.9.1/gems/railties-3.1.8/lib/rails/engine .rb:556:inblock (2 levels) in <class:Engine>' from /home/railsapps/localhost_production/shared/bundle/ruby/1.9.1/gems/railties-3.1.8/lib/rails/engine.rb:555:in
each' 来自 /home/railsapps/localhost_production/shared/bundle/ruby/1.9.1/gems/railties-3.1.8/lib/rails/engine.rb:555:inblock in <class:Engine>' from /home/railsapps/localhost_production/shared/bundle/ruby/1.9.1/gems/railties-3.1.8/lib/rails/initializable.rb:30:in
instance_exec' 来自 /home/railsapps/localhost_production/shared/bundle/ruby/1.9.1/gems/railties-3.1.8/lib/rails/initializable.rb:30:inrun' from /home/railsapps/localhost_production/shared/bundle/ruby/1.9.1/gems/railties-3.1.8/lib/rails/initializable.rb:55:in
块中 run_initializers' 来自 /home/railsapps/localhost_production /shared/bundle/ruby/1.9.1/gems/railties-3.1.8/lib/rails/initializable.rb:54:ineach' from /home/railsapps/localhost_production/shared/bundle/ruby/1.9.1/gems/railties-3.1.8/lib/rails/initializable.rb:54:in
run_initializers' 来自 /home/railsapps/localhost_production/shared/bundle/ruby/1.9.1/ gems/railties-3.1.8/lib/rails/application.rb:96:ininitialize!' from /home/railsapps/localhost_production/shared/bundle/ruby/1.9.1/gems/railties-3.1.8/lib/rails/railtie/configurable.rb:30:in
method_missing' from /home/railsapps/localhost_production/current/config/environment.rb:5:in<top (required)>' from /home/railsapps/localhost_production/current/config.ru:3:in
require' from /home/railsapps/localhost_production/ current/config.ru:3:inblock in <main>' from /home/railsapps/localhost_production/shared/bundle/ruby/1.9.1/gems/rack-1.3.6/lib/rack/builder.rb:51:in
instance_eval' 来自 /home/railsapps/localhost_production/shared/bundle/ruby/1.9.1/gems/rack-1.3.6/lib/rack/builder.rb:51:ininitialize' from /home/railsapps/localhost_production/current/config.ru:1:in
新的'来自 /home/railsapps/localhost_production/current/config.ru:1:in<main>' from /home/railsapps/localhost_production/shared/bundle/ruby/1.9.1/gems/thin-1.5.0/lib/rack/adapter/loader.rb:33:in
eval' 来自 /home/railsapps/localhost_production/shared/bundle/ruby/1.9.1/gems/thin-1.5.0/lib/rack /adapter/loader.rb:33:inload' from /home/railsapps/localhost_production/shared/bundle/ruby/1.9.1/gems/thin-1.5.0/lib/rack/adapter/loader.rb:42:in
for' 来自 /home/railsapps/localhost_production/shared/bundle/ruby/1.9.1/gems/thin-1.5.0/lib/thin/controllers/controller.rb:169:从load_adapter' from /home/railsapps/localhost_production/shared/bundle/ruby/1.9.1/gems/thin-1.5.0/lib/thin/controllers/controller.rb:73:in
/home/railsapps/localhost_production/shared/bundle/ruby/1.9.1/gems/thin-1.5.0/lib/thin/runner.rb:187:in start' 开始run_command' from /home/railsapps/localhost_production/shared/bundle/ruby/1.9.1/gems/thin-1.5.0/lib/thin/runner.rb:152:in
!来自 /home/railsapps/localhost_production/shared/bundle/ruby/1.9.1/gems/thin-1.5.0/bin/thin:6:in<top (required)>' from /home/railsapps/localhost_production/shared/bundle/ruby/1.9.1/bin/thin:19:in
load' 来自 /home/railsapps/localhost_production/shared/bundle/ruby/1.9 .1/bin/thin:19:in `'