简体   繁体   English

我试图在 heroku 上部署我的 python 和 django 项目并在日志文件中遇到这个错误

[英]I was trying to deploy my python and django project on heroku and facing this error in log files

2020-02-21T05:05:20.221933+00:00 heroku[router]: at=error code=H10
desc="App crashed" method=GET path="/"
host=bollymovierecommender.herokuapp.com
request_id=caa9375b-25d0-4f7b-8049-f308bd5dc83e fwd="49.207.108.233"
dyno= connect= service= status=503 bytes= protocol=https
2020-02-21T05:05:21.521664+00:00 heroku[router]: at=error code=H10
desc="App crashed" method=GET path="/favicon.ico"
host=bollymovierecommender.herokuapp.com
request_id=67596e3f-cd06-479e-aa31-7e0fcf5a879b fwd="49.207.108.233"
dyno= connect= service= status=503 bytes= protocol=https

Can anyone help me understand what is this error?谁能帮我理解这个错误是什么?

https://devcenter.heroku.com/articles/error-codes You are getting the error H10 App crashed. https://devcenter.heroku.com/articles/error-codes您收到错误 H10 应用程序崩溃。 The problem could be anything.问题可能是任何事情。

Sadly the error log isn't helpful here.遗憾的是,错误日志在这里没有帮助。 It looks like you did define a Procfile and you did bind to the $PORT (else you'd be seeing a different error message).看起来您确实定义了 Procfile 并且确实绑定到 $PORT (否则您会看到不同的错误消息)。

There has been a similar question about it here: Heroku deployment error H10 (App crashed)这里有一个类似的问题: Heroku deployment error H10 (App crashed)

I ran into the same error above, app was crashing on heroku (running fine in dev) but error logs on heroku were not revealing any clues.我遇到了上面同样的错误,应用程序在 heroku 上崩溃(在 dev 中运行良好)但 heroku 上的错误日志没有透露任何线索。 I read other answers on this page and broke out in a sweat after seeing "rebuilding the app."我在此页面上阅读了其他答案,并在看到“重建应用程序”后大汗淋漓。 I figured maybe I could get in the heroku console and look around.我想也许我可以进入 heroku 控制台并环顾四周。 I did and even the console crashed, but this time it told me why.我做到了,甚至控制台也崩溃了,但这一次它告诉了我原因。 It was some obscure variable I forgot to delete during a troubleshooting session hours earlier.这是我在几个小时前的故障排除会话中忘记删除的一些晦涩的变量。 I am not saying you will run into the same problem, but I found more info when I tried to go through the console.我并不是说你会遇到同样的问题,但是当我尝试通过控制台时我发现了更多信息。 Hope this helps.希望这可以帮助。

$ heroku run rails console

With this you can get a better error log pointing you towards the problem.有了这个,您可以获得更好的错误日志,将您指向问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 我正在尝试将Django项目部署到heroku。 我的应用未运行,日志显示错误代码503 - I'm trying to deploy my django project to heroku. My app is not running the log shows error code 503 我试图将我的 Django/python 项目部署到 heroku.com - Im trying to deploy my Django/ python project onto heroku.com 无法在 heroku 上部署我的 django 项目 - Failed to deploy my django project on heroku 在heroku(Python 3.4.3)上部署Django项目 - Deploy Django project on heroku (python 3.4.3) 在Heroku上部署我的Django网站时出错 - Error while deploy my django website on heroku ModuleNotFoundError:当我尝试在 heroku 上部署我的 django 项目时,没有名为“fcntl”的模块 - ModuleNotFoundError: No module named 'fcntl' when I try to deploy my django project on heroku 当我尝试将我的 Django 项目部署到 Heroku 时,它没有检测到 buildpack。 有人可以帮我吗? - When I tried to deploy to Heroku my Django project it is not detecting the buildpack. Could anyone help me please? 出现错误 => ModuleNotFoundError: No module named 'django' 当我尝试将 django 应用程序部署到 heroku 时 - Getting Error => ModuleNotFoundError: No module named 'django' When I attempt to deploy my django app to heroku 在heroku上部署django-rest项目的问题 - problem for deploy my django-rest project on heroku 如何在 Heroku 上部署 Django 项目 - How to deploy Django project on Heroku
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM