heroku pgbackups:capture throwing error #577

Closed
bbarton opened this Issue Sep 22, 2012 · 6 comments

Projects

None yet

5 participants

@bbarton
bbarton commented Sep 22, 2012

I'm running toolbelt gem 2.32.4.

I started with the free 5mb database, did heroku pgbackups:capture successfully, then added the $9 db and the $50 db. Now, when I try it backing up with that same command it gives me the following error:

Error:       undefined method `display_name' for nil:NilClass (NoMethodError)
Backtrace:   /Users/bevan/.heroku/client/lib/heroku/command/pgbackups.rb:76:in `capture'
             /Users/bevan/.heroku/client/lib/heroku/command.rb:206:in `send'
             /Users/bevan/.heroku/client/lib/heroku/command.rb:206:in `run'
             /Users/bevan/.heroku/client/lib/heroku/cli.rb:28:in `start'
             /usr/bin/heroku:25

Command:     heroku pgbackups:capture
Version:     heroku-toolbelt/2.31.4 (universal-darwin11.0) ruby/1.8.7

Seems to be caused by not specifying the db. I was expecting it to use the DATABASE_URL db.

@niedfelj
Contributor

Same error here:
! 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 `display_name' for nil:NilClass (NoMethodError)
Backtrace:   /Users/joel/.rvm/gems/ruby-1.9.3-p194/gems/heroku-2.32.4/lib/heroku/command/pgbackups.rb:76:in `capture'
             /Users/joel/.rvm/gems/ruby-1.9.3-p194/gems/heroku-2.32.4/lib/heroku/command.rb:206:in `run'
             /Users/joel/.rvm/gems/ruby-1.9.3-p194/gems/heroku-2.32.4/lib/heroku/cli.rb:28:in `start'
             /Users/joel/.rvm/gems/ruby-1.9.3-p194/gems/heroku-2.32.4/bin/heroku:16:in `<top (required)>'
             /Users/joel/.rvm/gems/ruby-1.9.3-p194/bin/heroku:19:in `load'
             /Users/joel/.rvm/gems/ruby-1.9.3-p194/bin/heroku:19:in `<main>'
             /Users/joel/.rvm/gems/ruby-1.9.3-p194/bin/ruby_noexec_wrapper:14:in `eval'
             /Users/joel/.rvm/gems/ruby-1.9.3-p194/bin/ruby_noexec_wrapper:14:in `<main>'

Command:     heroku pgbackups:capture --expire --app vfiles-staging
Version:     heroku-gem/2.32.4 (x86_64-darwin11.4.0) ruby/1.9.3 autoupdate
@alfredo
alfredo commented Sep 25, 2012

Same error here. Reported on #586 which is a duplicate.

Edit: I can't close the duplicate report.

@robinjam

A temporary solution that worked for me is to add the database name at the end of the call. For example: heroku pgbackups:capture SHARED_DATABASE

@niedfelj
Contributor

I understand that, just letting you know that it has broken all of our build scripts across environments and I've had to revert to heroku gem 2.31.3, which seems to be that last version that works.

On Sep 26, 2012, at 4:02 PM, James Robinson notifications@github.com wrote:

A temporary solution is to add the database name at the end of the call. For example: heroku pgbackups:capture SHARED_DATABASE


Reply to this email directly or view it on GitHub.

@robinjam

@niedfelj: I don't work for Heroku; I was just sharing a workaround that I found when I ran into this issue.

@wuputah
Contributor
wuputah commented Dec 12, 2012

This display_name issue has been fixed in newer versions. Thanks!

@wuputah wuputah closed this Dec 12, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment