Heroku ошибка H10 - (приложение упало) - PullRequest
2 голосов
/ 05 апреля 2011

У меня на локальном компьютере работает приложение RoR, но когда я его отправляю к героку, он вылетает. Журнал ошибок выдает ошибку H10 и говорит:

    $ heroku logs




2011-04-05T10:37:32-07:00 heroku[web.1]: State changed from starting to crashed
2011-04-05T10:37:39-07:00 heroku[rake.2]: State changed from created to starting

2011-04-05T10:37:44-07:00 heroku[rake.2]: State changed from starting to up
2011-04-05T10:37:48-07:00 heroku[rake.2]: State changed from up to complete
2011-04-05T10:38:29-07:00 heroku[nginx]: GET / HTTP/1.1 | 94.67.108.192 | 795 |
http | 503
2011-04-05T17:38:30+00:00 heroku[router]: Error H10 (App crashed) -> GET vivid-l
ight-27.heroku.com/favicon.ico dyno=none queue=0 wait=0ms service=0ms bytes=0
2011-04-05T17:40:24+00:00 heroku[router]: Error H10 (App crashed) -> GET vivid-l
ight-27.heroku.com/login dyno=none queue=0 wait=0ms service=0ms bytes=0
2011-04-05T17:40:25+00:00 heroku[router]: Error H10 (App crashed) -> GET vivid-l
ight-27.heroku.com/favicon.ico dyno=none queue=0 wait=0ms service=0ms bytes=0
2011-04-05T17:40:36+00:00 heroku[router]: Error H10 (App crashed) -> GET vivid-l
ight-27.heroku.com/pages/api dyno=none queue=0 wait=0ms service=0ms bytes=0
2011-04-05T10:40:37-07:00 heroku[nginx]: GET /pages/api HTTP/1.1 | 94.67.108.192
 | 796 | http | 503
