La cap deploy
ejecución cap deploy
el error
ERROR: Repository not found. fatal: The remote end hung up unexpectedly
fallido: "env PATH = $ HOME / .rbenv / shims: $ HOME / .rbenv / bin: $ PATH sh -c 'si [-d … / shanetworking / cached-copy]; luego cd … / shanetworking / copy en caching && git fetch -q origen && git fetch –tags -q origen && git reset -q –hard e54354271256196e54354271256196 && git clean -q -d -x -f; else git clone -q -b nuevo_front git @ github.com:myapp.git … / shanetworking / cached-copy && cd / shanetworking / cached-copy && git checkout -q -b deploy ced405a4d2b184ccadf844185e54354271256196; fi '"en 192.111.111.111
pero cuando ssh al server y ejecuto ese command exacto, funciona.
Intenté eliminar el set cached-copy
y comentarios set :deploy_via, "remote_cache"
como se menciona en Cap deploy – ERROR: no se encontró el repository pero nada funciona.
Gracias
EDITAR:
Problema similar: https://gist.github.com/ParkinT/2432735
Tuve que correr:
ssh-add
para agregar mi identidad al agente de authentication.
Resulta que el problema fue con el reenvío de agente ssh.
https://help.github.com/articles/using-ssh-agent-forwarding
Capistrano fue configurado
ssh_options[:forward_agent] = true
Localmente tenía dos keys ssh, y de alguna manera la que se usaba localmente no era la misma que se usaba a través del forward_agent. Si tiene una key en el server, puede configurar
ssh_options[:forward_agent] = false
De lo contrario, borre las keys y agregue solo la que necesita (en mac, ssh-add -D
y ssh-add path/to/key
).