Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Heroku toolbelt fails update

I'm trying to get Heroku toolbelt working and it's a total nightmare. The install runs successfully, but when I run heroku update I get:

    $ heroku update 
         failed    
            !   undefined method `output_with_arrow' for #<Heroku::Command::Update:0x108da0120 @options={}, @args=[]>

I've tried everything, including uninstalling my heroku gem and removing the toolbelt via:

rm -rf /usr/loca/heroku
sudo rm /usr/bin/heroku

This is VERY frustrating. My environment is Mac OS 10.7 Lion and:

$ ruby -v
ruby 1.9.3p125 (2012-02-16 revision 34643) [x86_64-darwin11.3.0]

$ which ruby
/Users/J/.rvm/rubies/ruby-1.9.3-p125/bin/ruby

$ heroku version
heroku-gem/2.19.2

$ which heroku
/usr/bin/heroku
like image 289
jstafford Avatar asked Jun 07 '12 02:06

jstafford


1 Answers

Heroku support finally helped me fix this. Long story short, if you're having this issue, just run:

$ rm -rf ~/.heroku/client

Then reinstall the Heroku Toolbelt from http://toolbelt.heroku.com

If you want the long answer, here you go:

There appear to be some edge cases where update ended up with some incorrect data and it is somewhat more difficult to recover from this. If you first delete the ~/.heroku/client directory and subsequently run the installer you should end up with a working result.

like image 159
jstafford Avatar answered Oct 21 '22 16:10

jstafford