Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/redis/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Heroku Python应用程序突然出现R15错误_Python_Python 3.x_Flask_Heroku_Heroku Postgres - Fatal编程技术网

Heroku Python应用程序突然出现R15错误

Heroku Python应用程序突然出现R15错误,python,python-3.x,flask,heroku,heroku-postgres,Python,Python 3.x,Flask,Heroku,Heroku Postgres,我正在使用免费的heroku dynos和postgres,运行python flask应用程序。它经常在免费dynos的内存限制上关闭它(该应用程序在启动时会加载一些型号),但在八个月的时间里,它运行没有问题。然后今天,我看到了这个错误: 2021-04-15T08:28:41.566146+00:00 heroku[web.1]: State changed from crashed to starting 2021-04-15T08:28:55.333917+00:00 heroku[we

我正在使用免费的heroku dynos和postgres,运行python flask应用程序。它经常在免费dynos的内存限制上关闭它(该应用程序在启动时会加载一些型号),但在八个月的时间里,它运行没有问题。然后今天,我看到了这个错误:

2021-04-15T08:28:41.566146+00:00 heroku[web.1]: State changed from crashed to starting
2021-04-15T08:28:55.333917+00:00 heroku[web.1]: Starting process with command `gunicorn app:app`
2021-04-15T08:28:57.226420+00:00 app[web.1]: [2021-04-15 08:28:57 +0000] [4] [INFO] Starting gunicorn 19.9.0
2021-04-15T08:28:57.226786+00:00 app[web.1]: [2021-04-15 08:28:57 +0000] [4] [INFO] Listening at: http://0.0.0.0:7490 (4)
2021-04-15T08:28:57.226838+00:00 app[web.1]: [2021-04-15 08:28:57 +0000] [4] [INFO] Using worker: sync
2021-04-15T08:28:57.229746+00:00 app[web.1]: [2021-04-15 08:28:57 +0000] [10] [INFO] Booting worker with pid: 10
2021-04-15T08:28:57.313381+00:00 app[web.1]: [2021-04-15 08:28:57 +0000] [11] [INFO] Booting worker with pid: 11
2021-04-15T08:28:58.983920+00:00 heroku[web.1]: State changed from starting to up
2021-04-15T08:29:01.760373+00:00 heroku[web.1]: Process running mem=512M(100.0%)
2021-04-15T08:29:01.788242+00:00 app[web.1]: [2021-04-15 08:29:01 +0000] [42] [INFO] Booting worker with pid: 42
2021-04-15T08:29:01.800651+00:00 heroku[web.1]: Error R15 (Memory quota vastly exceeded)
2021-04-15T08:29:01.802395+00:00 heroku[web.1]: Stopping process with SIGKILL
2021-04-15T08:29:01.912435+00:00 heroku[web.1]: Process exited with status 137
2021-04-15T08:29:01.984054+00:00 heroku[web.1]: State changed from up to crashed
2021-04-15T08:30:57.809476+00:00 app[api]: Starting process with command `ps:scale web=2` by user large.adam.m@gmail.com
2021-04-15T08:31:14.882047+00:00 heroku[run.4863]: Awaiting client
2021-04-15T08:31:14.899189+00:00 heroku[run.4863]: Starting process with command `ps:scale web=2`
2021-04-15T08:31:15.029551+00:00 heroku[run.4863]: State changed from starting to up
2021-04-15T08:31:19.037705+00:00 heroku[run.4863]: Process exited with status 127
2021-04-15T08:31:19.083172+00:00 heroku[run.4863]: State changed from up to complete
2021-04-15T08:33:16.656240+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=ludothemes.herokuapp.com request_id=17839d00-978a-4e4e-b188-cb1570d871f7 fwd="107.212.209.19" dyno= connect= service= status=503 bytes= protocol=http
2021-04-15T08:33:22.257162+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=ludothemes.herokuapp.com request_id=f7a25e76-f51c-479a-a922-4a5dce350d5c fwd="107.212.209.19" dyno= connect= service= status=503 bytes= protocol=http
2021-04-15T08:36:21.885333+00:00 heroku[web.1]: State changed from crashed to starting
2021-04-15T08:36:34.035395+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=ludothemes.herokuapp.com request_id=381addaf-a75b-4c7a-9309-126029119c4f fwd="107.212.209.19" dyno= connect= service= status=503 bytes= protocol=http
2021-04-15T08:36:39.535412+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=ludothemes.herokuapp.com request_id=a8f0edf8-87e6-4a8a-8aa6-4f83e01661df fwd="107.212.209.19" dyno= connect= service= status=503 bytes= protocol=http
2021-04-15T08:36:40.641472+00:00 heroku[web.1]: Starting process with command `gunicorn app:app`
2021-04-15T08:36:42.379884+00:00 app[web.1]: [2021-04-15 08:36:42 +0000] [4] [INFO] Starting gunicorn 19.9.0
2021-04-15T08:36:42.380270+00:00 app[web.1]: [2021-04-15 08:36:42 +0000] [4] [INFO] Listening at: http://0.0.0.0:43156 (4)
2021-04-15T08:36:42.380320+00:00 app[web.1]: [2021-04-15 08:36:42 +0000] [4] [INFO] Using worker: sync
2021-04-15T08:36:42.383371+00:00 app[web.1]: [2021-04-15 08:36:42 +0000] [10] [INFO] Booting worker with pid: 10
2021-04-15T08:36:42.429343+00:00 app[web.1]: [2021-04-15 08:36:42 +0000] [11] [INFO] Booting worker with pid: 11
2021-04-15T08:36:42.740845+00:00 heroku[web.1]: State changed from starting to up
2021-04-15T08:36:46.581577+00:00 heroku[web.1]: Process running mem=512M(100.0%)
2021-04-15T08:36:46.607496+00:00 app[web.1]: [2021-04-15 08:36:46 +0000] [42] [INFO] Booting worker with pid: 42
2021-04-15T08:36:46.632959+00:00 heroku[web.1]: Error R15 (Memory quota vastly exceeded)
2021-04-15T08:36:46.635253+00:00 heroku[web.1]: Stopping process with SIGKILL
2021-04-15T08:36:46.702243+00:00 heroku[web.1]: Process exited with status 137
2021-04-15T08:36:46.883019+00:00 heroku[web.1]: State changed from up to crashed
2021-04-15T08:44:56.645111+00:00 heroku[web.1]: State changed from crashed to starting
2021-04-15T08:45:09.196127+00:00 heroku[web.1]: Starting process with command `gunicorn app:app`
2021-04-15T08:45:10.572619+00:00 app[web.1]: [2021-04-15 08:45:10 +0000] [4] [INFO] Starting gunicorn 19.9.0
2021-04-15T08:45:10.572997+00:00 app[web.1]: [2021-04-15 08:45:10 +0000] [4] [INFO] Listening at: http://0.0.0.0:44998 (4)
2021-04-15T08:45:10.573055+00:00 app[web.1]: [2021-04-15 08:45:10 +0000] [4] [INFO] Using worker: sync
2021-04-15T08:45:10.575990+00:00 app[web.1]: [2021-04-15 08:45:10 +0000] [10] [INFO] Booting worker with pid: 10
2021-04-15T08:45:10.672926+00:00 app[web.1]: [2021-04-15 08:45:10 +0000] [11] [INFO] Booting worker with pid: 11
2021-04-15T08:45:10.792978+00:00 heroku[web.1]: State changed from starting to up
2021-04-15T08:45:14.493337+00:00 heroku[web.1]: Process running mem=512M(100.0%)
2021-04-15T08:45:14.513393+00:00 app[web.1]: [2021-04-15 08:45:14 +0000] [42] [INFO] Booting worker with pid: 42
2021-04-15T08:45:14.538602+00:00 heroku[web.1]: Error R15 (Memory quota vastly exceeded)
2021-04-15T08:45:14.539922+00:00 heroku[web.1]: Stopping process with SIGKILL
2021-04-15T08:45:14.549012+00:00 heroku[web.1]: Process running mem=264M(51.6%)
2021-04-15T08:45:14.636653+00:00 heroku[web.1]: Process exited with status 137
2021-04-15T08:45:14.682557+00:00 heroku[web.1]: State changed from up to crashed
2021-04-15T08:45:14.691912+00:00 heroku[web.1]: State changed from crashed to starting
2021-04-15T08:45:33.819016+00:00 heroku[web.1]: Starting process with command `gunicorn app:app`
2021-04-15T08:45:35.480103+00:00 app[web.1]: [2021-04-15 08:45:35 +0000] [4] [INFO] Starting gunicorn 19.9.0
2021-04-15T08:45:35.480524+00:00 app[web.1]: [2021-04-15 08:45:35 +0000] [4] [INFO] Listening at: http://0.0.0.0:5640 (4)
2021-04-15T08:45:35.480582+00:00 app[web.1]: [2021-04-15 08:45:35 +0000] [4] [INFO] Using worker: sync
2021-04-15T08:45:35.483462+00:00 app[web.1]: [2021-04-15 08:45:35 +0000] [10] [INFO] Booting worker with pid: 10
2021-04-15T08:45:35.568432+00:00 app[web.1]: [2021-04-15 08:45:35 +0000] [11] [INFO] Booting worker with pid: 11
2021-04-15T08:45:36.044752+00:00 heroku[web.1]: State changed from starting to up
2021-04-15T08:45:41.085020+00:00 heroku[web.1]: Process running mem=512M(100.0%)
2021-04-15T08:45:41.116608+00:00 heroku[web.1]: Error R15 (Memory quota vastly exceeded)
2021-04-15T08:45:41.118394+00:00 heroku[web.1]: Stopping process with SIGKILL
2021-04-15T08:45:41.118709+00:00 app[web.1]: [2021-04-15 08:45:41 +0000] [42] [INFO] Booting worker with pid: 42
2021-04-15T08:45:41.135141+00:00 heroku[web.1]: Process running mem=244M(47.7%)
2021-04-15T08:45:41.171322+00:00 heroku[web.1]: Error R15 (Memory quota vastly exceeded)
2021-04-15T08:45:41.175932+00:00 heroku[web.1]: Stopping process with SIGKILL
2021-04-15T08:45:41.201559+00:00 heroku[web.1]: Process exited with status 137
2021-04-15T08:45:41.251165+00:00 heroku[web.1]: State changed from up to crashed
2021-04-15T08:52:00.055423+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=ludothemes.herokuapp.com request_id=e9db949e-c3db-4cbe-b770-2ee66deabc8d fwd="107.212.209.19" dyno= connect= service= status=503 bytes= protocol=http
2021-04-15T08:52:05.682515+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=ludothemes.herokuapp.com request_id=dd0f05d4-a907-4f1b-b51f-15a7374e96ab fwd="107.212.209.19" dyno= connect= service= status=503 bytes= protocol=http
我得到了R15错误,但它似乎没有达到自由动态的两倍极限。heroku或python中是否有什么变化会突然影响我的应用程序的加载方式


如有任何需要调查的建议,将不胜感激

我也遇到了同样的问题-我的应用程序使用免费的dynos运行了几个月,在180%的内存使用率下没有问题,但从2天前开始就失败了:

Process running mem=512M(100.0%)
Error R15 (Memory quota vastly exceeded)
Stopping process with SIGKILL

我希望这可能是相关的,但不幸的是他们已经关闭了它。

这似乎是Heroku的一个问题,现在需要解决。我已经给Heroku发了一张票,昨天收到了以下回复:

看起来这与我们的工程团队正在进行的新基础设施展示有关。他们最近进行了修复,以正确计算R15错误,这样您就不会遇到任何其他问题。对于由此造成的不便,我们深表歉意,如果您有任何问题,请告知我们

我确认我的应用程序至少运行正常。希望你也一样