ruby-on-rails – Capistrano无法部署代码,因为Net :: SSH :: AuthenticationFailed:Authentication失败

前端之家收集整理的这篇文章主要介绍了ruby-on-rails – Capistrano无法部署代码,因为Net :: SSH :: AuthenticationFailed:Authentication失败前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我们有一个在Amazon AWS上运行的Rails应用程序.我们几乎每天都在连续推出几个月的新代码.

今天,当我试图在那里部署一个新的代码时,我被给了这个错误信息:

* 2014-02-16 13:09:51 executing `deploy'
  * 2014-02-16 13:09:51 executing `deploy:update'
 ** transaction: start
  * 2014-02-16 13:09:51 executing `deploy:update_code'
    updating the cached checkout on all servers
    executing locally: "git ls-remote git@bitbucket.org:my_bitbucket_name/project_name.git master"
    command finished in 2909ms
  * executing "if [ -d /home/deployer/project_name/shared/cached-copy ]; then cd /home/deployer/project_name/shared/cached-copy && git fetch -q origin && git fetch --tags -q origin && git reset -q --hard 16958dfcee27dd9c33855ecece0013428e2c57c8 && git clean -q -d -x -f; else git clone -q -b master git@bitbucket.org:rdudacz/looky.co.git /home/deployer/looky/shared/cached-copy && cd /home/deployer/project_name/shared/cached-copy && git checkout -q -b deploy 16958dfcee27dd9c33855ecece0013428e2c57c8; fi"
    servers: ["IP"]
*** [deploy:update_code] rolling back
  * executing "rm -rf /home/deployer/project_name/releases/20140216120957; true"
    servers: ["IP"]
 ** [deploy:update_code] exception while rolling back: Capistrano::ConnectionError,connection Failed for: IP (Net::SSH::AuthenticationFailed: Authentication Failed for user deployer@IP)
connection Failed for: IP (Net::SSH::AuthenticationFailed: Authentication Failed for user deployer@IP)

这里发生了什么?从哪里开始寻找问题?

先谢谢你

解决方法

问题是宝石

net-ssh

最后一个版本(2.8.0)会导致此问题.解决方法是卸载它:

gem uninstall net-ssh -v 2.8.0

然后添加到Gemfile其以前的版本:

gem "net-ssh","~> 2.7.0"

而已.

猜你在找的Ruby相关文章