Bamboo Data Center checkout task fails with git 2.50 on Windows agents
Platform Notice: Data Center Only - This article only applies to Atlassian apps 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
Users have reported issues with Git fetch operations, such as checkout tasks, when using Git version 2.50.0.windows.1. The problem manifests as unexpected disconnects and errors during the fetch process, which can halt builds and deployments.
It is important to note that this issue is not related to Bamboo itself, but rather a problem with the Git client.
The following errors are observed in the Bamboo build logs:
01-Jul-2025 02:00:12 Creating local git repository in 'C:\build\_git-repositories-cache\<HASH>\.git'.
01-Jul-2025 02:00:12 Initialized empty Git repository in C:/build/_git-repositories-cache/<HASH>/.git/
01-Jul-2025 02:00:16 Fetching 'refs/heads/stable/9.12.x' from '<REPO_URL>'.
01-Jul-2025 02:00:17 Warning: Permanently added '[127.0.0.1]:59000' (RSA) to the list of known hosts.
01-Jul-2025 02:10:57 Received disconnect from 127.0.0.1 port 59000:2: Protocol error or corrupt packet
01-Jul-2025 02:10:57 Disconnected from 127.0.0.1 port 59000
01-Jul-2025 02:10:57 fetch-pack: unexpected disconnect while reading sideband packet
01-Jul-2025 02:10:57 fatal: early EOF
01-Jul-2025 02:10:57 fatal: fetch-pack: invalid index-pack output
01-Jul-2025 02:10:57 Cannot fetch branch 'refs/heads/stable/9.12.x' from '<REPO_URL>' to source directory 'C:\build\_git-repositories-cache\<HASH>'. command ['C:\Program Files\Git\cmd\git.exe' fetch -f -p -P <SSH_URL> +refs/heads/stable/9.12.x:refs/heads/stable/9.12.x --update-head-ok -q] failed with code 128. Working directory was [C:\build\_git-repositories-cache\<HASH>]., stderr:Warning: Permanently added '[127.0.0.1]:59000' (RSA) to the list of known hosts.Received disconnect from 127.0.0.1 port 59000:2: Protocol error or corrupt packetDisconnected from 127.0.0.1 port 59000fetch-pack: unexpected disconnect while reading sideband packetfatal: early EOFfatal: fetch-pack: invalid index-pack outputSolution
This issue is linked to a known problem with Git version 2.50.0.windows.1, where SSH operations can randomly get stuck or fail due to sideband packet reading issues.
Upgrade to latest Git version for Windows client
The issue has been addressed in the latest Git release.
Users are advised to upgrade to Git version 2.50.0.windows.2 or later to resolve these fetch issues.
Additional resources
Was this helpful?