I have deployed a rails 3.1 app to Heroku Cedar stack, and am trying to perform a: heroku run rake db:migrate it returns: Running console attached to terminal... Error connecting to process I also try to simply launch the console: heroku run console Any run command returns the same error. Running console attached to terminal... Error connecting to process Looking at the logs I get the error code: