【问题标题】:Heroku Error H10 (App crashed)Heroku 错误 H10(应用程序崩溃)
【发布时间】:2012-03-28 14:14:24
【问题描述】:

我的 Heroku 应用程序崩溃了,我从日志中得到的只是错误 H10(应用程序崩溃)

2012-03-28T14:11:56+00:00 heroku[router]: Error H10 (App crashed) -> GET www.devsite.com/ dyno= queue= wait= service= status=503 bytes=
2012-03-28T14:11:56+00:00 heroku[nginx]: 109.145.58.15 - - [28/Mar/2012:14:11:56 +0000] "GET / HTTP/1.1" 503 607 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_3) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.83 Safari/535.11" www.devsite.com

知道如何从 heroku 日志中提取更多信息 - 或找出问题所在吗?

【问题讨论】:

    标签: ruby-on-rails-3 git heroku


    【解决方案1】:

    我也遇到过类似的问题,每次访问服务器时,我都会在日志中得到这两行无用的输出。

    我跑的时候:

    heroku restart
    

    它最终向我显示了更多输出,让我可以追踪我的问题(与迁移到 cedar 相关)(应用程序在部署时崩溃,它似乎从未完全启动,但在部署过程中没有显示错误,因为通常会发生)。

    【讨论】:

    • 试试这个:heroku config:add BUILDPACK_URL=github.com/joelcogen/heroku-buildpack-rails-unicorn-nginx
    • 某些东西可能在编辑中丢失了,因为我花了一分钟才明白答案的意思,但只需从命令行运行 heroku restart
    • 如果您通过 rails 教程遇到此问题,请重新捆绑但为:bundle install --without development sqlite gem 会导致 heroku 出现问题
    【解决方案2】:

    根据他们的开发者文档:

    在日志中检查您应用的回溯,了解您需要采取哪些措施来解决问题。

    https://devcenter.heroku.com/articles/errors

    【讨论】:

    【解决方案3】:

    我有类似的问题,它与测功机有关。 H10 错误。

    只要运行:

    heroku restart

    帮我修好了!

    【讨论】:

    • 您的回答是正确的,这也是我的解决方法,但较早的回答基本上抓住了这一点。
    【解决方案4】:

    Heroku 有时会完全出现 H10 错误,例如 today - 然后您可以使用 heroku-dyno-restarter 工具来获得自动化解决方案 - 它会 heroku restart 您的应用程序直到它工作为止)

    【讨论】:

      【解决方案5】:

      遇到了类似的问题,错误被掩盖了,在 heroku 上运行 rails c 给了我们崩溃的原因

      【讨论】:

        猜你喜欢
        • 2016-08-20
        • 2012-06-18
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多