0

when i'm running "heroku run python manage.py syncdb" in terminal i get error

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
  • Are there any other errors before that? Commented Jan 15, 2014 at 14:00
  • no there aren't any errors Commented Jan 15, 2014 at 14:03
  • it seems a network error. Other commands run ok? (Ex: heroku run python manage.py shell) ? Commented Jan 15, 2014 at 14:09
  • nope, heroku run commands are not working Commented Jan 15, 2014 at 14:36

1 Answer 1

6

Maybe it has nothing to do with this, but Someone had the same problem (with Rails) and posted a solution here: http://www.orhancanceylan.com/heroku-run-command-operation-timed-out/

It says:

"While I was trying to run “heroku run rake db:migrate” command, I got “Operation timed out – connect(2) (Errno::ETIMEDOUT)” error. I spent hours to figure out what the reason is for that and realized that the internet provider in Italy, FASTWEB blocks the port number 5000. Therefore run command will not be able to executed. To handle this problem, what you need to do is simple: Just use “run:detached” i.e."

Try this:

heroku run:detached python manage.py syncdb

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.