Ruby   发布时间:2022-04-03  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了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)

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

先谢谢你

解决方法

问题是宝石

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

gem uninstall net-ssh -v 2.8.0

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

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

而已.

大佬总结

以上是大佬教程为你收集整理的ruby-on-rails – Capistrano无法部署代码,因为Net :: SSH :: AuthenticationFailed:Authentication失败全部内容,希望文章能够帮你解决ruby-on-rails – Capistrano无法部署代码,因为Net :: SSH :: AuthenticationFailed:Authentication失败所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。