Reputation: 888
I have an Ubuntu server which can successfully deploy a Rails project to. I have created a new project, and would like to deploy this to the same server. But i am having a problem with accessing the bitbucket repo the code is stored on during the Capistrano deployment.
DEBUG [60fbbd0f] Command: /usr/bin/env chmod +x /tmp/<project_name>/git-ssh.sh
INFO [60fbbd0f] Finished in 0.098 seconds with exit status 0 (successful).
INFO [b7870f98] Running /usr/bin/env git ls-remote --heads [email protected]:rmac/<project_name>.git as [email protected]
DEBUG [b7870f98] Command: ( GIT_ASKPASS=/bin/echo GIT_SSH=/tmp/<project_name>/git-ssh.sh /usr/bin/env git ls-remote --heads [email protected]:rmac/<project_name>.git )
DEBUG [b7870f98] conq: repository does not exist.
DEBUG [b7870f98] fatal: Could not read from remote repository.
DEBUG [b7870f98]
DEBUG [b7870f98] Please make sure you have the correct access rights
DEBUG [b7870f98] and the repository exists.
I have tried this
and other answers but to no avail. I have checked my server processes and ssh agent is running. I find it difficult to understand seeing as my other project deploys to the server no problems. I am using the same machine, the same deployment keys, the same bitbucket account.
Any ideas?
Thanks
Upvotes: 0
Views: 161
Reputation: 2653
(Answer figured out in chat)
Since ssh-agent is being used, use ssh -A destination_server
and git clone
to confirm that ssh-agent is working.
Since another project is deploying, confirm that the Bitbucket repo URL is correct. (this ended up being the answer)
Upvotes: 1