heroku / legacy-cli

Heroku CLI
https://cli.heroku.com
MIT License
1.37k stars 380 forks source link

Heroku login internal error #888

Open krumjahn opened 11 years ago

krumjahn commented 11 years ago

Rumjahns-MacBook-Pro:git keithrumjahn$ heroku login Enter your Heroku credentials. Email: Password (typing will be hidden): ! 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:       Permission denied - /Users/keithrumjahn/.netrc (Errno::EACCES)
Backtrace:   /usr/local/heroku/ruby/lib/ruby/1.9.1/fileutils.rb:1140:in `initialize'
             /usr/local/heroku/ruby/lib/ruby/1.9.1/fileutils.rb:1140:in `open'
             /usr/local/heroku/ruby/lib/ruby/1.9.1/fileutils.rb:1140:in `rescue in block in touch'
             /usr/local/heroku/ruby/lib/ruby/1.9.1/fileutils.rb:1136:in `block in touch'
             /usr/local/heroku/ruby/lib/ruby/1.9.1/fileutils.rb:1134:in `each'
             /usr/local/heroku/ruby/lib/ruby/1.9.1/fileutils.rb:1134:in `touch'
             /Users/keithrumjahn/.heroku/client/lib/heroku/auth.rb:159:in `write_credentials'
             /Users/keithrumjahn/.heroku/client/lib/heroku/auth.rb:222:in `ask_for_and_save_credentials'
             /Users/keithrumjahn/.heroku/client/lib/heroku/auth.rb:84:in `get_credentials'
             /Users/keithrumjahn/.heroku/client/lib/heroku/auth.rb:41:in `login'
             /Users/keithrumjahn/.heroku/client/lib/heroku/command/auth.rb:31:in `login'
             /Users/keithrumjahn/.heroku/client/lib/heroku/command.rb:213:in `run'
             /Users/keithrumjahn/.heroku/client/lib/heroku/cli.rb:28:in `start'
             /usr/bin/heroku:24:in `<main>'

Command:     heroku login
Version:     heroku-toolbelt/2.40.1 (x86_64-darwin10.8.0) ruby/1.9.3
fredguth commented 10 years ago

I got the same error.

catsby commented 10 years ago

Can you verify for me you're on the latest Toolbelt version? v3.2.2 at this time. What are the file permissions on your ~/.netrc file?

fredguth commented 10 years ago

Hi, I am not sure how I get the toolbelt version.

➜ Work heroku version heroku-gem/2.20.1

➜ ~ ls -la .netrc -rw------- 1 fredguth staff 201 13 Ago 2012 .netrc

Thanks for helping, Fred

On Wed, Jan 15, 2014 at 5:22 PM, Clint notifications@github.com wrote:

Can you verify for me you're on the latest Toolbelt version? v3.2.2 at this time. What are the file permissions on your ~/.netrc file?

— Reply to this email directly or view it on GitHubhttps://github.com/heroku/heroku/issues/888#issuecomment-32399311 .

catsby commented 10 years ago

Sorry, meant to share a link: https://toolbelt.heroku.com

If at all possible you should not be using the gem directly. Let me know if that helps (be sure to run gem uninstall heroku first)

fredguth commented 10 years ago

sudo heroku create

works... I think it was my permission

On Wed, Jan 15, 2014 at 5:30 PM, Clint notifications@github.com wrote:

Sorry, meant to share a link: https://toolbelt.heroku.com

If at all possible you should not be using the gem directly. Let me know if that helps (be sure to run gem uninstall heroku first)

— Reply to this email directly or view it on GitHubhttps://github.com/heroku/heroku/issues/888#issuecomment-32405001 .

catsby commented 10 years ago

I think using sudo to invoke gems is typically considered A Very Bad Thing™ ...

fredguth commented 10 years ago

;-) I will uninstall then

On Wed, Jan 15, 2014 at 5:33 PM, Clint notifications@github.com wrote:

I think using sudo to invoke gems is typically considered A Very Bad Thing™ ...

— Reply to this email directly or view it on GitHubhttps://github.com/heroku/heroku/issues/888#issuecomment-32406256 .