I was wrestling with ssh keys and uploaded a new one, then I git push heroku master’ed fine, then it displays my landing page but shows
We're sorry, but something went wrong.
I found in stackoverflow that it might be that I haven’t yet run
heroku rake db:migrate
(which no standard documentation says to do!) but when I run that I get this:
User/<computername>/.heroku/client/lib/heroku/cli.rb:30:in `start': undefined method `error_with_failure'
for Heroku::Helpers:Module (NoMethodError)from /usr/bin/heroku:28
the code for this file looks like this:
def self.start(*args)
begin
if $stdin.isatty
$stdin.sync = true
end
if $stdout.isatty
$stdout.sync = true
end
command = args.shift.strip rescue "help"
Heroku::Command.load
Heroku::Command.run(command, args)
rescue Interrupt
`stty icanon echo`
error("Command cancelled.")
rescue => error
if Heroku::Helpers.error_with_failure <<<<<<<<< Line #30 WHERE ERROR OCCURS
display("failed")
Heroku::Helpers.error_with_failure = false
end
$stderr.puts(' ! Heroku client internal error.')
$stderr.puts(" ! Search for help at: https://help.heroku.com")
$stderr.puts(" ! Or report a bug at: https://github.com/heroku/heroku/issues/new")
$stderr.puts
$stderr.puts(" Error: #{error.message} (#{error.class})")
$stderr.puts(" Backtrace: #{error.backtrace.first}")
error.backtrace[1..-1].each do |line|
$stderr.puts(" #{line}")
end
I’ve seen something like this come up as a conflict of having BOTH gem and toolbelt installs and Ruby confusing what to load from when. If you would like to use toolbelt I highly recommend uninstalling any gem versions you might have to avoid this (and likely everything should work for you at that point). You can do this by running
gem uninstall herokuand choosing to uninstall all versions. If you are still experiencing issues let me know though and I’ll be happy to continue helping to troubleshoot. Thanks!