Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Heroku client internal error for pg command

When trying to run any of the heroku pg commands I'm getting this traceback:

$ heroku pg

 !    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:       undefined method `get_attachments' for #<Heroku::API:0x007ffcf08b0390> (NoMethodError)
Backtrace:   /Users/erik/.heroku/client/lib/heroku/helpers/heroku_postgresql.rb:99:in `app_attachments'
             /Users/erik/.heroku/client/lib/heroku/helpers/heroku_postgresql.rb:104:in `hpg_databases'
             /Users/erik/.heroku/client/lib/heroku/helpers/heroku_postgresql.rb:62:in `all_databases'
             /Users/erik/.heroku/client/lib/heroku/command/pg.rb:340:in `hpg_databases_with_info'
             /Users/erik/.heroku/client/lib/heroku/command/pg.rb:19:in `index'
             /Users/erik/.heroku/client/lib/heroku/command.rb:218:in `run'
             /Users/erik/.heroku/client/lib/heroku/cli.rb:28:in `start'
             /usr/bin/heroku:25:in `<main>'

Command:     heroku pg
Plugins:     heroku-config
             heroku-pg-extras

Version:     heroku-toolbelt/3.6.0 (universal.x86_64-darwin13) ruby/2.0.0

All other commands work -- and the pg commands worked find previously. Any thoughts on what might be the problem?

like image 772
erikcw Avatar asked Mar 19 '14 22:03

erikcw


People also ask

What does heroku PG Reset do?

pg:reset. The PostgreSQL user your database is assigned doesn't have permission to create or drop databases. To drop and recreate your database use pg:reset .

Where do heroku commands run?

Running Commands on the Heroku Web Interface To use the web console, navigate to your application in Heroku. The same application that you would pass into --app earlier. In the top-right of the interface, there is a “More” button, pressing it displays a “Run Console” option. Select it to add your command.

How do I access heroku terminal?

Get Started with the Heroku CLIAfter you install the CLI, run the heroku login command. Enter any key to go to your web browser to complete login. The CLI then logs you in automatically. If you'd prefer to stay in the CLI to enter your credentials, run heroku login -i .

How do I reset my heroku database?

Select the database you want to reset. Click on a settings button in the right upper corner. Click "Reset Database" as shown below: type in "RESET" and press ok.


1 Answers

I just ran into the same exact issue and opened a Heroku support ticket. They suggested I actually download a whole new toolbelt .pkg from http://toolbelt.heroku.com and install that. I had just ran

heroku update

But that didn't solve the issue even though my toolbelt version was showing 3.6.0. I downloaded the new .pkg from the link above, ran it and everything worked perfectly.

like image 94
SethS Avatar answered Sep 25 '22 23:09

SethS