2013-04-11 182 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上