1

当我尝试恢复备份时,出现以下错误: Permission denied - /var/www/.netrc

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

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

解决方案 根据以下说明重新安装 heroku-toolbelt:

https://toolbelt.heroku.com/

解决了这个问题。再次感谢你!:)

4

2 回答 2

0

尝试使用

须藤heroku登录

它在 debian linux 上对我有用

于 2013-10-25T12:01:40.723 回答
0

尝试使用$ heroku update. 当前版本是 2.37

于 2013-04-11T20:44:24.480 回答