Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Build fails to clone repository

Terrence Magee
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 22, 2020

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

1 answer

1 accepted

0 votes
Answer accepted
Terrence Magee
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 22, 2020

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

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events