heroku / legacy-cli

Heroku CLI
https://cli.heroku.com
MIT License
1.37k stars 380 forks source link

"Error R13 (Attach error)" when running "heroku run rake db:migrate" #746

Open mockupgo opened 11 years ago

mockupgo commented 11 years ago

Hi,

I am trying to migrate my database on my rails app and it is failing. If I look at the logs, I have this:

2013-04-05T08:35:39+00:00 heroku[api]: Starting process with command `bundle exec rake db:migrate` by xxx@dadafish.com
2013-04-05T08:35:50+00:00 heroku[run.6819]: Awaiting client
2013-04-05T08:35:50+00:00 heroku[run.6819]: Starting process with command `bundle exec rake db:migrate`
2013-04-05T08:35:50+00:00 heroku[run.6819]: State changed from starting to up
2013-04-05T08:36:20+00:00 heroku[run.6819]: Error R13 (Attach error) -> Failed to attach to process
2013-04-05T08:36:21+00:00 heroku[run.6819]: Process exited with status 128
2013-04-05T08:36:21+00:00 heroku[run.6819]: State changed from up to complete

The instance is "dadafish.herokuapp.com"

I have trying multiple times and it is still not working.

If I try to get the bash, same:

MacBook-Air-de-Sebastien-Gignoux:dadafish seb$ heroku run bash --app dadafish
Running `bash` attached to terminal... up, run.6041
 !    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:       Operation timed out - connect(2) (Errno::ETIMEDOUT)
    Backtrace:   /Users/seb/.heroku/client/lib/heroku/client/rendezvous.rb:39:in `initialize'
                 /Users/seb/.heroku/client/lib/heroku/client/rendezvous.rb:39:in `open'
                 /Users/seb/.heroku/client/lib/heroku/client/rendezvous.rb:39:in `block in start'
                 /usr/local/heroku/ruby/lib/ruby/1.9.1/timeout.rb:68:in `timeout'
                 /Users/seb/.heroku/client/lib/heroku/client/rendezvous.rb:31:in `start'
                 /Users/seb/.heroku/client/lib/heroku/command/run.rb:132:in `rendezvous_session'
                 /Users/seb/.heroku/client/lib/heroku/command/run.rb:119:in `run_attached'
                 /Users/seb/.heroku/client/lib/heroku/command/run.rb:24:in `index'
                 /Users/seb/.heroku/client/lib/heroku/command.rb:206:in `run'
                 /Users/seb/.heroku/client/lib/heroku/cli.rb:28:in `start'
                 /usr/local/heroku/bin/heroku:25:in `<main>'

    Command:     heroku run bash --app dadafish
    Plugins:     heroku-accounts
    Version:     heroku-toolbelt/2.37.2 (x86_64-darwin10.8.0) ruby/1.9.3

Any helps welcome. Thanks !

Sébastien

jdx commented 8 years ago

Your CLI is very out of date