Heroku H10错误 - Python

时间:2014-06-19 20:47:46

标签: python heroku crash

我花了5个多小时尝试在Heroku上部署我的应用程序并且它无法运行...它是一个python应用程序,当我在本地运行它时,它运行得非常好。

但是,当我部署到Heroku时,我收到以下错误:

2014-06-19T20:16:28.240849+00:00 heroku[api]: Enable Logplex by cahnda@gmail.com
2014-06-19T20:16:28.240931+00:00 heroku[api]: Release v2 created by cahnda@gmail.com
2014-06-19T20:18:27+00:00 heroku[slug-compiler]: Slug compilation started
2014-06-19T20:19:20+00:00 heroku[slug-compiler]: Slug compilation failed: failed to          compile Python app

2014-06-19T20:21:33+00:00 heroku[slug-compiler]: Slug compilation started
2014-06-19T20:22:12+00:00 heroku[slug-compiler]: Slug compilation failed: failed to compile Python app
2014-06-19T20:23:28+00:00 heroku[slug-compiler]: Slug compilation started
2014-06-19T20:24:11+00:00 heroku[slug-compiler]: Slug compilation failed: failed to compile Python app
2014-06-19T20:27:12+00:00 heroku[slug-compiler]: Slug compilation started
2014-06-19T20:27:50+00:00 heroku[slug-compiler]: Slug compilation finished
2014-06-19T20:27:50.659666+00:00 heroku[api]: Deploy 95e0979 by cahnda@gmail.com
2014-06-19T20:27:50.577906+00:00 heroku[api]: Scale to web=1 by cahnda@gmail.com
2014-06-19T20:27:50.659724+00:00 heroku[api]: Release v3 created by cahnda@gmail.com
2014-06-19T20:27:57.641496+00:00 heroku[web.1]: State changed from starting to up
2014-06-19T20:27:59.423572+00:00 heroku[web.1]: State changed from up to crashed
2014-06-19T20:27:59.424174+00:00 heroku[web.1]: State changed from crashed to starting
2014-06-19T20:27:56.011407+00:00 heroku[web.1]: Starting process with command `gunicorn app:app`
2014-06-19T20:27:59.409009+00:00 heroku[web.1]: Process exited with status 3
2014-06-19T20:28:06.601752+00:00 heroku[web.1]: State changed from starting to crashed
2014-06-19T20:28:08.016745+00:00 heroku[router]: at=error code=H10 desc="App crashed" 
method=GET path="/" host=secure-fjord-2980.herokuapp.com request_id=9fcc7ffe-3c5b-406c-   aaed-87c9fa8c8523 fwd="68.173.78.212" dyno= connect= service= status=503 bytes=
2014-06-19T20:28:08.265595+00:00 heroku[router]: at=error code=H10 desc="App crashed" 
method=GET path="/" host=secure-fjord-2980.herokuapp.com request_id=e1920daf-4cfc-466d-ba56-7f923ac6c7d9 fwd="68.173.78.212" dyno= connect= service= status=503 bytes=   
2014-06-19T20:28:08.708322+00:00 heroku[router]: **at=error code=H10 desc="App crashed"** 
method=GET path="/favicon.ico" host=secure-fjord-2980.herokuapp.com request_id=a8f085da-ce20-40ed-8882-d1d848538b23 fwd="68.173.78.212" dyno= connect= service= status=503 bytes=

这是什么意思?我该怎么做才能解决这个问题?请帮忙!

1 个答案:

答案 0 :(得分:0)

H10错误可能是一种痛苦。因为H10是泛型错误并且没有提供堆栈跟踪,所以很难理解幕后发生的事情。不久前,我了解到在Heroku上解决H10错误(app crashed)的最快方法是使用 Sentry

它通过电子邮件向您发送堆栈跟踪(或者您可以使用Web应用程序上的仪表板)。

如果您的应用是 Django 应用,那么您甚至可以跳过Sentry并配置ADMINS和电子邮件以发送记录报告。请参阅error reporting in Django