0

当我在终端中运行“heroku run python manage.py syncdb”时出现错误

Running `python manage.py syncdb` attached to terminal... up, run.4140
!    Heroku client internal error.
!    Search for help at: https://help.heroku.com
!    Or report a bug at: https://github.com/heroku/heroku/issues/new
Error:       Connection timed out - connect(2) (Errno::ETIMEDOUT)
Backtrace:   /usr/local/heroku/lib/heroku/client/rendezvous.rb:40:in `initialize'
             /usr/local/heroku/lib/heroku/client/rendezvous.rb:40:in `open'
             /usr/local/heroku/lib/heroku/client/rendezvous.rb:40:in `block in start'
             /usr/lib/ruby/1.9.1/timeout.rb:68:in `timeout'
             /usr/local/heroku/lib/heroku/client/rendezvous.rb:31:in `start'
             /usr/local/heroku/lib/heroku/command/run.rb:132:in `rendezvous_session'
             /usr/local/heroku/lib/heroku/command/run.rb:119:in `run_attached'
             /usr/local/heroku/lib/heroku/command/run.rb:24:in `index'
             /usr/local/heroku/lib/heroku/command.rb:213:in `run'
             /usr/local/heroku/lib/heroku/cli.rb:28:in `start'
             /usr/local/heroku/bin/heroku:25:in `<main>'

Command:     heroku run python manage.py syncdb
Version:     heroku-toolbelt/3.1.1 (i686-linux) ruby/1.9.3
4

1 回答 1

6

也许这与此无关,但有人遇到了同样的问题(使用 Rails)并在此处发布了解决方案: http ://www.orhancanceylan.com/heroku-run-command-operation-timed-out/

它说:

“当我尝试运行“heroku run rake db:migrate”命令时,我得到了“操作超时 - 连接(2)(Errno::ETIMEDOUT)”错误。我花了几个小时找出原因是什么,然后意识到意大利的互联网提供商,FASTWEB 封锁了端口号 5000。因此运行命令将无法执行。要解决此问题,您需要做的很简单:只需使用“run:detached”即“

尝试这个:

heroku 运行:分离的 python manage.py syncdb

于 2014-01-15T14:22:24.700 回答