Heroku代码= H10 desc =“应用程序崩溃” - 无法弄清楚它为什么会崩溃 [英] Heroku code=H10 desc="App crashed" - Can't figure out why it's crashing

查看:112
本文介绍了Heroku代码= H10 desc =“应用程序崩溃” - 无法弄清楚它为什么会崩溃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在寻找这方面的一段时间,找不到任何似乎适用于我的情况。我一直在盯着这些日志,我看不出有什么问题。

之前的部署过程中发生了这种情况,但似乎总是自行解决。现在这只是自己发生的(没有部署),我无法摆脱它。尝试恢复到以前版本的应用程序,但它似乎卡住了。我已经重置了dyno,并且还完成了rake db:migrate。



日志中有一些重复的事情,但我只是不知道该读什么在他们之外。任何人都知道问题出在哪里?任何指导将不胜感激。请参阅下面的日志。

  Jun 18 15:51:54 snapclass-production app / heroku-postgres:source = HEROKU_POSTGRESQL_WHITE measure。 current_transaction = 1077 measure.db_size = 6153016bytes measure.tables = 0 measure.active-connections = 3 measure.waiting-connections = 0 measure.index-cache-hit-rate = 0.99981 measure.table-cache-hit-rate = 0.99349 
Jun 18 15:52:06 snapclass-production heroku / router:at = error code = H10 desc =App crashedmethod = GET path = / host = www.snapclass.com fwd =46.165.195.139dyno = connect = service = status = 503 bytes =
Jun 18 15:52:07 snapclass-production heroku / router:at = error code = H10 desc =App crashedmethod = GET path = / host = www。 snapclass.com fwd =178.255.152.2dyno = connect = service = status = 503 bytes =
Jun 18 15:52:12 snapclass-production app / postgres:[47-1] [] LOG:检查点开始:time
Jun 18 15:52:13 snapclass-production app / postgres:[48-1] [] LOG:checkpoint complete:写入0个缓冲区(0.0%);添加0个事务日志文件,删除0个,回收0个;写= 0.000s,同步= 0.000s,总= 0.334s; sync files = 0,longest = 0.000 s,average = 0.000 s
Jun 18 15:52:51 snapclass-production app / heroku-postgres:source = HEROKU_POSTGRESQL_WHITE measure.current_transaction = 1077 measure.db_size = 6153016bytes measure.tables = 0 measure.active-connections = 3 measure.waiting-connections = 0 measure.index-cache-hit-rate = 0.99994 measure.table-cache-hit-rate = 0.99997
Jun 18 15:53:06 snapclass -production heroku / router:at = error code = H10 desc =App crashedmethod = GET path = / host = www.snapclass.com fwd =95.141.32.46dyno = connect = service = status = 503 bytes =
Jun 18 15:53:48 snapclass-production app / heroku-postgres:source = HEROKU_POSTGRESQL_WHITE measure.current_transaction = 1077 measure.db_size = 6153016bytes measure.tables = 0 measure.active-connections = 3 measure.waiting-connections = 0 measure.index-cache-hit-rate = 0.97826 measure.table-cache-hit-rate = 0.99999
Jun 18 15:54:06 snapclass-production heroku / router:at = error code = H10 desc =应用程序崩溃方法= GET路径= /主机= www.snapclass.com fw d =95.211.217.68dyno = connect = service = status = 503 bytes =
Jun 18 15:54:17 snapclass-production heroku / router:at = error code = H10 desc =App crashedmethod = GET path = / host = www.snapclass.com fwd =205.197.158.210dyno = connect = service = status = 503 bytes =
Jun 18 15:54:17 snapclass-production heroku / router:at = error code = H10 desc =App crashedmethod = GET path = / favicon.ico host = www.snapclass.com fwd =205.197.158.210dyno = connect = service = status = 503 bytes =
Jun 18 15 :54:25 snapclass-production heroku / router:at = error code = H10 desc =App crashedmethod = GET path = / host = demosidney.snapclass.com fwd =202.46.61.33dyno = connect = service = status = 503字节=
Jun 18 15:54:44 snapclass-production heroku / web.1:状态从崩溃状态改为开始
Jun 18 15:54:44 snapclass-production应用/ heroku-postgres: source = HEROKU_POSTGRESQL_WHITE measure.current_transaction = 1077 measure.db_size = 6153016bytes measure.tables = 0 measure.active-connections = 3 measure.waiting-conn ections = 0 measure.index-cache-hit-rate = 0.98897 measure.table-cache-hit-rate = 0.99087
Jun 18 15:54:48 snapclass-production heroku / web.1:用命令启动进程` bundle exec thin start -R config.ru -e $ RAILS_ENV -p 50180`
Jun 18 15:55:40 snapclass-production app / heroku-postgres:source = HEROKU_POSTGRESQL_WHITE measure.current_transaction = 1077 measure.db_size = 6153016bytes measure.tables = 0 measure.active-connections = 3 measure.waiting-connections = 0 measure.index-cache-hit-rate = 0.99926 measure.table-cache-hit-rate = 0.99996
Jun 18 15:55 :50 snapclass-production heroku / web.1:错误R10(引导超时) - > Web进程无法在启动后的60秒内绑定到$ PORT
Jun 18 15:55:50 snapclass-production heroku / web.1:使用SIGKILL停止进程
Jun 18 15:55:51 snapclass-生产heroku / web.1:进程退出状态137
Jun 18 15:55:51 snapclass-production heroku / web.1:状态从开始崩溃到
Jun 18 15:55:52 snapclass -production heroku / router:at = error code = H10 desc =App crashedmethod = GET path = / host = demosidney.snapclass.com fwd =119.63.193.130dyno = connect = service = status = 503 bytes =
Jun 18 15:55:52 snapclass-production heroku / router:at = error code = H10 desc =App crashedmethod = GET path = / snapclasses / sat-prep-math / register host = www.snapclass。 com fwd =173.199.115.115dyno = connect = service = status = 503 bytes =
Jun 18 15:55:53 snapclass-production heroku / router:at = error code = H10 desc =App crashedmethod = GET路径= / host = www.snapclass.com fwd =23.21.36.78dyno = connect = service = status = 503 bytes =
Jun 18 15:55:54 s napclass-production heroku / router:at = error code = H10 desc =App crashedmethod = GET path = / host = www.snapclass.com fwd =23.22.98.102dyno = connect = service = status = 503 bytes =
Jun 18 15:55:54 snapclass-production heroku / router:at = error code = H10 desc =App crashedmethod = GET path = / host = www.snapclass.com fwd =91.109.115.41 dyno = connect = service = status = 503 bytes =
Jun 18 15:56:06 snapclass-production heroku / router:at = error code = H10 desc =App crashedmethod = GET path = / host = www .snapclass.com fwd =174.34.224.167dyno = connect = service = status = 503 bytes =


