如何解决"应用程序崩溃" heroku中的错误

时间:2017-11-15 10:01:02

标签: node.js heroku

我们在heroku的nodejs上运行视频服务器。偶尔我们的应用程序会崩溃。同一个网址会打开一次,下次它不会打开。我们有Papertrail插件挂钩它。它显示" app崩溃"错误和"连接关闭而没有响应"错误。这些是我们偶尔得到的一些错误。

Nov 11 02:06:08 XXXXXXXX heroku/router: at=error code=H10 desc="App crashed" method=GET path="/media/556e108442577c030072a109" host=www.xxxxxx.co request_id=46779cd1-507f-4252-b8ac-79c250556869 fwd="5.218.182.7" dyno= connect= service= status=503 bytes= protocol=https 
Nov 11 02:06:33 XXXXXXXX heroku/router: at=error code=H10 desc="App crashed" method=GET path="/media/556e108442577c030072a109" host=www.xxxxxx.co request_id=b648c1c4-55db-403a-b5e6-702516d0d61d fwd="5.218.182.7" dyno= connect= service= status=503 bytes= protocol=https 
Nov 11 02:06:38 XXXXXXXX heroku/router: at=error code=H10 desc="App crashed" method=GET path="/media/548ee10dbb2ac502000f2ccf" host=www.xxxxxx.co  request_id=e5b7923f-dae7-4344-a3a6-8e1b3f1468b6 fwd="84.201.133.41" dyno= connect= service= status=503 bytes= protocol=http 
Nov 11 02:06:44 XXXXXXXX heroku/router: at=error code=H10 desc="App crashed" method=GET path="/media/556e108442577c030072a109" host=www.xxxxxx.co request_id=91c67bf8-0f34-4df1-b152-fc94a9c52a75 fwd="5.121.70.29" dyno= connect= service= status=503 bytes= protocol=https 
Nov 11 02:07:38 XXXXXXXX heroku/router: at=error code=H10 desc="App crashed" method=GET path="/media/548ee10dbb2ac502000f2ccf" host=www.xxxxxx.co  request_id=58979771-eb0d-463e-b942-0ffdba4b125f fwd="84.201.133.41" dyno= connect= service= status=503 bytes= protocol=http 
Nov 11 02:07:42 XXXXXXXX heroku/router: at=error code=H10 desc="App crashed" method=GET path="/media/59e5d55c20e0cd0400c85aa1" host=www.xxxxxx.co request_id=f82b8377-32e9-48d5-bc02-f0cdfc300b5c fwd="157.55.39.84" dyno= connect= service= status=503 bytes= protocol=https 
Nov 11 02:07:47 XXXXXXXX heroku/router: at=error code=H10 desc="App crashed" method=GET path="/js/mediaelement-flash-video.swf" host=www.xxxxxx.co  request_id=5f83f33f-0bed-4ab5-80a2-847546f57052 fwd="207.46.13.113" dyno= connect= service= status=503 bytes= protocol=https 
Nov 11 02:19:54 XXXXXXXX heroku/router: at=error code=H13 desc="Connection closed without response" method=GET path="/media/5a05dea5c450b804002e0d04" host=www.xxxxxx.co  request_id=7ee98386-95f2-4979-83b5-00288fad959d fwd="66.249.66.1" dyno=web.1 connect=0ms service=12ms status=503 bytes=0 protocol=https 
Nov 11 08:21:22 XXXXXXXX heroku/router: at=error code=H13 desc="Connection closed without response" method=GET path="/media/5a05dea5c450b804002e0d04" host=www.xxxxxx.co  request_id=27f8511b-3084-4022-aedf-474f3aa75231 fwd="66.249.66.18" dyno=web.1 connect=1ms service=19ms status=503 bytes=0 protocol=https 
Nov 11 10:04:30 XXXXXXXX heroku/router: at=error code=H13 desc="Connection closed without response" method=GET path="/media/5a05dea5c450b804002e0d04" host=www.xxxxxx.co  request_id=b2d644d8-2eed-4d57-9e20-35d61c0c9b3f fwd="66.249.66.1" dyno=web.1 connect=0ms service=24ms status=503 bytes=0 protocol=https 

这是一个辅助服务器(只是为我们的主服务器提供视频)所以它不会有太多负载(我认为)。它不像它会导致整个系统崩溃但是,我很谨慎,因为网站涉及金钱。

这通常会发生吗?我应该对我的dyno进行任何更改吗?任何导致这些错误的内容都不会出现(至少是同一个网址)。

相同的网址示例:https://www.heroukuapp.com/media/548ee10dbb2ac502000f2ccf

以上不会打开任何正确的网址。因为"www.heroukuapp.com"是假的

感谢

1 个答案:

答案 0 :(得分:0)

找到这些错误的原因。这与我在nodejs app中的代码有关。

如果有人得到同样的错误。如果他们有日志处理程序在heroku中安装了一个插件(对我来说是papertrail)。这些错误有很多。如果nodejs app中发生了一些未处理的错误,则应用程序在heroku中崩溃。错误的跟踪一直持续到应用程序重新启动。要知道问题的原因,请转到第一次发生应用程序崩溃的日志。在那里你找到了这条线索的错误和原因。

相关问题