Heroku Run Command – Operation timed out – connect(2) (Errno::ETIMEDOUT) 1

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.

heroku run:detached rake db:migrate

 

 

One comment on “Heroku Run Command – Operation timed out – connect(2) (Errno::ETIMEDOUT)

  1. Reply Kirsty Williams Aug 15, 2013 6:26 am

    Just had this exact problem. Your solution worked! THANKS!

Leave a Reply