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?
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 .
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.
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 .
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With