2013-04-11 123 views
1

当我尝试恢复备份时,出现以下错误:Permission denied - /var/www/.netrcHeroku - 权限被拒绝?

我想知道如何解决它?提前致谢!

Error:  Permission denied - /var/www/.netrc (Errno::EACCES) 
Backtrace: /usr/local/heroku/vendor/gems/netrc-0.7.7/lib/netrc.rb:37:in `read' 
      /usr/local/heroku/vendor/gems/netrc-0.7.7/lib/netrc.rb:37:in `read' 
      /usr/local/heroku/lib/heroku/auth.rb:119:in `netrc' 
      /usr/local/heroku/lib/heroku/auth.rb:143:in `read_credentials' 
      /usr/local/heroku/lib/heroku/auth.rb:84:in `get_credentials' 
      /usr/local/heroku/lib/heroku/auth.rb:74:in `password' 
      /usr/local/heroku/lib/heroku/auth.rb:17:in `api' 
      /usr/local/heroku/lib/heroku/command/base.rb:40:in `api' 
      /usr/local/heroku/lib/heroku/command/pgbackups.rb:204:in `config_vars' 
      /usr/local/heroku/lib/heroku/command/pgbackups.rb:208:in`pgbackup_client' 
      /usr/local/heroku/lib/heroku/command/pgbackups.rb:53:in `url' 
      /usr/local/heroku/lib/heroku/command.rb:206:in `run' 
      /usr/local/heroku/lib/heroku/cli.rb:28:in `start' 
      /usr/bin/heroku:25:in `<main>' 

Command:  heroku pgbackups:url -a sony-staging-hannibal-mobovivo 
Version:  heroku-toolbelt/2.36.1 (x86_64-linux) ruby/1.9.2 

SOLUTION 根据在以指示重新安装的Heroku,工具区:

https://toolbelt.heroku.com/

解决的问题。再次感谢你! :)

+0

$ WHOAMI返回www数据。而操作系统是ubuntu – ipegasus 2013-04-11 20:19:40

+0

是/ var/www你的家?你有读/写访问.netrc文件吗? – kch 2013-04-11 23:59:48

回答

0

尝试使用$ heroku update升级客户端。目前的版本是2.37

0

尝试使用

须藤的Heroku登录

它为我工作在Debian Linux上