[英]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.