Mez*_*bah 9 git ruby-on-rails-4 capistrano3
在我的ruby on rails项目中,我使用capistrano,unicorn,postgresql和nginx来部署我的项目.当我运行时,cap production git:check 我收到此错误:
Error reading response length from authentication socket.
Run Code Online (Sandbox Code Playgroud)
日志跟踪:
INFO [13522bc0] Running /usr/bin/env mkdir -p /tmp/deploy_test/ as mezbah@192.168.137.130
DEBUG [13522bc0] Command: /usr/bin/env mkdir -p /tmp/deploy_test/
INFO [13522bc0] Finished in 0.291 seconds with exit status 0 (successful).
DEBUG Uploading /tmp/deploy_test/git-ssh.sh 0.0%
INFO Uploading /tmp/deploy_test/git-ssh.sh 100.0%
INFO [3b379ef0] Running /usr/bin/env chmod +x /tmp/deploy_test/git-ssh.sh as mezbah@192.168.137.130
DEBUG [3b379ef0] Command: /usr/bin/env chmod +x /tmp/deploy_test/git-ssh.sh
INFO [3b379ef0] Finished in 0.067 seconds with exit status 0 (successful).
INFO [8355617a] Running /usr/bin/env git ls-remote --heads git@github.com:mezbahalam/deploy_test.git as mezbah@192.168.137.130
DEBUG [8355617a] Command: ( GIT_ASKPASS=/bin/echo GIT_SSH=/tmp/deploy_test/git-ssh.sh /usr/bin/env git ls-remote --heads git@github.com:mezbahalam/deploy_test.git )
DEBUG [8355617a] Error reading response length from authentication socket.
DEBUG [8355617a] 6399a4a331342141ed3bbf3afb58f58828f96c76 refs/heads/master
INFO [8355617a] Finished in 9.683 seconds with exit status 0 (successful).
Run Code Online (Sandbox Code Playgroud)
我读了一些帖子,但我找不到任何解决方案.
小智 16
TL; DR
# start/restart ssh-agent
eval "$(ssh-agent -s)"
# add the desired ssh-key
ssh-add ~/.ssh/id_rsa
Run Code Online (Sandbox Code Playgroud)
有关详细信息,请参阅:https://help.github.com/articles/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent/.
我过去经历了同样的问题,这篇文章帮助我解决了很多问题:http: //www.antleon.com/2014/04/rails-capistrano-deployment-ssh-error-reading-response-length-从认证插座/
希望能帮助到你.
| 归档时间: |
|
| 查看次数: |
10506 次 |
| 最近记录: |