Rails 应用程序在本地运行,在 Heroku 上崩溃

发布于 2024-12-05 08:55:19 字数 13539 浏览 1 评论 0原文

我一直试图从日志中找出问题所在,但不知道如何修复。以下是日志中的片段,我对如何修复有点困惑。任何帮助将不胜感激。

Could not load SystemTimer >= v1.2.0. Falling back to timeout.rb. SystemTimer is STRONGLY recommended for timeouts in Ruby 1.8.7. See http://ph7spot.com/blog/system-timer-1-2-release for details.

/app/.bundle/gems/ruby/1.8/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:306:in `depend_on': No such file to load -- spec_helper (LoadError)

这是在日志的顶部

from /app/.bundle/gems/ruby/1.8/gems/railties-3.1.0/lib/rails/initializable.rb:49:in `run_initializers'

根据捆绑包,正在使用以下宝石

安装了以下宝石

根据捆绑包安装,使用 rake (0.9.2) 使用摘要(1.0.0) 使用 activesupport (3.0.3) 使用构建器 (2.1.2) 使用 i18n (0.6.0) 使用活动模型(3.0.3) 使用 erubis (2.6.6) 使用机架 (1.2.4) 使用机架安装 (0.6.14) 使用机架测试 (0.5.7) 使用 tzinfo (0.3.29) 使用动作包 (3.0.3) 使用 mime 类型 (1.16) 使用多语言 (0.3.2) 使用树顶 (1.4.10) 使用邮件 (2.2.19) 使用actionmailer (3.0.3) 使用 arel (2.0.10) 使用活动记录(3.0.3) 使用活动资源 (3.0.3) 使用 bson (1.3.1) 使用 bson_ext (1.3.1) 使用捆绑器 (1.0.18) 使用载波 (0.5.7) 使用 excon (0.6.6) 使用格式化程序(0.2.1) 使用 multi_json (1.0.3) 使用 net-ssh (2.1.4) 使用net-scp (1.0.4) 使用 nokogiri (1.5.0) 使用 ruby​​-hmac (0.4.0) 使用雾 (0.11.0) 使用 formattastic (1.2.4) 使用蒙戈(1.3.1) 使用勇敢 (0.3.8) 使用 mongo_mapper (0.9.2) 使用雷神 (0.14.6) 使用 Railties (3.0.3) 使用导轨 (3.0.3) 使用rails3-generators (0.17.4)

这是完整的heroku 日志

