Heroku错误代码H10,退出状态1

时间:2013-04-23 20:51:14

标签: ruby-on-rails ruby heroku gem

任何人都可以对下面的heroku日志有所了解吗?我已经为heroku部署了一个rails应用程序,但我无法解决为什么它一直崩溃。我已经更新了gems文件以包含Ruby版本(1.8.7)。

对于Rails / Ruby我是新手,所以我不确定在这个问题上还需要提供什么。

$ heroku logs
?[36m2013-04-23T20:25:24.670813+00:00 app[web.1]:?[0m       create  config/locales
?[36m2013-04-23T20:25:24.671180+00:00 app[web.1]:?[0m       create  public/javascripts
?[36m2013-04-23T20:25:24.671180+00:00 app[web.1]:?[0m       create  log
?[36m2013-04-23T20:25:24.670813+00:00 app[web.1]:?[0m       create  doc
?[36m2013-04-23T20:25:24.670813+00:00 app[web.1]:?[0m       create  db
?[36m2013-04-23T20:25:24.671180+00:00 app[web.1]:?[0m       create  lib
?[36m2013-04-23T20:25:24.671180+00:00 app[web.1]:?[0m       create  script/performance
?[36m2013-04-23T20:25:24.670813+00:00 app[web.1]:?[0m       create  app/controllers
?[36m2013-04-23T20:25:24.671180+00:00 app[web.1]:?[0m       create  public/images
?[36m2013-04-23T20:25:24.671405+00:00 app[web.1]:?[0m       create  test/performance
?[36m2013-04-23T20:25:24.671180+00:00 app[web.1]:?[0m       create  lib/tasks
?[36m2013-04-23T20:25:24.671180+00:00 app[web.1]:?[0m       create  public/stylesheets
?[36m2013-04-23T20:25:24.671405+00:00 app[web.1]:?[0m       create  test/unit
?[36m2013-04-23T20:25:24.671405+00:00 app[web.1]:?[0m       create  vendor
?[36m2013-04-23T20:25:24.671405+00:00 app[web.1]:?[0m       create  vendor/plugins
?[36m2013-04-23T20:25:24.671405+00:00 app[web.1]:?[0m       create  tmp/sessions
?[36m2013-04-23T20:25:24.671405+00:00 app[web.1]:?[0m       create  tmp/sockets
?[36m2013-04-23T20:25:24.671180+00:00 app[web.1]:?[0m       create  test/fixtures
?[36m2013-04-23T20:25:24.671180+00:00 app[web.1]:?[0m       create  test/integration
?[36m2013-04-23T20:25:24.671180+00:00 app[web.1]:?[0m       create  test/functional
?[36m2013-04-23T20:25:24.671405+00:00 app[web.1]:?[0m       create  Rakefile
?[36m2013-04-23T20:25:24.671405+00:00 app[web.1]:?[0m       create  tmp/pids
?[36m2013-04-23T20:25:24.671405+00:00 app[web.1]:?[0m       create  README
?[36m2013-04-23T20:25:24.671405+00:00 app[web.1]:?[0m       create  tmp/cache
?[36m2013-04-23T20:25:24.671625+00:00 app[web.1]:?[0m       create  config/routes.rb
?[36m2013-04-23T20:25:24.671625+00:00 app[web.1]:?[0m       create  config/initializers/backtrace_silencers.rb
?[36m2013-04-23T20:25:24.671625+00:00 app[web.1]:?[0m       create  app/controllers/application_controller.rb
?[36m2013-04-23T20:25:24.671625+00:00 app[web.1]:?[0m       create  config/initializers/inflections.rb
?[36m2013-04-23T20:25:24.671625+00:00 app[web.1]:?[0m       create  config/initializers/mime_types.rb
?[36m2013-04-23T20:25:24.671625+00:00 app[web.1]:?[0m       create  config/initializers/new_rails_defaults.rb
?[36m2013-04-23T20:25:24.671625+00:00 app[web.1]:?[0m       create  app/helpers/application_helper.rb
?[36m2013-04-23T20:25:24.671625+00:00 app[web.1]:?[0m       create  config/database.yml
?[36m2013-04-23T20:25:24.671625+00:00 app[web.1]:?[0m       create  config/locales/en.yml
?[36m2013-04-23T20:25:24.671625+00:00 app[web.1]:?[0m       create  config/initializers/session_store.rb
?[36m2013-04-23T20:25:24.671852+00:00 app[web.1]:?[0m       create  config/environment.rb
?[36m2013-04-23T20:25:24.671852+00:00 app[web.1]:?[0m       create  config/environments/development.rb
?[36m2013-04-23T20:25:24.671852+00:00 app[web.1]:?[0m       create  config/boot.rb
?[36m2013-04-23T20:25:24.671852+00:00 app[web.1]:?[0m       create  script/dbconsole
?[36m2013-04-23T20:25:24.671852+00:00 app[web.1]:?[0m       create  config/environments/production.rb
?[36m2013-04-23T20:25:24.671852+00:00 app[web.1]:?[0m       create  config/environments/test.rb
?[36m2013-04-23T20:25:24.672077+00:00 app[web.1]:?[0m       create  test/performance/browsing_test.rb
?[36m2013-04-23T20:25:24.672077+00:00 app[web.1]:?[0m       create  test/test_helper.rb
?[36m2013-04-23T20:25:24.671852+00:00 app[web.1]:?[0m       create  script/about
?[36m2013-04-23T20:25:24.672077+00:00 app[web.1]:?[0m       create  public/404.html
?[36m2013-04-23T20:25:24.672292+00:00 app[web.1]:?[0m       create  public/images/rails.png
?[36m2013-04-23T20:25:24.672292+00:00 app[web.1]:?[0m       create  public/robots.txt
?[36m2013-04-23T20:25:24.672292+00:00 app[web.1]:?[0m       create  public/javascripts/controls.js
?[36m2013-04-23T20:25:24.672292+00:00 app[web.1]:?[0m       create  public/javascripts/effects.js
?[36m2013-04-23T20:25:24.672292+00:00 app[web.1]:?[0m       create  public/javascripts/application.js
?[36m2013-04-23T20:25:24.672077+00:00 app[web.1]:?[0m       create  script/runner
?[36m2013-04-23T20:25:24.672292+00:00 app[web.1]:?[0m       create  public/javascripts/dragdrop.js
?[36m2013-04-23T20:25:24.672077+00:00 app[web.1]:?[0m       create  public/422.html
?[36m2013-04-23T20:25:24.672292+00:00 app[web.1]:?[0m       create  public/javascripts/prototype.js
?[36m2013-04-23T20:25:24.672501+00:00 app[web.1]:?[0m       create  log/server.log
?[36m2013-04-23T20:25:24.671852+00:00 app[web.1]:?[0m       create  script/destroy
?[36m2013-04-23T20:25:24.672077+00:00 app[web.1]:?[0m       create  script/plugin
?[36m2013-04-23T20:25:24.672501+00:00 app[web.1]:?[0m       create  log/development.log
?[36m2013-04-23T20:25:24.672077+00:00 app[web.1]:?[0m       create  script/performance/profiler
?[36m2013-04-23T20:25:24.672292+00:00 app[web.1]:?[0m       create  public/favicon.ico
?[36m2013-04-23T20:25:24.672501+00:00 app[web.1]:?[0m       create  log/production.log
?[36m2013-04-23T20:25:24.671852+00:00 app[web.1]:?[0m       create  script/generate
?[36m2013-04-23T20:25:24.672077+00:00 app[web.1]:?[0m       create  public/500.html
?[36m2013-04-23T20:25:24.672501+00:00 app[web.1]:?[0m       create  log/test.log
?[36m2013-04-23T20:25:24.671852+00:00 app[web.1]:?[0m       create  script/console
?[36m2013-04-23T20:25:24.672292+00:00 app[web.1]:?[0m       create  public/index.html
?[36m2013-04-23T20:25:24.672077+00:00 app[web.1]:?[0m       create  script/server
?[36m2013-04-23T20:25:24.672077+00:00 app[web.1]:?[0m       create  script/performance/benchmarker
?[36m2013-04-23T20:25:24.672292+00:00 app[web.1]:?[0m       create  doc/README_FOR_APP
?[36m2013-04-23T20:25:26.009476+00:00 heroku[web.1]:?[0m Process exited with status 0
?[36m2013-04-23T20:25:26.023526+00:00 heroku[web.1]:?[0m State changed from starting to crashed
?[33m2013-04-23T20:28:26.349480+00:00 heroku[slugc]:?[0m Slug compilation started
?[32m2013-04-23T20:30:14.365781+00:00 heroku[api]:?[0m Release v13 created by support@quba.co.uk
?[32m2013-04-23T20:30:14.416565+00:00 heroku[api]:?[0m Deploy 0cb45cf by support@quba.co.uk
?[36m2013-04-23T20:30:14.502652+00:00 heroku[web.1]:?[0m State changed from crashed to starting
?[33m2013-04-23T20:30:15.173619+00:00 heroku[slugc]:?[0m Slug compilation finished
?[36m2013-04-23T20:30:17.673654+00:00 heroku[web.1]:?[0m Starting process with command `bundle exec rails server -p 37117`
?[36m2013-04-23T20:30:23.040260+00:00 app[web.1]:?[0m   from /app/vendor/bundle/ruby/1.8/gems/activesupport-2.3.2/lib/active_support.rb:56
?[36m2013-04-23T20:30:23.040260+00:00 app[web.1]:?[0m   from /app/vendor/bundle/ruby/1.8/gems/rails-2.3.2/bin/../lib/rails_generator.rb:28
?[36m2013-04-23T20:30:23.040260+00:00 app[web.1]:?[0m /app/vendor/bundle/ruby/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:55: unin
itialized constant ActiveSupport::Dependencies::Mutex (NameError)
?[36m2013-04-23T20:30:23.040260+00:00 app[web.1]:?[0m   from /app/vendor/bundle/ruby/1.8/gems/rails-2.3.2/bin/../lib/rails_generator.rb:28:in `require
'
?[36m2013-04-23T20:30:23.040260+00:00 app[web.1]:?[0m   from /app/vendor/bundle/ruby/1.8/bin/rails:23:in `load'
?[36m2013-04-23T20:30:23.040260+00:00 app[web.1]:?[0m   from /app/vendor/bundle/ruby/1.8/bin/rails:23
?[36m2013-04-23T20:30:23.040260+00:00 app[web.1]:?[0m   from /app/vendor/bundle/ruby/1.8/gems/rails-2.3.2/bin/rails:14
?[36m2013-04-23T20:30:23.040260+00:00 app[web.1]:?[0m   from /app/vendor/bundle/ruby/1.8/gems/activesupport-2.3.2/lib/active_support.rb:56:in `require
'
?[36m2013-04-23T20:30:23.040260+00:00 app[web.1]:?[0m   from /app/vendor/bundle/ruby/1.8/gems/rails-2.3.2/bin/rails:14:in `require'
?[36m2013-04-23T20:30:25.327139+00:00 heroku[web.1]:?[0m Process exited with status 1
?[36m2013-04-23T20:30:25.338958+00:00 heroku[web.1]:?[0m State changed from starting to crashed
?[35m2013-04-23T20:31:00.363764+00:00 heroku[router]:?[0m at=error code=H10 desc="App crashed" method=GET path=/ host=[APPNAME].herokuapp.com fw
d="81.23.51.18" dyno= connect= service= status=503 bytes=
?[36m2013-04-23T20:33:27.934787+00:00 heroku[web.1]:?[0m State changed from crashed to starting
?[36m2013-04-23T20:33:30.123025+00:00 heroku[web.1]:?[0m Starting process with command `bundle exec rails server -p 26457`
?[36m2013-04-23T20:33:31.440611+00:00 app[web.1]:?[0m /app/vendor/bundle/ruby/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:55: unin
itialized constant ActiveSupport::Dependencies::Mutex (NameError)
?[36m2013-04-23T20:33:31.440919+00:00 app[web.1]:?[0m   from /app/vendor/bundle/ruby/1.8/gems/activesupport-2.3.2/lib/active_support.rb:56
?[36m2013-04-23T20:33:31.440999+00:00 app[web.1]:?[0m   from /app/vendor/bundle/ruby/1.8/gems/rails-2.3.2/bin/../lib/rails_generator.rb:28:in `require
'
?[36m2013-04-23T20:33:31.441077+00:00 app[web.1]:?[0m   from /app/vendor/bundle/ruby/1.8/gems/rails-2.3.2/bin/../lib/rails_generator.rb:28
?[36m2013-04-23T20:33:31.441156+00:00 app[web.1]:?[0m   from /app/vendor/bundle/ruby/1.8/gems/rails-2.3.2/bin/rails:14:in `require'
?[36m2013-04-23T20:33:31.441234+00:00 app[web.1]:?[0m   from /app/vendor/bundle/ruby/1.8/gems/rails-2.3.2/bin/rails:14
?[36m2013-04-23T20:33:31.441341+00:00 app[web.1]:?[0m   from /app/vendor/bundle/ruby/1.8/bin/rails:23:in `load'
?[36m2013-04-23T20:33:31.441423+00:00 app[web.1]:?[0m   from /app/vendor/bundle/ruby/1.8/bin/rails:23
?[36m2013-04-23T20:33:31.440812+00:00 app[web.1]:?[0m   from /app/vendor/bundle/ruby/1.8/gems/activesupport-2.3.2/lib/active_support.rb:56:in `require
'
?[36m2013-04-23T20:33:32.797256+00:00 heroku[web.1]:?[0m Process exited with status 1
?[36m2013-04-23T20:33:32.809865+00:00 heroku[web.1]:?[0m State changed from starting to crashed

2 个答案:

答案 0 :(得分:1)

当您使用太新版本的RubyGems与您正在使用的Rails版本相比时,会发生错误“未初始化的常量ActiveSupport :: Dependencies :: Mutex”。但Heroku控制着它的版本,所以你有点卡在这里。看起来你在Ruby 1.8.7上使用的是一个非常旧版本的Rails,这非常接近它的生命周期。

答案 1 :(得分:0)

另外,你可以在这里查看: https://devcenter.heroku.com/articles/error-codes#h10-app-crashed

虽然不是很有帮助