B
B
badcluster2014-02-23 23:25:31
SSH
badcluster, 2014-02-23 23:25:31

Capistrano stopped deploying due to ssh authorization error. Where to dig?

Rails 3, ruby ​​1.9.2, ubuntu, nginx, unicorn, capistrano
Deployment takes place from a repository on bitbucket.org using deployment keys. The last time I deployed was in December 2013, I tried it today - it doesn't work. When executed, cap deployit gives

Error reading response length from authentication socket.
What I tried to do:
- Created a new pair of keys on the server.
- added a new public key from the server to the repository.
The result is the same.
A piece of the output of the command cap deploywith an error:
* ←[33mexecuting "if [ -d /sites/user1/project/deploy/shared/cached-copy ];
 then cd /sites/user1/project/deploy/shared/cached-copy && git fetch -q origi
n && git fetch --tags -q origin && git reset -q --hard 469ea5a1f2bf60d6122b0f129
6d59198a6e8d5fb && git clean -q -d -x -f; else git clone -q -b master [email protected]
ket.org:poloten4ik/bz.git /sites/user1/project/deploy/shared/cached-copy && c
d /sites/user1/project/deploy/shared/cached-copy && git checkout -q -b deploy
 469ea5a1f2bf60d6122b0f1296d59198a6e8d5fb; fi"←[0m
    servers: ["85.17.194.217"]
    [85.17.194.217] executing command
 ** [85.17.194.217 :: out] Error reading response length from authentication soc
ket.
 ** [85.17.194.217 :: out] Error reading response length from authentication soc
ket.
    ←[2;37mcommand finished in 4150ms←[0m
    copying the cached version to /sites/user1/project/deploy/releases/201402
23201009

Answer the question

In order to leave comments, you need to log in

4 answer(s)
V
vovkats, 2014-09-18
@vovkats

set :ssh_options, { :forward_agent => false }

D
Dmitry Tallmange, 2014-02-24
@p00h

Have you tried manually logging in via ssh on behalf of the user who is doing the deployment to a remote server?

D
Dmitry Tallmange, 2014-02-25
@p00h

Look here

P
Piranis, 2014-03-23
@Piranis

@p00h so in @badcluster's case did bitbucket update openssh or is he on his own machine?
what is the client here what is the server?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question