2011-09-19T00:19:53+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.3/lib/rails/initializable.rb:49:in `run_initializers'
2011-09-19T00:19:53+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.3/lib/rails/application.rb:134:in `initialize!'
2011-09-19T00:19:53+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.3/lib/rails/application.rb:77:in `method_missing'
2011-09-19T00:19:53+00:00 app[web.1]:   from /app/config/environment.rb:5:in `<top (required)>'
2011-09-19T00:19:53+00:00 app[web.1]:   from <internal:lib/rubygems/custom_require>:29:in `require'
2011-09-19T00:19:53+00:00 app[web.1]:   from <internal:lib/rubygems/custom_require>:29:in `require'
2011-09-19T00:19:53+00:00 app[web.1]:   from config.ru:3:in `block (3 levels) in <main>'
2011-09-19T00:19:53+00:00 app[web.1]:   from /home/heroku_rack/heroku.ru:23:in `eval'
2011-09-19T00:19:53+00:00 app[web.1]:   from /home/heroku_rack/heroku.ru:23:in `block (3 levels) in <main>'
2011-09-19T00:19:53+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.9.1/gems/rack-1.2.1/lib/rack/builder.rb:46:in `instance_eval'
2011-09-19T00:19:53+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.9.1/gems/rack-1.2.1/lib/rack/builder.rb:46:in `initialize'
2011-09-19T00:19:53+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.9.1/gems/rack-1.2.1/lib/rack/builder.rb:63:in `new'
2011-09-19T00:19:53+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.9.1/gems/rack-1.2.1/lib/rack/builder.rb:63:in `map'
2011-09-19T00:19:53+00:00 app[web.1]:   from /home/heroku_rack/heroku.ru:18:in `block (2 levels) in <main>'
2011-09-19T00:19:53+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.9.1/gems/rack-1.2.1/lib/rack/builder.rb:46:in `instance_eval'
2011-09-19T00:19:53+00:00 heroku[web.1]: Process exited
2011-09-19T00:19:53+00:00 heroku[web.1]: State changed from starting to crashed
2011-09-19T00:31:24+00:00 heroku[web.1]: State changed from crashed to created
2011-09-19T00:31:24+00:00 heroku[web.1]: State changed from created to starting
2011-09-19T00:31:27+00:00 heroku[web.1]: Starting process with command `thin -p 42871 -e production -R /home/heroku_rack/heroku.ru start`
2011-09-19T00:31:31+00:00 app[web.1]: /app/.bundle/gems/ruby/1.9.1/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:304:in `rescue in depend_on': No such file to load -- spec_helper (LoadError)
2011-09-19T00:31:31+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.9.1/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:299:in `depend_on'
2011-09-19T00:31:31+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.9.1/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:216:in `require_dependency'
2011-09-19T00:31:31+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.3/lib/rails/engine.rb:138:in `block (2 levels) in eager_load!'
2011-09-19T00:31:31+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.3/lib/rails/engine.rb:137:in `each'
2011-09-19T00:31:31+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.3/lib/rails/engine.rb:137:in `block in eager_load!'
2011-09-19T00:31:31+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.3/lib/rails/engine.rb:135:in `each'
2011-09-19T00:31:31+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.3/lib/rails/engine.rb:135:in `eager_load!'
2011-09-19T00:31:31+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.3/lib/rails/application.rb:108:in `eager_load!'
2011-09-19T00:31:31+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.3/lib/rails/application/finisher.rb:41:in `block in <module:Finisher>'
2011-09-19T00:31:31+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.3/lib/rails/initializable.rb:25:in `instance_exec'
2011-09-19T00:31:31+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.3/lib/rails/initializable.rb:25:in `run'
2011-09-19T00:31:31+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.3/lib/rails/initializable.rb:50:in `block in run_initializers'
2011-09-19T00:31:31+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.3/lib/rails/initializable.rb:49:in `each'
2011-09-19T00:31:31+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.3/lib/rails/initializable.rb:49:in `run_initializers'
2011-09-19T00:31:31+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.3/lib/rails/application.rb:134:in `initialize!'
2011-09-19T00:31:31+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.3/lib/rails/application.rb:77:in `method_missing'
2011-09-19T00:31:31+00:00 app[web.1]:   from /app/config/environment.rb:5:in `<top (required)>'
2011-09-19T00:31:31+00:00 app[web.1]:   from <internal:lib/rubygems/custom_require>:29:in `require'
2011-09-19T00:31:31+00:00 app[web.1]:   from <internal:lib/rubygems/custom_require>:29:in `require'
2011-09-19T00:31:31+00:00 app[web.1]:   from config.ru:3:in `block (3 levels) in <main>'
2011-09-19T00:31:31+00:00 app[web.1]:   from /home/heroku_rack/heroku.ru:23:in `eval'
2011-09-19T00:31:31+00:00 heroku[web.1]: Process exited
2011-09-19T00:31:32+00:00 heroku[web.1]: State changed from starting to crashed
2011-09-19T00:40:49+00:00 heroku[slugc]: Slug compilation started
2011-09-19T00:40:59+00:00 heroku[api]: Deploy 50313f5 by [email protected]
2011-09-19T00:40:59+00:00 heroku[api]: Release v5 created by [email protected]
2011-09-19T00:40:59+00:00 heroku[web.1]: State changed from crashed to created
2011-09-19T00:40:59+00:00 heroku[web.1]: State changed from created to starting
2011-09-19T00:41:00+00:00 heroku[slugc]: Slug compilation finished
2011-09-19T00:41:02+00:00 heroku[web.1]: Starting process with command `thin -p 22238 -e production -R /home/heroku_rack/heroku.ru start`
2011-09-19T00:41:06+00:00 app[web.1]: /app/.bundle/gems/ruby/1.9.1/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:304:in `rescue in depend_on': No such file to load -- spec_helper (LoadError)
2011-09-19T00:41:06+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.9.1/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:299:in `depend_on'
2011-09-19T00:41:06+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.9.1/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:216:in `require_dependency'
2011-09-19T00:41:06+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.3/lib/rails/engine.rb:138:in `block (2 levels) in eager_load!'
2011-09-19T00:41:06+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.3/lib/rails/engine.rb:137:in `each'
2011-09-19T00:41:06+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.3/lib/rails/engine.rb:137:in `block in eager_load!'
2011-09-19T00:41:06+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.3/lib/rails/engine.rb:135:in `each'
2011-09-19T00:41:06+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.3/lib/rails/engine.rb:135:in `eager_load!'
2011-09-19T00:41:06+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.3/lib/rails/application.rb:108:in `eager_load!'
2011-09-19T00:41:06+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.3/lib/rails/application/finisher.rb:41:in `block in <module:Finisher>'
2011-09-19T00:41:06+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.3/lib/rails/initializable.rb:25:in `instance_exec'
2011-09-19T00:41:06+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.3/lib/rails/initializable.rb:25:in `run'
2011-09-19T00:41:06+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.3/lib/rails/initializable.rb:50:in `block in run_initializers'
2011-09-19T00:41:06+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.3/lib/rails/initializable.rb:49:in `each'
2011-09-19T00:41:06+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.3/lib/rails/initializable.rb:49:in `run_initializers'
2011-09-19T00:41:06+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.3/lib/rails/application.rb:134:in `initialize!'
2011-09-19T00:41:06+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.3/lib/rails/application.rb:77:in `method_missing'
2011-09-19T00:41:06+00:00 app[web.1]:   from /app/config/environment.rb:5:in `<top (required)>'
2011-09-19T00:41:06+00:00 app[web.1]:   from <internal:lib/rubygems/custom_require>:29:in `require'
2011-09-19T00:41:06+00:00 app[web.1]:   from <internal:lib/rubygems/custom_require>:29:in `require'
2011-09-19T00:41:06+00:00 app[web.1]:   from config.ru:3:in `block (3 levels) in <main>'
2011-09-19T00:41:06+00:00 app[web.1]:   from /home/heroku_rack/heroku.ru:23:in `eval'
2011-09-19T00:41:06+00:00 app[web.1]:   from /home/heroku_rack/heroku.ru:23:in `block (3 levels) in <main>'
2011-09-19T00:41:06+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.9.1/gems/rack-1.2.1/lib/rack/builder.rb:46:in `instance_eval'
2011-09-19T00:41:06+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.9.1/gems/rack-1.2.1/lib/rack/builder.rb:46:in `initialize'
2011-09-19T00:41:06+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.9.1/gems/rack-1.2.1/lib/rack/builder.rb:63:in `new'
2011-09-19T00:41:06+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.9.1/gems/rack-1.2.1/lib/rack/builder.rb:63:in `map'
2011-09-19T00:41:06+00:00 app[web.1]:   from /home/heroku_rack/heroku.ru:18:in `block (2 levels) in <main>'
2011-09-19T00:41:06+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.9.1/gems/rack-1.2.1/lib/rack/builder.rb:46:in `instance_eval'
2011-09-19T00:41:06+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.9.1/gems/rack-1.2.1/lib/rack/builder.rb:46:in `initialize'
2011-09-19T00:41:06+00:00 app[web.1]:   from /home/heroku_rack/heroku.ru:11:in `new'
2011-09-19T00:41:06+00:00 app[web.1]:   from /home/heroku_rack/heroku.ru:11:in `block in <main>'
2011-09-19T00:41:06+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.9.1/gems/rack-1.2.1/lib/rack/builder.rb:46:in `instance_eval'
2011-09-19T00:41:06+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.9.1/gems/rack-1.2.1/lib/rack/builder.rb:46:in `initialize'
2011-09-19T00:41:06+00:00 app[web.1]:   from /home/heroku_rack/heroku.ru:1:in `new'
2011-09-19T00:41:06+00:00 app[web.1]:   from /home/heroku_rack/heroku.ru:1:in `<main>'
2011-09-19T00:41:06+00:00 app[web.1]:   from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/thin-1.2.6/lib/rack/adapter/loader.rb:36:in `eval'
2011-09-19T00:41:06+00:00 app[web.1]:   from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/thin-1.2.6/lib/rack/adapter/loader.rb:36:in `load'
2011-09-19T00:41:06+00:00 app[web.1]:   from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/thin-1.2.6/lib/thin/controllers/controller.rb:175:in `load_rackup_config'
2011-09-19T00:41:06+00:00 app[web.1]:   from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/thin-1.2.6/lib/thin/controllers/controller.rb:65:in `start'
2011-09-19T00:41:06+00:00 app[web.1]:   from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/thin-1.2.6/lib/thin/runner.rb:177:in `run_command'
2011-09-19T00:41:06+00:00 app[web.1]:   from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/thin-1.2.6/lib/thin/runner.rb:143:in `run!'
2011-09-19T00:41:06+00:00 app[web.1]:   from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/thin-1.2.6/bin/thin:6:in `<top (required)>'
2011-09-19T00:41:06+00:00 app[web.1]:   from /usr/ruby1.9.2/bin/thin:19:in `load'
2011-09-19T00:41:06+00:00 app[web.1]:   from /usr/ruby1.9.2/bin/thin:19:in `<main>'
2011-09-19T00:41:06+00:00 heroku[web.1]: Process exited
2011-09-19T00:41:07+00:00 heroku[web.1]: State changed from starting to crashed

