Some local refs could not be updated error while running a plan
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Summary
User may get some local refs could not be updated error while attempting to run a plan branch to a given repository.
Diagnosis
This error can be found in the build logs:
1
(unable to update local ref) error: some local refs could not be updated; try running 'git remote prune ssh://aabbccdd-1234-4567-8910-aabbccddeeff@127.0.0.1:123456/project/repository.git' to remove any old, conflicting branches)
Cause
This issue can be caused due to old and conflicting git caches that are stored either on Bamboo server or in the remote agents.
Solution
To fix this issue you will have to delete the conflicting git cache from the repository by following the steps below:
Go to Bamboo administration >> BUILD RESOURCES >> Repository settings and find the plan that is failing with the error.
Click on Delete on the Operations
Was this helpful?