Heroku运行命令抛出超时等待

时间:2013-09-23 13:21:56

标签: python django heroku django-syncdb

每当我跑

heroku run python manage.py syncdb

heroku run python manage.py shell

它控制台“Timeout await process”,我甚至尝试过

telnet rendezvous.heroku.com 5000

它控制台
尝试50.19.103.36 ...
telnet:无法连接到远程主机:连接超时
我该如何解决这个问题? 提前谢谢

2 个答案:

答案 0 :(得分:6)

您可以按照以下帖子使用run:detached来解决此错误:Heroku run command throws timeout await

有效地尝试:

heroku run:detached python manage.py syncdb

答案 1 :(得分:1)

  

超时等待过程

     

heroku run命令在端口5000上打开与Heroku的连接。如果   您的本地网络或ISP阻止端口5000,或者您是   遇到连接问题,您会看到类似于以下错误:

     

$ heroku运行rails console运行rails控制台附加到   终端......等待进程超时

     

您可以尝试直接连接来测试与Heroku的连接   使用telnet到rendezvous.runtime.heroku.com到端口5000。一个   成功的会议将如下所示:

     

$ telnet rendezvous.runtime.heroku.com 5000尝试50.19.103.36 ...   连接到ec2-50-19-103-36.compute-1.amazonaws.com。逃逸   字符是'^]'。

     

如果您没有收到此输出,则表明您的计算机已被阻止   访问我们的服务。我们建议您联系您的IT部门,   ISP或防火墙制造商继续解决这个问题。

我从heroku文档中找到了here

所以运行

telnet rendezvous.runtime.heroku.com
在你的shell上

。您在命令中省略了“运行时”。