谢谢!

I've been trying to figure out what's going wrong from the logs, but have no idea how to fix it. Here are the snippets from the logs I'm a little confused as to how to fix. Any help would be greatly appreciated.

Could not load SystemTimer >= v1.2.0. Falling back to timeout.rb. SystemTimer is STRONGLY recommended for timeouts in Ruby 1.8.7. See http://ph7spot.com/blog/system-timer-1-2-release for details.

/app/.bundle/gems/ruby/1.8/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:306:in `depend_on': No such file to load -- spec_helper (LoadError)

and this was at the top of the logs

from /app/.bundle/gems/ruby/1.8/gems/railties-3.1.0/lib/rails/initializable.rb:49:in `run_initializers'

According to bundle, the following gems are being used

According to bundle install, the following gems are installed

Using rake (0.9.2)
Using abstract (1.0.0)
Using activesupport (3.0.3)
Using builder (2.1.2)
Using i18n (0.6.0)
Using activemodel (3.0.3)
Using erubis (2.6.6)
Using rack (1.2.4)
Using rack-mount (0.6.14)
Using rack-test (0.5.7)
Using tzinfo (0.3.29)
Using actionpack (3.0.3)
Using mime-types (1.16)
Using polyglot (0.3.2)
Using treetop (1.4.10)
Using mail (2.2.19)
Using actionmailer (3.0.3)
Using arel (2.0.10)
Using activerecord (3.0.3)
Using activeresource (3.0.3)
Using bson (1.3.1)
Using bson_ext (1.3.1)
Using bundler (1.0.18)
Using carrierwave (0.5.7)
Using excon (0.6.6)
Using formatador (0.2.1)
Using multi_json (1.0.3)
Using net-ssh (2.1.4)
Using net-scp (1.0.4)
Using nokogiri (1.5.0)
Using ruby-hmac (0.4.0)
Using fog (0.11.0)
Using formtastic (1.2.4)
Using mongo (1.3.1)
Using plucky (0.3.8)
Using mongo_mapper (0.9.2)
Using thor (0.14.6)
Using railties (3.0.3)
Using rails (3.0.3)
Using rails3-generators (0.17.4)

