Some local refs could not be updated error while running a plan
Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.
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.
Environment
Not applicable.
Diagnosis
This error can be found in the build logs:
(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 which is failing with the error.
- Click on Delete on the Operations