2011-04-05T17:40:37+00:00 heroku[router]: Error H10 (App crashed) -> GET vivid-l
ight-27.heroku.com/favicon.ico dyno=none queue=0 wait=0ms service=0ms bytes=0
2011-04-05T10:47:31-07:00 heroku[web.1]: State changed from crashed to created
2011-04-05T10:47:31-07:00 heroku[web.1]: State changed from created to starting
2011-04-05T10:47:39-07:00 app[web.1]: /usr/ruby1.8.7/lib/ruby/site_ruby/1.8/ruby
gems.rb:779:in `report_activate_error': Could not find RubyGem oauth (>= 0.3.5)
(Gem::LoadError)
2011-04-05T10:47:39-07:00 app[web.1]:   from /usr/ruby1.8.7/lib/ruby/site_ruby/1
.8/rubygems.rb:214:in `activate'
2011-04-05T10:47:39-07:00 app[web.1]:   from /usr/ruby1.8.7/lib/ruby/site_ruby/1
.8/rubygems.rb:249:in `activate'
2011-04-05T10:47:39-07:00 app[web.1]:   from /usr/ruby1.8.7/lib/ruby/site_ruby/1
.8/rubygems.rb:248:in `each'
2011-04-05T10:47:39-07:00 app[web.1]:   from /usr/ruby1.8.7/lib/ruby/site_ruby/1
.8/rubygems.rb:248:in `activate'
2011-04-05T10:47:39-07:00 app[web.1]:   from /usr/ruby1.8.7/lib/ruby/site_ruby/1
.8/rubygems.rb:1082:in `gem'
2011-04-05T10:47:39-07:00 app[web.1]:   from /app/app/controllers/comments_contr
oller.rb:1
2011-04-05T10:47:39-07:00 app[web.1]:   from /usr/ruby1.8.7/lib/ruby/site_ruby/1
.8/rubygems/custom_require.rb:31:in `gem_original_require'
2011-04-05T10:47:39-07:00 app[web.1]:   from /usr/ruby1.8.7/lib/ruby/site_ruby/1
.8/rubygems/custom_require.rb:31:in `require'
2011-04-05T10:47:39-07:00 app[web.1]:   from /app/.gems/gems/activesupport-2.3.5
/lib/active_support/dependencies.rb:158:in `require'
2011-04-05T10:47:39-07:00 app[web.1]:   from /app/.gems/gems/activesupport-2.3.5
/lib/active_support/dependencies.rb:265:in `require_or_load'
2011-04-05T10:47:39-07:00 app[web.1]:   from /app/.gems/gems/activesupport-2.3.5
/lib/active_support/dependencies.rb:224:in `depend_on'
2011-04-05T10:47:39-07:00 app[web.1]:   from /app/.gems/gems/activesupport-2.3.5
/lib/active_support/dependencies.rb:136:in `require_dependency'
2011-04-05T10:47:39-07:00 app[web.1]:   from /app/.gems/gems/rails-2.3.5/lib/ini
tializer.rb:414:in `load_application_classes'
2011-04-05T10:47:39-07:00 app[web.1]:   from /app/.gems/gems/rails-2.3.5/lib/ini
tializer.rb:413:in `each'
2011-04-05T10:47:39-07:00 app[web.1]:   from /app/.gems/gems/rails-2.3.5/lib/ini
tializer.rb:413:in `load_application_classes'
2011-04-05T10:47:39-07:00 app[web.1]:   from /app/.gems/gems/rails-2.3.5/lib/ini
tializer.rb:411:in `each'
2011-04-05T10:47:39-07:00 app[web.1]:   from /app/.gems/gems/rails-2.3.5/lib/ini
tializer.rb:411:in `load_application_classes'
2011-04-05T10:47:39-07:00 app[web.1]:   from /app/.gems/gems/rails-2.3.5/lib/ini
tializer.rb:197:in `process'
2011-04-05T10:47:39-07:00 app[web.1]:   from /app/.gems/gems/rails-2.3.5/lib/ini
tializer.rb:113:in `send'
2011-04-05T10:47:39-07:00 app[web.1]:   from /app/.gems/gems/rails-2.3.5/lib/ini
tializer.rb:113:in `run'
2011-04-05T10:47:39-07:00 app[web.1]:   from /app/config/environment.rb:9
2011-04-05T10:47:39-07:00 app[web.1]:   from /usr/ruby1.8.7/lib/ruby/site_ruby/1
.8/rubygems/custom_require.rb:31:in `gem_original_require'
2011-04-05T10:47:39-07:00 app[web.1]:   from /usr/ruby1.8.7/lib/ruby/site_ruby/1
.8/rubygems/custom_require.rb:31:in `require'
2011-04-05T10:47:39-07:00 app[web.1]:   from /usr/ruby1.8.7/lib/ruby/gems/1.8/ge
ms/thin-1.2.6/lib/rack/adapter/rails.rb:42:in `load_application'
2011-04-05T10:47:39-07:00 app[web.1]:   from /home/heroku_rack/heroku.ru:1:in `n
ew'
2011-04-05T10:47:39-07:00 app[web.1]:   from /home/heroku_rack/heroku.ru:1
2011-04-05T10:47:39-07:00 heroku[web.1]: State changed from starting to crashed
2011-04-05T10:57:34-07:00 heroku[web.1]: State changed from crashed to created
2011-04-05T10:57:34-07:00 heroku[web.1]: State changed from created to starting
2011-04-05T10:57:39-07:00 app[web.1]:   from /usr/ruby1.8.7/lib/ruby/gems/1.8/ge
ms/rack-1.0.1/lib/rack/builder.rb:46:in `map'
2011-04-05T10:57:39-07:00 app[web.1]:   from /home/heroku_rack/heroku.ru:18
2011-04-05T10:57:39-07:00 app[web.1]:   from /usr/ruby1.8.7/lib/ruby/gems/1.8/ge
ms/rack-1.0.1/lib/rack/builder.rb:29:in `instance_eval'
2011-04-05T10:57:39-07:00 app[web.1]:   from /usr/ruby1.8.7/lib/ruby/gems/1.8/ge
ms/rack-1.0.1/lib/rack/builder.rb:29:in `initialize'
2011-04-05T10:57:39-07:00 app[web.1]:   from /home/heroku_rack/heroku.ru:11:in `
new'
2011-04-05T10:57:39-07:00 app[web.1]:   from /home/heroku_rack/heroku.ru:11
2011-04-05T10:57:39-07:00 app[web.1]:   from /usr/ruby1.8.7/lib/ruby/gems/1.8/ge
ms/rack-1.0.1/lib/rack/builder.rb:29:in `instance_eval'
2011-04-05T10:57:39-07:00 app[web.1]:   from /usr/ruby1.8.7/lib/ruby/gems/1.8/ge
ms/rack-1.0.1/lib/rack/builder.rb:29:in `initialize'
2011-04-05T10:57:39-07:00 app[web.1]:   from /home/heroku_rack/heroku.ru:1:in `n
ew'
2011-04-05T10:57:39-07:00 app[web.1]:   from /home/heroku_rack/heroku.ru:1
2011-04-05T10:57:40-07:00 heroku[web.1]: State changed from starting to crashed
2011-04-05T18:01:44+00:00 heroku[router]: Error H10 (App crashed) -> GET vivid-l
ight-27.heroku.com/ dyno=none queue=0 wait=0ms service=0ms bytes=0
2011-04-05T18:01:44+00:00 heroku[router]: Error H10 (App crashed) -> GET vivid-l
ight-27.heroku.com/favicon.ico dyno=none queue=0 wait=0ms service=0ms bytes=0
2011-04-05T11:01:45-07:00 heroku[nginx]: GET /favicon.ico HTTP/1.1 | 94.67.108.1
92 | 796 | http | 503
2011-04-05T11:07:13-07:00 heroku[rake.3]: State changed from created to starting

2011-04-05T11:07:19-07:00 heroku[rake.3]: State changed from starting to up
2011-04-05T11:07:21-07:00 heroku[rake.3]: State changed from up to complete
2011-04-05T18:07:43+00:00 heroku[router]: Error H10 (App crashed) -> GET vivid-l
ight-27.heroku.com/ dyno=none queue=0 wait=0ms service=0ms bytes=0
2011-04-05T11:07:44-07:00 heroku[nginx]: GET / HTTP/1.1 | 94.67.108.192 | 795 |
http | 503
2011-04-05T18:07:44+00:00 heroku[router]: Error H10 (App crashed) -> GET vivid-l
ight-27.heroku.com/favicon.ico dyno=none queue=0 wait=0ms service=0ms bytes=0
2011-04-05T11:07:44-07:00 heroku[nginx]: GET /favicon.ico HTTP/1.1 | 94.67.108.1
92 | 796 | http | 503

Кто-нибудь имел это раньше и знает, что может быть причиной проблема?

Спасибо.

Ответы [ 3 ]

3 голосов
/ 05 апреля 2011

Ошибка в журнале:

gems.rb:779:in `report_activate_error': Could not find RubyGem oauth (>= 0.3.5)

Вы, вероятно, используете rails 2.3, и вам нужно добавить oauth в ваш файл .gems.

1 голос
/ 06 апреля 2011

Проблема решена!

Поскольку Rails 2.3.5 и старше несовместимы с Rack 1.1.0, мое приложение не запустилось. Зависимости твиттера gem конфликтовали с rack, поэтому я указал флаг --ignore-dependencies на .gems, чтобы игнорировать Rack, и добавил другие зависимости в руководство .gems.

они:

oauth --version 0.3.5
mash --version 0.0.3 --ignore-dependencies
hoe --version 1.5.1
httparty --version 0.4.3

ВСЕ РАБОТАЕТ МНОГО!

Спасибо!

0 голосов
/ 05 апреля 2011
heroku gem install v=2.3.5 rails 
...