Here are the full heroku logs

2011-09-19T00:19:53+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.3/lib/rails/initializable.rb:49:in `run_initializers'
2011-09-19T00:19:53+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.3/lib/rails/application.rb:134:in `initialize!'
2011-09-19T00:19:53+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.3/lib/rails/application.rb:77:in `method_missing'
2011-09-19T00:19:53+00:00 app[web.1]:   from /app/config/environment.rb:5:in `<top (required)>'
2011-09-19T00:19:53+00:00 app[web.1]:   from <internal:lib/rubygems/custom_require>:29:in `require'
2011-09-19T00:19:53+00:00 app[web.1]:   from <internal:lib/rubygems/custom_require>:29:in `require'
2011-09-19T00:19:53+00:00 app[web.1]:   from config.ru:3:in `block (3 levels) in <main>'
2011-09-19T00:19:53+00:00 app[web.1]:   from /home/heroku_rack/heroku.ru:23:in `eval'
2011-09-19T00:19:53+00:00 app[web.1]:   from /home/heroku_rack/heroku.ru:23:in `block (3 levels) in <main>'
2011-09-19T00:19:53+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.9.1/gems/rack-1.2.1/lib/rack/builder.rb:46:in `instance_eval'
2011-09-19T00:19:53+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.9.1/gems/rack-1.2.1/lib/rack/builder.rb:46:in `initialize'
2011-09-19T00:19:53+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.9.1/gems/rack-1.2.1/lib/rack/builder.rb:63:in `new'
2011-09-19T00:19:53+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.9.1/gems/rack-1.2.1/lib/rack/builder.rb:63:in `map'
2011-09-19T00:19:53+00:00 app[web.1]:   from /home/heroku_rack/heroku.ru:18:in `block (2 levels) in <main>'
2011-09-19T00:19:53+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.9.1/gems/rack-1.2.1/lib/rack/builder.rb:46:in `instance_eval'
2011-09-19T00:19:53+00:00 heroku[web.1]: Process exited
2011-09-19T00:19:53+00:00 heroku[web.1]: State changed from starting to crashed
2011-09-19T00:31:24+00:00 heroku[web.1]: State changed from crashed to created
2011-09-19T00:31:24+00:00 heroku[web.1]: State changed from created to starting
2011-09-19T00:31:27+00:00 heroku[web.1]: Starting process with command `thin -p 42871 -e production -R /home/heroku_rack/heroku.ru start`
2011-09-19T00:31:31+00:00 app[web.1]: /app/.bundle/gems/ruby/1.9.1/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:304:in `rescue in depend_on': No such file to load -- spec_helper (LoadError)
2011-09-19T00:31:31+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.9.1/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:299:in `depend_on'
2011-09-19T00:31:31+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.9.1/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:216:in `require_dependency'
2011-09-19T00:31:31+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.3/lib/rails/engine.rb:138:in `block (2 levels) in eager_load!'
2011-09-19T00:31:31+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.3/lib/rails/engine.rb:137:in `each'
2011-09-19T00:31:31+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.3/lib/rails/engine.rb:137:in `block in eager_load!'
2011-09-19T00:31:31+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.3/lib/rails/engine.rb:135:in `each'
2011-09-19T00:31:31+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.3/lib/rails/engine.rb:135:in `eager_load!'
2011-09-19T00:31:31+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.3/lib/rails/application.rb:108:in `eager_load!'
2011-09-19T00:31:31+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.3/lib/rails/application/finisher.rb:41:in `block in <module:Finisher>'
2011-09-19T00:31:31+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.3/lib/rails/initializable.rb:25:in `instance_exec'
2011-09-19T00:31:31+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.3/lib/rails/initializable.rb:25:in `run'
2011-09-19T00:31:31+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.3/lib/rails/initializable.rb:50:in `block in run_initializers'
2011-09-19T00:31:31+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.3/lib/rails/initializable.rb:49:in `each'
2011-09-19T00:31:31+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.3/lib/rails/initializable.rb:49:in `run_initializers'
2011-09-19T00:31:31+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.3/lib/rails/application.rb:134:in `initialize!'
2011-09-19T00:31:31+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.3/lib/rails/application.rb:77:in `method_missing'
2011-09-19T00:31:31+00:00 app[web.1]:   from /app/config/environment.rb:5:in `<top (required)>'
2011-09-19T00:31:31+00:00 app[web.1]:   from <internal:lib/rubygems/custom_require>:29:in `require'
2011-09-19T00:31:31+00:00 app[web.1]:   from <internal:lib/rubygems/custom_require>:29:in `require'
2011-09-19T00:31:31+00:00 app[web.1]:   from config.ru:3:in `block (3 levels) in <main>'
2011-09-19T00:31:31+00:00 app[web.1]:   from /home/heroku_rack/heroku.ru:23:in `eval'
2011-09-19T00:31:31+00:00 heroku[web.1]: Process exited
2011-09-19T00:31:32+00:00 heroku[web.1]: State changed from starting to crashed
2011-09-19T00:40:49+00:00 heroku[slugc]: Slug compilation started
2011-09-19T00:40:59+00:00 heroku[api]: Deploy 50313f5 by [email protected]
2011-09-19T00:40:59+00:00 heroku[api]: Release v5 created by [email protected]
2011-09-19T00:40:59+00:00 heroku[web.1]: State changed from crashed to created
2011-09-19T00:40:59+00:00 heroku[web.1]: State changed from created to starting
2011-09-19T00:41:00+00:00 heroku[slugc]: Slug compilation finished
2011-09-19T00:41:02+00:00 heroku[web.1]: Starting process with command `thin -p 22238 -e production -R /home/heroku_rack/heroku.ru start`
2011-09-19T00:41:06+00:00 app[web.1]: /app/.bundle/gems/ruby/1.9.1/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:304:in `rescue in depend_on': No such file to load -- spec_helper (LoadError)
2011-09-19T00:41:06+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.9.1/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:299:in `depend_on'
2011-09-19T00:41:06+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.9.1/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:216:in `require_dependency'
2011-09-19T00:41:06+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.3/lib/rails/engine.rb:138:in `block (2 levels) in eager_load!'
2011-09-19T00:41:06+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.3/lib/rails/engine.rb:137:in `each'
2011-09-19T00:41:06+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.3/lib/rails/engine.rb:137:in `block in eager_load!'
2011-09-19T00:41:06+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.3/lib/rails/engine.rb:135:in `each'
2011-09-19T00:41:06+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.3/lib/rails/engine.rb:135:in `eager_load!'
2011-09-19T00:41:06+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.3/lib/rails/application.rb:108:in `eager_load!'
2011-09-19T00:41:06+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.3/lib/rails/application/finisher.rb:41:in `block in <module:Finisher>'
2011-09-19T00:41:06+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.3/lib/rails/initializable.rb:25:in `instance_exec'
2011-09-19T00:41:06+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.3/lib/rails/initializable.rb:25:in `run'
2011-09-19T00:41:06+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.3/lib/rails/initializable.rb:50:in `block in run_initializers'
2011-09-19T00:41:06+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.3/lib/rails/initializable.rb:49:in `each'
2011-09-19T00:41:06+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.3/lib/rails/initializable.rb:49:in `run_initializers'
2011-09-19T00:41:06+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.3/lib/rails/application.rb:134:in `initialize!'
2011-09-19T00:41:06+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.3/lib/rails/application.rb:77:in `method_missing'
2011-09-19T00:41:06+00:00 app[web.1]:   from /app/config/environment.rb:5:in `<top (required)>'
2011-09-19T00:41:06+00:00 app[web.1]:   from <internal:lib/rubygems/custom_require>:29:in `require'
2011-09-19T00:41:06+00:00 app[web.1]:   from <internal:lib/rubygems/custom_require>:29:in `require'
2011-09-19T00:41:06+00:00 app[web.1]:   from config.ru:3:in `block (3 levels) in <main>'
2011-09-19T00:41:06+00:00 app[web.1]:   from /home/heroku_rack/heroku.ru:23:in `eval'
2011-09-19T00:41:06+00:00 app[web.1]:   from /home/heroku_rack/heroku.ru:23:in `block (3 levels) in <main>'
2011-09-19T00:41:06+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.9.1/gems/rack-1.2.1/lib/rack/builder.rb:46:in `instance_eval'
2011-09-19T00:41:06+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.9.1/gems/rack-1.2.1/lib/rack/builder.rb:46:in `initialize'
2011-09-19T00:41:06+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.9.1/gems/rack-1.2.1/lib/rack/builder.rb:63:in `new'
2011-09-19T00:41:06+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.9.1/gems/rack-1.2.1/lib/rack/builder.rb:63:in `map'
2011-09-19T00:41:06+00:00 app[web.1]:   from /home/heroku_rack/heroku.ru:18:in `block (2 levels) in <main>'
2011-09-19T00:41:06+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.9.1/gems/rack-1.2.1/lib/rack/builder.rb:46:in `instance_eval'
2011-09-19T00:41:06+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.9.1/gems/rack-1.2.1/lib/rack/builder.rb:46:in `initialize'
2011-09-19T00:41:06+00:00 app[web.1]:   from /home/heroku_rack/heroku.ru:11:in `new'
2011-09-19T00:41:06+00:00 app[web.1]:   from /home/heroku_rack/heroku.ru:11:in `block in <main>'
2011-09-19T00:41:06+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.9.1/gems/rack-1.2.1/lib/rack/builder.rb:46:in `instance_eval'
2011-09-19T00:41:06+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.9.1/gems/rack-1.2.1/lib/rack/builder.rb:46:in `initialize'
2011-09-19T00:41:06+00:00 app[web.1]:   from /home/heroku_rack/heroku.ru:1:in `new'
2011-09-19T00:41:06+00:00 app[web.1]:   from /home/heroku_rack/heroku.ru:1:in `<main>'
2011-09-19T00:41:06+00:00 app[web.1]:   from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/thin-1.2.6/lib/rack/adapter/loader.rb:36:in `eval'
2011-09-19T00:41:06+00:00 app[web.1]:   from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/thin-1.2.6/lib/rack/adapter/loader.rb:36:in `load'
2011-09-19T00:41:06+00:00 app[web.1]:   from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/thin-1.2.6/lib/thin/controllers/controller.rb:175:in `load_rackup_config'
2011-09-19T00:41:06+00:00 app[web.1]:   from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/thin-1.2.6/lib/thin/controllers/controller.rb:65:in `start'
2011-09-19T00:41:06+00:00 app[web.1]:   from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/thin-1.2.6/lib/thin/runner.rb:177:in `run_command'
2011-09-19T00:41:06+00:00 app[web.1]:   from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/thin-1.2.6/lib/thin/runner.rb:143:in `run!'
2011-09-19T00:41:06+00:00 app[web.1]:   from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/thin-1.2.6/bin/thin:6:in `<top (required)>'
2011-09-19T00:41:06+00:00 app[web.1]:   from /usr/ruby1.9.2/bin/thin:19:in `load'
2011-09-19T00:41:06+00:00 app[web.1]:   from /usr/ruby1.9.2/bin/thin:19:in `<main>'
2011-09-19T00:41:06+00:00 heroku[web.1]: Process exited
2011-09-19T00:41:07+00:00 heroku[web.1]: State changed from starting to crashed

