簡體   English   中英

Heroku H10錯誤消息“應用程序崩潰”

[英]Heroku H10 error message 'App Crashed'

突然我無法在瀏覽器中打開Heroku應用程序。 我收到以下錯誤:

'2016-04-29T21:36:08.637580+00:00 heroku[router]: at=error code=H10     desc="App crashed" method=GET path="/" host=james-cf-app.herokuapp.com request_id=4d379441-00d0-4a1f-8578-080dd996b1da fwd="209.49.226.2" dyno= connect= service= status=503 bytes'

搜索之后,我嘗試了多種操作,例如重新啟動Heroku和ps:scale web=1 這是Heroku運行rails控制台后的日志:

vagrant@vagrant-ubuntu-trusty-64:/vagrant$ heroku run rails console
Running rails console on james-cf-app... up, run.1820
/app/vendor/bundle/ruby/2.2.0/gems/activesupport- 4.2.6/lib/active_support/dependencies.rb:274:in `re                                                                                                quire': /app/app/controllers/comments_controller.rb:29: syntax error, unexpected end-of-input, expec                                                                                            ting keyword_end (SyntaxError)
    from /app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.6/lib/active_support/dependencies.                                                                                            rb:274:in `block in require'
    from /app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.6/lib/active_support/dependencies.                                                                                            rb:240:in `load_dependency'
    from /app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.6/lib/active_support/dependencies.                                                                                            rb:274:in `require'
    from /app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.6/lib/active_support/dependencies.                                                                                            rb:360:in `require_or_load'
    from /app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.6/lib/active_support/dependencies.                                                                                            rb:317:in `depend_on'
    from /app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.6/lib/active_support/dependencies.                                                                                            rb:233:in `require_dependency'
    from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.6/lib/rails/engine.rb:472:in `block (2                                                                                             levels) in eager_load!'
    from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.6/lib/rails/engine.rb:471:in `each'
    from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.6/lib/rails/engine.rb:471:in `block in                                                                                             eager_load!'
    from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.6/lib/rails/engine.rb:469:in `each'
    from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.6/lib/rails/engine.rb:469:in `eager_loa                                                                                            d!'
    from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.6/lib/rails/engine.rb:346:in `eager_loa                                                                                            d!'
    from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.6/lib/rails/application/finisher.rb:56:                                                                                            in `each'
    from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.6/lib/rails/application/finisher.rb:56:                                                                                            in `block in <module:Finisher>'
    from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.6/lib/rails/initializable.rb:30:in `ins                                                                                            tance_exec'
    from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.6/lib/rails/initializable.rb:30:in `run                                                                                            '
    from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.6/lib/rails/initializable.rb:55:in `blo                                                                                            ck in run_initializers'
    from /app/vendor/ruby-2.2.4/lib/ruby/2.2.0/tsort.rb:226:in `block in tsort_each'
    from /app/vendor/ruby-2.2.4/lib/ruby/2.2.0/tsort.rb:348:in `block (2 levels) in each_strongl                                                                                            y_connected_component'
    from /app/vendor/ruby-2.2.4/lib/ruby/2.2.0/tsort.rb:429:in `each_strongly_connected_componen                                                                                            t_from'
    from /app/vendor/ruby-2.2.4/lib/ruby/2.2.0/tsort.rb:347:in `block in each_strongly_connected                                                                                            _component'
    from /app/vendor/ruby-2.2.4/lib/ruby/2.2.0/tsort.rb:345:in `each'
    from /app/vendor/ruby-2.2.4/lib/ruby/2.2.0/tsort.rb:345:in `call'
    from /app/vendor/ruby-2.2.4/lib/ruby/2.2.0/tsort.rb:345:in `each_strongly_connected_componen                                                                                            t'
    from /app/vendor/ruby-2.2.4/lib/ruby/2.2.0/tsort.rb:224:in `tsort_each'
    from /app/vendor/ruby-2.2.4/lib/ruby/2.2.0/tsort.rb:203:in `tsort_each'
    from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.6/lib/rails/initializable.rb:54:in `run                                                                                            _initializers'
    from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.6/lib/rails/application.rb:352:in `init                                                                                            ialize!'
    from /app/config/environment.rb:5:in `<top (required)>'
    from /app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.6/lib/active_support/dependencies.                                                                                            rb:274:in `require'
    from /app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.6/lib/active_support/dependencies.                                                                                            rb:274:in `block in require'
    from /app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.6/lib/active_support/dependencies.                                                                                            rb:240:in `load_dependency'
    from /app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.6/lib/active_support/dependencies.                                                                                            rb:274:in `require'
    from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.6/lib/rails/application.rb:328:in `requ                                                                                            ire_environment!'
    from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.6/lib/rails/commands/commands_tasks.rb:                                                                                            142:in `require_application_and_environment!'
    from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.6/lib/rails/commands/commands_tasks.rb:                                                                                            67:in `console'
    from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.6/lib/rails/commands/commands_tasks.rb:                                                                                            39:in `run_command!'
    from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.6/lib/rails/commands.rb:17:in `<top (re                                                                                            quired)>'
    from /app/bin/rails:4:in `require'
    from /app/bin/rails:4:in `<main>'

這是應用程序崩潰,代碼出了點問題。 該應用程序是否在您的本地主機上運行,​​即rails srails c

您在comment_controller.rb的第29行出現意外的輸入結束錯誤

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM