2012-10-21 152 views
0

我一直在嘗試過去幾天來修復一次我將應用程序推送到Heroku時發生的錯誤。Heroku推送錯誤H10

該應用在Webrick上啓動時可以正常工作,但由於某種原因,當我試圖在Heroku上加載我的應用時,我仍然收到一個Application Error頁面。

我有以下日誌報告 - 有誰知道我該如何解決這個問題?

2012-10-21T14:17:52+00:00 app[web.1]: => Rails 3.2.0 application starting in production on http://0.0.0.0:23771 
2012-10-21T14:17:52+00:00 app[web.1]: /app/app/uploaders/cv_uploader.rb:3:in `<top (required)>': uninitialized constant CarrierWave (NameError) 
2012-10-21T14:17:52+00:00 app[web.1]: => Call with -d to detach 
2012-10-21T14:17:52+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.0/lib/active_support/inflector/methods.rb:225:in `constantize' 
2012-10-21T14:17:52+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.0/lib/active_support/inflector/methods.rb:256:in `safe_constantize' 
2012-10-21T14:17:52+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.0/lib/active_support/core_ext/string/inflections.rb:66:in `safe_constantize' 
2012-10-21T14:17:52+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.0/lib/action_controller/metal/params_wrapper.rb:152:in `_default_wrap_model' 
2012-10-21T14:17:52+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.0/lib/action_controller/metal/params_wrapper.rb:169:in `_set_wrapper_defaults' 
2012-10-21T14:17:52+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.0/lib/abstract_controller/railties/routes_helpers.rb:7:in `block(2 levels) in with' 
2012-10-21T14:17:52+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.0/lib/action_controller/metal/params_wrapper.rb:133:in `inherited' 
2012-10-21T14:17:52+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.0/lib/rails/engine.rb:438:in `each' 
2012-10-21T14:17:52+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.0/lib/action_controller/railties/paths.rb:7:in `block (2 levels)in with' 
2012-10-21T14:17:52+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.0/lib/rails/engine.rb:439:in `block (2 levels) in eager_load!' 
2012-10-21T14:17:52+00:00 app[web.1]: from /app/app/controllers/apps_controller.rb:1:in `<top (required)>' 
2012-10-21T14:17:52+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.0/lib/rails/engine.rb:438:in `block in eager_load!' 
2012-10-21T14:17:52+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.0/lib/rails/application.rb:136:in `initialize!' 
2012-10-21T14:17:52+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.0/lib/rails/initializable.rb:54:in `each' 
2012-10-21T14:17:52+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.0/lib/rails/initializable.rb:54:in `run_initializers' 
2012-10-21T14:17:52+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.0/lib/rails/engine.rb:436:in `each' 
2012-10-21T14:17:52+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.0/lib/rails/engine.rb:436:in `eager_load!' 
2012-10-21T14:17:52+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.0/lib/rails/application/finisher.rb:54:in `block in <module:Finisher>' 
2012-10-21T14:17:52+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.0/lib/rails/initializable.rb:30:in `instance_exec' 
2012-10-21T14:17:52+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.0/lib/rails/initializable.rb:30:in `run' 
2012-10-21T14:17:52+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.0/lib/rails/initializable.rb:55:in `block in run_initializers' 
2012-10-21T14:17:52+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.0/lib/rails/railtie/configurable.rb:30:in `method_missing' 
2012-10-21T14:17:52+00:00 app[web.1]: from /app/config/environment.rb:5:in `<top (required)>' 
2012-10-21T14:17:52+00:00 app[web.1]: from /app/config.ru:4:in `block in <main>' 
2012-10-21T14:17:52+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/builder.rb:51:in `instance_eval' 
2012-10-21T14:17:52+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/builder.rb:51:in `initialize' 
2012-10-21T14:17:52+00:00 app[web.1]: from /app/config.ru:1:in `new' 
2012-10-21T14:17:52+00:00 app[web.1]: from /app/config.ru:1:in `<main>' 
2012-10-21T14:17:52+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/builder.rb:40:in `eval' 
2012-10-21T14:17:52+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/builder.rb:40:in `parse_file' 
2012-10-21T14:17:52+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/server.rb:200:in `app' 
2012-10-21T14:17:52+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/server.rb:301:in `wrapped_app' 
2012-10-21T14:17:52+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.0/lib/rails/commands/server.rb:46:in `app' 
2012-10-21T14:17:52+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/server.rb:252:in `start' 
2012-10-21T14:17:52+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.0/lib/rails/commands/server.rb:70:in `start' 
2012-10-21T14:17:52+00:00 app[web.1]: from script/rails:6:in `require' 
2012-10-21T14:17:52+00:00 app[web.1]: from script/rails:6:in `<main>' 
2012-10-21T14:17:52+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.0/lib/rails/commands.rb:50:in `<top (required)>' 
2012-10-21T14:17:52+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.0/lib/rails/commands.rb:55:in `block in <top (required)>' 
2012-10-21T14:17:52+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.0/lib/rails/commands.rb:50:in `tap' 
2012-10-21T14:17:53+00:00 heroku[web.1]: Process exited with status 1 
2012-10-21T14:17:53+00:00 heroku[web.1]: State changed from starting to crashed 
2012-10-21T14:17:54+00:00 heroku[router]: Error H10 (App crashed) -> GET secure-ocean-9819.herokuapp.com/ dyno= queue= wait= service= status=503 bytes= 

任何幫助真的將不勝感激:)

+0

您的Gemfile中是否有CarrierWave? –

+0

嗨,最大,不,我目前沒有它在我的gemfile。我做了,但隨後刪除它,因爲用戶可訪問的代碼不使用Carrierwave(雖然可能訪問Carrierwave的實際代碼仍然存在),但這是否會導致錯誤? –

+0

嗨我已經加入了Carrierwave,現在似乎已經過去了這個錯誤,現在只是一個基本的500錯誤。非常感謝你的幫助! –

回答

0

貴的問題得到了解決,我有一些幾件事情,你可以只要你可以嘗試讓我知道,因爲我最近遇到了類似的問題