我从 rvm 切换到 rbenv。我的应用程序没有改变,但是我不得不再次下载 ruby 和所有的 gem。因为那我的部署失败了。似乎是当远程服务器尝试执行 git clone 并询问密码时:
executing "git clone -q admin@92.243.18.178:/folders/folders/releases/20130716125555 && cd /folders/folders/releases/20130716125555 && git checkout -q -b deploy f8b7206995a83600be40061fb675685b28c3e1db && (echo f8b7206995a83600be40061fb675685b28c3e1db > /folders/folders/20130716125555/REVISION)"
servers: ["95.142.171.17"]
Password:
[95.142.171.17] executing command
** [95.142.171.17 :: out] admin@92.243.18.178's password:
Password:
** [95.142.171.17 :: out]
** [95.142.171.17 :: out] Permission denied, please try again.
** admin@92.243.18.178's password:
Password: *** [deploy:update_code] rolling back
* executing "rm -rf /folders/folders/releases/20130716125555; true"
问题是 git repo 位于使用相同帐户的同一台计算机上。这是 ssh 的日志:
Jul 16 14:48:14 rn-outils sshd[28172]: Accepted password for admin from 88.185.158.43 port 51917 ssh2
Jul 16 14:48:14 rn-outils sshd[28172]: pam_unix(sshd:session): session opened for user admin by (uid=0)
Jul 16 14:48:22 rn-outils sshd[28324]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=rn-outils user=admin
Jul 16 14:48:25 rn-outils sshd[28324]: Failed password for admin from 92.243.18.178 port 56744 ssh2
我检查了 deploy.rb 的历史,很长一段时间都没有改变。
我不明白重新安装 capistrano 可能会如何影响它执行 git clone 的能力。我该怎么做才能让 capistrano 像以前一样表演?