Thanks!

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

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

发布评论

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

评论(3

枯寂 2024-12-12 08:55:19

我也有同样的事情。事实证明,在开发过程中,规范以某种方式被复制到了控制器文件夹中。对当地没有任何影响,但雪松崩溃了......

I had the same thing. Turns out during development a spec had somehow gotten copied up into into the controllers folder. Didn't have any affect locally, but crashed cedar...

緦唸λ蓇 2024-12-12 08:55:19

我认为问题可能出在这一行:

/app/.bundle/gems/ruby/1.8/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:306:in `depend_on': No such file to load -- spec_helper (LoadError)

似乎您的初始化程序之一中有 require "spec_helper" (或在其他地方加载执行相同操作的文件),但不应该。这可能与 Gemfile 中位于 :test 组中的 gem 有关,默认情况下,Heroku 上不会加载这些 gem。

您可以尝试在本地运行 bundle install --without testdevelopment 来重现 Heroku 如何安装 gem。请注意,这将是捆绑安装 gem 的永久方式,直到您从项目中删除 ./.bundle/config 文件,因此一旦您弄清楚了事情,您将需要执行此操作。

希望这有帮助...

I think the problem might be in this line:

/app/.bundle/gems/ruby/1.8/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:306:in `depend_on': No such file to load -- spec_helper (LoadError)

It seems that one of your initializers has require "spec_helper" in it (or loads a file elsewhere that does the same) and shouldn't. This might have to do with gems in your Gemfile that are in the :test group that don't get loaded by default on Heroku.

You might try running bundle install --without test development locally to reproduce how Heroku is installing the gems. Note that this will be the permanent way that bundle installs gems until you delete the ./.bundle/config file from your project, so you will want to do that afterwards once you've figured things out.

Hope this helps...

野鹿林 2024-12-12 08:55:19

与乘客有同样的问题。问题是依赖于库的模型中的需求。将 lib 目录添加到自动加载并删除所有需求(由fgrep 'require' -r app/ 找到)有效。

Had the same issue with passenger. The problem was a require in a model that depended on a lib. Adding the lib directory to autoload and removing all requires (found by fgrep 'require' -r app/) worked.

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