Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Build fails to clone repository

Bamboo build fails to pull code from Bitbucket server.  I verified that the Access key from Bamboo is correctly installed on the Bitbucket repository.

 

 

com.atlassian.bamboo.plugins.stash.repository.StashRepositoryException: com.atlassian.bamboo.repository.RepositoryException: : Cannot fetch branch 'refs/heads/master' from 'ssh://git@bitbucket.magees.net:7999/yars/yars-angular.git' to source directory '/home/bamboo/xml-data/build-dir/_git-repositories-cache/c731f4ff0fa4b7d057030f1469f6098d50c248cd'. command [/usr/bin/git fetch ssh://35e2c0e3-d359-4a77-9a0b-3073b01904d2@127.0.0.1:35973/yars/yars-angular.git +refs/heads/master:refs/heads/master --update-head-ok] failed with code 128. Working directory was [/home/bamboo/xml-data/build-dir/_git-repositories-cache/c731f4ff0fa4b7d057030f1469f6098d50c248cd]., stderr:
Warning: Permanently added '[127.0.0.1]:35973' (RSA) to the list of known hosts.
fatal: The remote end hung up unexpectedly
fatal: protocol error: bad pack header

2 answers

1 accepted

0 votes
Answer accepted

After creating a new branch, code pull now works correctly.

Hi well you have the special day off and you have been working on a un 1⃣.. 

Thanks again for the miracle of life and experience with technology with the highest quality customer service within our range of business professionals will be able to make sure that we can arrange some time for you to help implement Segment marketing strategies for business professionals who want to be part of the following business. 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
Community showcase
Published in Bitbucket

⭐ Calling all Bitbucket and DevOps experts: Special showcase opportunity ⭐

Hi, Bitbucket community! Are you a DevOps practitioner (or know one in your network)? Do you have DevOps tips, tricks, or learnings you'd like to share with the community? If so, we'd love to hea...

1,453 views 4 7
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you