Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Capistrano ERROR: Repository not found

Running cap deploy returns the error

ERROR: Repository not found.
fatal: The remote end hung up unexpectedly

failed: "env PATH=$HOME/.rbenv/shims:$HOME/.rbenv/bin:$PATH sh -c 'if [ -d .../shared/cached-copy ]; then cd .../shared/cached-copy && git fetch -q origin && git fetch --tags -q origin && git reset -q --hard e54354271256196e54354271256196 && git clean -q -d -x -f; else git clone -q -b new_front [email protected]:myapp.git .../shared/cached-copy && cd /shared/cached-copy && git checkout -q -b deploy ced405a4d2b184ccadf844185e54354271256196; fi'" on 192.111.111.111

but when i ssh to the server and run that exact command it works.

I've tried deleting the cached-copy and commenting set :deploy_via, "remote_cache" as mentioned in Cap deploy - ERROR: Repository not found but nothing works.

thanks

EDIT:

Similar issue: https://gist.github.com/ParkinT/2432735

like image 545
montrealmike Avatar asked Nov 19 '13 16:11

montrealmike


1 Answers

I had to run:

ssh-add

to add my identity to the authentication agent.

like image 140
HectorPerez Avatar answered Sep 17 '22 06:09

HectorPerez