Python heroku错误H20应用程序启动超时,R10启动时间OU

2024-09-30 20:32:48 发布

您现在位置:Python中文网/ 问答频道 /正文

我举个例子:http://flask.pocoo.org/docs/quickstart/,在“foreman start”之后,我可以在自己的机器上很好地运行它,但是当我在heroku上部署它时,我得到了R10超时错误。在

我写了程序文件:

web: python flaskr.py

为了运行“git push heroku master”命令,我删除了“disreibute==0.6.24”这句话,因为如果没有,我会得到如下错误:

^{pr2}$

所以我不知道是Procfile还是要求.txt文件错误或其他错误。我几乎看了所有我发现的文章,但问题还没有解决。在

另外,这个例子使用的是SQLite3数据库,我不知道它是否与此有关。。在

最后,我将在这里列出日志:

at=error code=H20 desc="App boot timeout" method=GET path=/ host=tranquil-tor-4127.herokuapp.com request_id=8a088587-bee9-40e9-a686-0555843c191b fwd="8.35.201.53" dyno= connect= service= status=503 bytes=

Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch
Stopping process with SIGKILL
Process exited with status 137
at=error code=H10 desc="App crashed" method=GET path=/ host=tranquil-tor-4127.herokuapp.com request_id=59ccb901-e988-430d-93e8-f83a8930e60b fwd="8.35.201.50" dyno= connect= service= status=503 bytes=
at=error code=H10 desc="App crashed" method=GET path=/ host=tranquil-tor-4127.herokuapp.com request_id=7b76850f-7c25-481f-8216-542d9baaa769 fwd="8.35.201.51" dyno= connect= service= status=503 bytes=
Slug compilation started
State changed from crashed to starting
at=error code=H10 desc="App crashed" method=GET path=/ host=tranquil-tor-4127.herokuapp.com request_id=5601bbce-b00c-4927-8d9c-ac534745859d fwd="8.35.201.52" dyno= connect= service= status=503 bytes=

我注意到slug编译可以正常完成,然后出现R10错误。在


Tags: pathcomapphostgetstatus错误code