git 2.47.0 - fetch-pack: unexpected disconnect while reading sideband packet

250 views
Skip to first unread message

Mike O'Connell

unread,
Oct 23, 2024, 8:10:19 AM10/23/24
to git-for-windows
I recently stumbled upon issues with git 2.47.0 using SSH (key authentication) and fetching from remote. 

The fetch command abruptly halts when fetching objects from ssh.github.com:443. Retries sometimes halt in different locations but the end result always hangs. 

Terminating the process results in `fetch-pack: unexpected disconnect while reading sideband packet`

Attempted fixes: 
  1. ssh.github.com:22
  2. github.com:22
  3. git config core.compression 0
  4. git config core.compression 9
  5. git config pack.window 1
Nothing worked. Reset configs.

Switched to HTTPS and credentials-manager which also failed at the same point.  Switched on `git config pack.window 1` which worked over HTTPS

Reset config and rolled back to 2.46.2 and tested SSH again which worked as expected. 

I've attached log output with trace and verbose ssh enabled. Confidential information has been redacted. 
git-247-failure-logs.log

Johannes Schindelin

unread,
Oct 30, 2024, 4:58:23 PM10/30/24
to Mike O'Connell, git-for-windows
Hi Mike,

On Thu, 17 Oct 2024, Mike O'Connell wrote:

> I recently stumbled upon issues with git 2.47.0 using SSH (key
> authentication) and fetching from remote.
>
> The fetch command abruptly halts when fetching objects from
> ssh.github.com:443. Retries sometimes halt in different locations but the
> end result always hangs.

This sounds like a bug that was fixed in Git for Windows v2.47.0(2).

Ciao,
Johannes

>
> Terminating the process results in `fetch-pack: unexpected disconnect while
> reading sideband packet`
>
> Attempted fixes:
>
> 1. ssh.github.com:22
> 2. github.com:22.
> 3. git config core.compression 0
> 4. git config core.compression 9
> 5. git config pack.window 1
>
> Nothing worked. Reset configs.
>
> Switched to HTTPS and credentials-manager which also failed at the same
> point. *Switched on `git config pack.window 1` which worked over HTTPS*
>
> Reset config and rolled back to 2.46.2 and tested SSH again which worked as
> expected.
>
> I've attached log output with trace and verbose ssh enabled. Confidential
> information has been redacted.
>
> --
> You received this message because you are subscribed to the Google Groups "git-for-windows" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to git-for-windo...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/git-for-windows/18fc07c8-fce3-4341-8848-64f8e0235541n%40googlegroups.com.
>

mike

unread,
Oct 30, 2024, 5:17:22 PM10/30/24
to Johannes Schindelin, git-for-windows
Good stuff - thanks for the work!

> On 30 Oct 2024, at 20:58, Johannes Schindelin <Johannes....@gmx.de> wrote:
>
> Hi Mike,

Hernan Gonzalez

unread,
Oct 30, 2024, 5:54:22 PM10/30/24
to git-for-windows
Reply all
Reply to author
Forward
0 new messages