Git 卡皮斯特拉诺在吉特停车:检查

Git 卡皮斯特拉诺在吉特停车:检查,git,capistrano,Git,Capistrano,当我运行cap deploy--trace时,我得到: > $ bundle exec cap production deploy --trace ** Invoke production (first_time) ** Execute production ** Invoke load:defaults (first_time) ** Execute load:defaults ** Invoke rbenv:validate (first_time) ** Execute rbenv:

当我运行
cap deploy--trace
时,我得到:

> $ bundle exec cap production deploy --trace
** Invoke production (first_time)
** Execute production
** Invoke load:defaults (first_time)
** Execute load:defaults
** Invoke rbenv:validate (first_time)
** Execute rbenv:validate
** Invoke rbenv:map_bins (first_time)
** Execute rbenv:map_bins
** Invoke bundler:map_bins (first_time)
** Execute bundler:map_bins
** Invoke deploy (first_time)
** Execute deploy
** Invoke deploy:starting (first_time)
** Invoke deploy:set_shared_assets (first_time)
** Execute deploy:set_shared_assets
** Execute deploy:starting
** Invoke deploy:check (first_time)
** Execute deploy:check
** Invoke git:check (first_time)
** Invoke git:wrapper (first_time)
** Execute git:wrapper
 INFO [d204de77] Running /usr/bin/env mkdir -p /tmp/control-panel/ on 10.0.1.6
 INFO [d204de77] Finished in 0.274 seconds with exit status 0 (successful).
 INFO Uploading /tmp/prey-control-panel/git-ssh.sh 100.0%
 INFO [a9e748c9] Running /usr/bin/env chmod +x /tmp/control-panel/git-ssh.sh on 10.0.1.6
 INFO [a9e748c9] Finished in 0.274 seconds with exit status 0 (successful).
** Execute git:check
它就停在那里。我认为这个问题与我使用的其他公钥有关。我是DevOps的一员,我有5把不同的钥匙,我经常使用

有什么想法吗?我应该删除我所有的钥匙还是什么?:)


谢谢。

我遇到了类似的问题,结果是我需要将SSH密钥从服务器添加到Bitbucket。奇怪的是,它已经工作了一段时间而不必这样做。

我解决了删除并再次添加ssh密钥的问题。看来我的ssh代理上的密钥太多了

ssh-add -D ; ssh-add ~/.ssh/id_rsa

我的问题是服务器上没有安装git。我通过在deploy.rb中将日志级别设置为debug来发现这一点。

可能是您的Gemlock已更新,但未被推送。尝试更新capistrano gem并推送到git repo,然后再次尝试部署。

如果不查看git的源代码,很难判断:检查capistrano任务。您可以发布全部或部分代码吗?@GregBurghardt这是git:check任务您可以从命令行运行
git ls remote repo_url
?如果该命令正在生产服务器上运行,您可以登录到服务器并运行该命令吗?我可以在本地和远程计算机上运行git ls remote。无论如何,我找到了一个解决这个问题的方法,在~/.ssh/config文件的顶部切换标识文件的顺序。我真的不知道为什么这样解决了这个问题,但现在我可以部署了。谢谢你的帮助@GregBurghardt@borisquiroz你有没有想过为什么会这样?