解决方案

请尝试以下步骤:

   -  git push heroku master#if not done $ b  -  heroku运行rake db:migrate 
- heroku restart

等待几分钟。 ..


I've been searching around on this one for a while and can't find anything that seems to be applicable in my situation. I've been staring at these logs and I can't see what the problem is.

This has happened during deployments before, but always seemed to resolve itself. Now this just happened on its own (no deployment) and I can't get out of it. Tried reverting back to a previous version of the app, but it appears I'm stuck. I've reset the dyno and have also done a rake db:migrate.

There are some repetitive things in the log, but I just don't know what to read out of them. Anybody have any idea where the problem is? Any guidance would be greatly appreciated. See the logs below.

Jun 18 15:51:54 snapclass-production app/heroku-postgres:  source=HEROKU_POSTGRESQL_WHITE measure.current_transaction=1077 measure.db_size=6153016bytes measure.tables=0 measure.active-connections=3 measure.waiting-connections=0 measure.index-cache-hit-rate=0.99981 measure.table-cache-hit-rate=0.99349
Jun 18 15:52:06 snapclass-production heroku/router:  at=error code=H10 desc="App crashed" method=GET path=/ host=www.snapclass.com fwd="46.165.195.139" dyno= connect= service= status=503 bytes= 
Jun 18 15:52:07 snapclass-production heroku/router:  at=error code=H10 desc="App crashed" method=GET path=/ host=www.snapclass.com fwd="178.255.152.2" dyno= connect= service= status=503 bytes= 
Jun 18 15:52:12 snapclass-production app/postgres:  [47-1]  [] LOG:  checkpoint starting: time 
Jun 18 15:52:13 snapclass-production app/postgres:  [48-1]  [] LOG:  checkpoint complete: wrote 0 buffers (0.0%); 0 transaction log file(s) added, 0 removed, 0 recycled; write=0.000 s, sync=0.000 s, total=0.334 s; sync files=0, longest=0.000 s, average=0.000 s 
Jun 18 15:52:51 snapclass-production app/heroku-postgres:  source=HEROKU_POSTGRESQL_WHITE measure.current_transaction=1077 measure.db_size=6153016bytes measure.tables=0 measure.active-connections=3 measure.waiting-connections=0 measure.index-cache-hit-rate=0.99994 measure.table-cache-hit-rate=0.99997 
Jun 18 15:53:06 snapclass-production heroku/router:  at=error code=H10 desc="App crashed" method=GET path=/ host=www.snapclass.com fwd="95.141.32.46" dyno= connect= service= status=503 bytes= 
Jun 18 15:53:48 snapclass-production app/heroku-postgres:  source=HEROKU_POSTGRESQL_WHITE measure.current_transaction=1077 measure.db_size=6153016bytes measure.tables=0 measure.active-connections=3 measure.waiting-connections=0 measure.index-cache-hit-rate=0.97826 measure.table-cache-hit-rate=0.99999 
Jun 18 15:54:06 snapclass-production heroku/router:  at=error code=H10 desc="App crashed" method=GET path=/ host=www.snapclass.com fwd="95.211.217.68" dyno= connect= service= status=503 bytes= 
Jun 18 15:54:17 snapclass-production heroku/router:  at=error code=H10 desc="App crashed" method=GET path=/ host=www.snapclass.com fwd="205.197.158.210" dyno= connect= service= status=503 bytes= 
Jun 18 15:54:17 snapclass-production heroku/router:  at=error code=H10 desc="App crashed" method=GET path=/favicon.ico host=www.snapclass.com fwd="205.197.158.210" dyno= connect= service= status=503 bytes= 
Jun 18 15:54:25 snapclass-production heroku/router:  at=error code=H10 desc="App crashed" method=GET path=/ host=demosidney.snapclass.com fwd="202.46.61.33" dyno= connect= service= status=503 bytes=  
Jun 18 15:54:44 snapclass-production heroku/web.1:  State changed from crashed to starting 
Jun 18 15:54:44 snapclass-production app/heroku-postgres:  source=HEROKU_POSTGRESQL_WHITE measure.current_transaction=1077 measure.db_size=6153016bytes measure.tables=0 measure.active-connections=3 measure.waiting-connections=0 measure.index-cache-hit-rate=0.98897 measure.table-cache-hit-rate=0.99087 
Jun 18 15:54:48 snapclass-production heroku/web.1:  Starting process with command `bundle exec thin start -R config.ru -e $RAILS_ENV -p 50180` 
Jun 18 15:55:40 snapclass-production app/heroku-postgres:  source=HEROKU_POSTGRESQL_WHITE measure.current_transaction=1077 measure.db_size=6153016bytes measure.tables=0 measure.active-connections=3 measure.waiting-connections=0 measure.index-cache-hit-rate=0.99926 measure.table-cache-hit-rate=0.99996 
Jun 18 15:55:50 snapclass-production heroku/web.1:  Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch 
Jun 18 15:55:50 snapclass-production heroku/web.1:  Stopping process with SIGKILL 
Jun 18 15:55:51 snapclass-production heroku/web.1:  Process exited with status 137 
Jun 18 15:55:51 snapclass-production heroku/web.1:  State changed from starting to crashed 
Jun 18 15:55:52 snapclass-production heroku/router:  at=error code=H10 desc="App crashed" method=GET path=/ host=demosidney.snapclass.com fwd="119.63.193.130" dyno= connect= service= status=503 bytes= 
Jun 18 15:55:52 snapclass-production heroku/router:  at=error code=H10 desc="App crashed" method=GET path=/snapclasses/sat-prep-math/register host=www.snapclass.com fwd="173.199.115.115" dyno= connect= service= status=503 bytes= 
Jun 18 15:55:53 snapclass-production heroku/router:  at=error code=H10 desc="App crashed" method=GET path=/ host=www.snapclass.com fwd="23.21.36.78" dyno= connect= service= status=503 bytes= 
Jun 18 15:55:54 snapclass-production heroku/router:  at=error code=H10 desc="App crashed" method=GET path=/ host=www.snapclass.com fwd="23.22.98.102" dyno= connect= service= status=503 bytes= 
Jun 18 15:55:54 snapclass-production heroku/router:  at=error code=H10 desc="App crashed" method=GET path=/ host=www.snapclass.com fwd="91.109.115.41" dyno= connect= service= status=503 bytes= 
Jun 18 15:56:06 snapclass-production heroku/router:  at=error code=H10 desc="App crashed" method=GET path=/ host=www.snapclass.com fwd="174.34.224.167" dyno= connect= service= status=503 bytes= 

解决方案

Try following steps:

- git push heroku master # if not done
- heroku run rake db:migrate
- heroku restart

Wait couple of minutes...

这篇关于Heroku代码= H10 desc =“应用程序崩溃” - 无法弄清楚它为什么会崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