大网数据广告活动
服务器运维问答

Git, WSL2, SSH: unexpected disconnect while reading sideband packet

· 52CE 我爱测

While attempting to clone a remote Git repo using SSH I got the following error: git clone user@remote-repo:project.git . remote: Counting objects: 187444, done. remote: Compressing objects: 100% (73430/73430), done. client_loop:…

问题原文

原帖链接 · amateur barista · CC BY-SA 4.0

While attempting to clone a remote Git repo using SSH I got the following error:

git clone user@remote-repo:project.git .
remote: Counting objects: 187444, done.
remote: Compressing objects: 100% (73430/73430), done.
client_loop: send disconnect: Broken pipe.06 MiB | 4.04 MiB/s
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: index-pack failed

My environment has the following Specs:

  • WSL2 (Windows Subsystem 4 Linux)
  • git --version git version 2.30.1

The git package can be found here https://pkgs.alpinelinux.org/package/edge/main/x86_64/git

uname -a
Linux 4.19.128-microsoft-standard #1 SMP Tue Jun 23 12:58:10 UTC 2020 x86_64 Linux

2021-03-09-07:11AM wsl@Alpine:~$ more /etc/issue
Welcome to Alpine Linux 3.10
Kernel \r on an \m (\l)

I've got no clue why is this happening. Is it a bursting or kernel configuration issue on Alpine? WSL? I doubt it's the remote host. The remote host works fine for SSH, as well as cloning for every non-WSL user.

已采纳解答

原帖链接 · amateur barista · CC BY-SA 4.0

The WiFi networking card on my laptop was the root cause. My card is killer wifi but also read the same happening to Intel WiFi cards.

Upgrading the WiFi card drivers immediately fixed the issue.

Still completely lost on me how a networking drive ended up causing this strange git error issue.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2021-03-09)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。