Sou novo no capistrano e estou tentando executar o script para implantar os códigos-fonte no servidor de controle de qualidade conectado à VPN. Testado script no meu shell 'Git bash' na máquina windows. Não tenho problemas em conectar o github como testado abaixo.
$ ssh -T [email protected] Hi jkjunguser! You've successfully authenticated, but GitHub does not provide sh ell access.
A conexão VPN com a rede do cliente é estabelecida usando o Cisco ANyConnect v2.5. Testado conexão SSH do meu shell local para o servidor de destino e foi bem-sucedida. Também testei a conexão do github no servidor de destino e não tive problemas.
No entanto, quando eu executei o script de implantação, recebi "Erro ao ler a duração da resposta do soquete de autenticação". erro como abaixo.
$ cap qa deploy
* ?[32m2013-05-30 13:53:16 executing 'qa'?[0m
* ?[32m2013-05-30 13:53:16 executing 'deploy'?[0m
* ?[32m2013-05-30 13:53:16 executing 'deploy:update'?[0m
** transaction: start
* ?[32m2013-05-30 13:53:16 executing 'deploy:update_code'?[0m
updating the cached checkout on all servers
?[33mexecuting locally: "git ls-remote [email protected]:cleanShot/client-ph
ase2.git master"?[0m
?[2;37mcommand finished in 7293ms?[0m
* ?[33mexecuting "if [ -d /home/web/qa.client.com/shared/cached-copy ]; then
cd /home/web/qa.client.com/shared/cached-copy && git fetch -q origin && git fet
ch --tags -q origin && git reset -q --hard b0f37d41f5d8aa5716986725d1c72142536af
8d2 && git clean -q -d -x -f; else git clone -q -b master [email protected]:cleanShot
/client-phase2.git /home/web/qa.client.com/shared/cached-copy && cd /home/
web/qa.client.com/shared/cached-copy && git checkout -q -b deploy b0f37d41f5d8a
a5716986725d1c72142536af8d2; fi"?[0m
servers: ["10.33.XX.XXX"]
Password:
[10.33.XX.XXX] executing command
** [10.33.XX.XXX :: err] Error reading response length from authentication sock
et.
** [10.33.XX.XXX :: err] ERROR: Repository not found.
** [10.33.XX.XXX :: err] fatal: The remote end hung up unexpectedly
?[2;37mcommand finished in 2217ms?[0m
*** [?[34mdeploy:update_code?[0m] ?[34mrolling back?[0m
* ?[33mexecuting "rm -rf /home/web/qa.client.com/releases/20130530015346; tru
e"?[0m
servers: ["10.33.XX.XXX"]
[10.33.XX.XXX] executing command
?[2;37mcommand finished in 522ms?[0m
failed: "sh -c 'if [ -d /home/web/qa.client.com/shared/cached-copy ]; then cd /
home/web/qa.client.com/shared/cached-copy && git fetch -q origin && git fetch -
-tags -q origin && git reset -q --hard b0f37d41f5d8aa5716986725d1c72142536af8d2
&& git clean -q -d -x -f; else git clone -q -b master [email protected]:company/
client-phase2.git /home/web/qa.client.com/shared/cached-copy && cd /home/web/
qa.client.com/shared/cached-copy && git checkout -q -b deploy b0f37d41f5d8aa571
6986725d1c72142536af8d2; fi'" on 10.33.XX.XXX
O script de implantação usado está abaixo. [deploy.rb]
set :repository, "[email protected]:cleanShot/client-phase2.git" set :scm, :git set :branch, fetch(:branch, "master") set :use_sudo, false set :normalize_asset_timestamps, false ssh_options[:forward_agent] = true task :qa do set :user, 'web' set :application, "qa.basspro.com" set :deploy_to, "/home/web/#{application}" set :deploy_via, :remote_cache set :current_path, "#{deploy_to}/current" set :releases_path, "#{deploy_to}/releases/" set :shared_path, "#{deploy_to}/shared/" role :web, "10.33.88.101" end after 'deploy:update', :update_permission
Se houver alguma cura para isso "Erro ao ler a duração da resposta do soquete de autenticação". erro que seria ótimo. Por favor me dê qualquer conselho útil. Estou feliz em tentar qualquer sugestão.