Capistrano deployment failed with bitbucket

We are moving our Rails repo from github to bitbucket. There is failure with our deployment which was running fine with github. Here is the error:

failed: "sh -c 'if [ -d /var/www/byop/shared/cached-copy ]; then cd /var/www/byop/shared/cached-copy && git fetch -q origin && git fetch --tags -q origin && git reset -q --hard a07b37e38857fe2ff8dfb82bd0e7477b13f2e03e && git
clean -q -d -x -f; else git clone -q /var/www/byop/shared/cached-copy && cd /var/www/byop/shared/cached-copy && git checkout -q -b deploy a07b37e38857fe2ff8dfb82bd0e7477b13f2e03e; fi'"

We tried both public and private repo and the error was the same. Any idea about the problem? Thanks.

1 answer

1 vote
Jason Worley Atlassian Team Mar 07, 2013


I am late in responding so perhaps this issue is now moot.

Determining the root cause from your description is a tough one, only because there are many variables.

The main thing to check is to ensure your SSH keys are configured in BitBucket. If you are not sure how to do that, step 6 in this document will help:

Also, you might find this document helpful. It is for troubleshooting SSH issues:

I hope the links were helpful.

Jason | Atlassian

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

2,020 views 1 5
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you