1

I looked and looked, but cannot find what's going on. I am having trouble with Heroku and the toolbelt in particular. So I wanted to try updating it and try to do

$ heroku update

and I get

Error: undefined method `error' for Heroku::Updater:Module (NoMethodError)

What's going on here?

2
  • heroku --versionreturns 2.23.0 for me, and I get this when I try to run heroku update: "! heroku update is only available from Heroku Toolbelt. ! Download and install from toolbelt.heroku.com" I expect that is because I've installed it as a gem. Other commands like heroku logs work fine. Perhaps try installing as a gem if you haven't?
    – Henrik N
    Jul 28, 2012 at 9:43
  • I'm also experiencing this issue. I have toolbelt installed. But heroku update doesn't work, but all other commands seem to. Just recently updated to Mountain Lion....
    – cman77
    Jul 30, 2012 at 18:45

2 Answers 2

21

I had the same problem after I updated to Mountain Lion, but now everything is working fine. I did like below.

  1. Remove the heroku toolbelt

    rm -rf /usr/local/heroku
    rm -rf /usr/bin/heroku

  2. Remove the heroku gem

    gem uninstall heroku

    I got a message which gem to uninstall, so I chose 'all'

  3. Install the heroku toolbelt, again.

  4. heroku update -> works fine

Hope this will work.

3
  • 3
    Worked for me, thanks. Note that just reinstalling the toolbelt, did NOT work (OSX Lion).
    – rainkinz
    Sep 19, 2012 at 1:52
  • Same for me on OS X Lion. This solves the problem without hurting any heroku related application.
    – microspino
    Oct 3, 2012 at 9:44
  • If you are using rbenv maybe you want to remove .rbenv/shims/heroku as well.
    – coorasse
    Nov 13, 2015 at 15:25
0

Unfortunately I managed to bust update in 2.23.0 (sorry). So if you run into this you should be able to just skip directly to downloading and reinstalling the toolbelt. This should overwrite any old stuff (and afterward you should have a working update again). Sorry for the inconvenience.

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.