gpt4 book ai didi

python - Heroku H10错误— Python

转载 作者:行者123 更新时间:2023-12-03 16:12:20 25 4
gpt4 key购买 nike

我花了过去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=

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

最佳答案

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

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

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

关于python - Heroku H10错误— Python,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24315940/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com