Open orgads opened 11 hours ago
- What commands did you run to trigger this issue? If you can provide a Minimal, Complete, and Verifiable example this will help us understand the issue.
git fetch
To make this example a little more complete, could you describe from where you are fetching? Is it github.com, a self-hosted git daemon
, from a network share? Is it a big fetch, i.e. have already dozens of megabytes been transferred, or is it a small fetch? Did you try to disable sideband?
It's a hosted gerrit 3.8 server. The fetch is small, took a few seconds after I downgraded to 2.46.
I can try to disable sideband tomorrow.
Latest update: Now it clones okay... without any local env modification... Okay again it just happened.
I tried to clone my https://github.com/jfcherng/copilot-node-server .
It seems to alway hang if I clone git@github.com:jfcherng/copilot-node-server.git
. But it's okay if I clone https://github.com/jfcherng/copilot-node-server.git
.
Update: It still hangs with GIT_CURL_VERBOSE=1 GIT_TRACE=1 git -c sendpack.sideband=false clone git@github.com:jfcherng/copilot-node-server.git
[jfcherng@HOME Desktop]$ GIT_CURL_VERBOSE=1 GIT_TRACE=1 git -c sendpack.sideband=false clone git@github.com:jfcherng/copilot-node-server.git
10:14:30.318887 exec-cmd.c:266 trace: resolved executable dir: C:/Program Files/Git/mingw64/bin
10:14:30.329889 git.c:479 trace: built-in: git clone git@github.com:jfcherng/copilot-node-server.git
Cloning into 'copilot-node-server'...
10:14:30.350892 run-command.c:667 trace: run_command: unset GIT_CONFIG_PARAMETERS GIT_DIR; GIT_PROTOCOL=version=2 ssh -o SendEnv=GIT_PROTOCOL git@github.com 'git-upload-pack '\''jfcherng/copilot-node-server.git'\'''
10:14:30.350892 run-command.c:928 trace: start_command: ssh -o SendEnv=GIT_PROTOCOL git@github.com 'git-upload-pack '\''jfcherng/copilot-node-server.git'\'''
remote: Enumerating objects: 542, done.
remote: Counting objects: 100% (100/100), done.
10:14:33.230184 run-command.c:667 trace: run_command: git index-pack --stdin -v --fix-thin '--keep=fetch-pack 32844 on 3bc-f19' --check-self-contained-and-connected
10:14:33.230184 run-command.c:928 trace: start_command: git index-pack --stdin -v --fix-thin '--keep=fetch-pack 32844 on 3bc-f19' --check-self-contained-and-connected
10:14:33.298183 exec-cmd.c:266 trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git-core
10:14:33.311182 git.c:479 trace: built-in: git index-pack --stdin -v --fix-thin '--keep=fetch-pack 32844 on 3bc-f19' --check-self-contained-and-connected
remote: Compressing objects: 100% (65/65), done.
Receiving objects: 1% (6/542)
It just hangs on Receiving objects: 1% (6/542)
. It is always 1% (6/542)
everytime I retried. Eventually it failed as the following.
[jfcherng@HOME Desktop]$ GIT_CURL_VERBOSE=1 GIT_TRACE=1 git -c sendpack.sideband=false clone git@github.com:jfcherng/copilot-node-server.git
10:16:32.600368 exec-cmd.c:266 trace: resolved executable dir: C:/Program Files/Git/mingw64/bin
10:16:32.614373 git.c:479 trace: built-in: git clone git@github.com:jfcherng/copilot-node-server.git
Cloning into 'copilot-node-server'...
10:16:32.653368 run-command.c:667 trace: run_command: unset GIT_CONFIG_PARAMETERS GIT_DIR; GIT_PROTOCOL=version=2 ssh -o SendEnv=GIT_PROTOCOL git@github.com 'git-upload-pack '\''jfcherng/copilot-node-server.git'\'''
10:16:32.653368 run-command.c:928 trace: start_command: ssh -o SendEnv=GIT_PROTOCOL git@github.com 'git-upload-pack '\''jfcherng/copilot-node-server.git'\'''
remote: Enumerating objects: 542, done.
remote: Counting objects: 100% (100/100), done.
10:16:35.393876 run-command.c:667 trace: run_command: git index-pack --stdin -v --fix-thin '--keep=fetch-pack 20220 on 3bc-f19' --check-self-contained-and-connected
10:16:35.393876 run-command.c:928 trace: start_command: git index-pack --stdin -v --fix-thin '--keep=fetch-pack 20220 on 3bc-f19' --check-self-contained-and-connected
10:16:35.455879 exec-cmd.c:266 trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git-core
10:16:35.469968 git.c:479 trace: built-in: git index-pack --stdin -v --fix-thin '--keep=fetch-pack 20220 on 3bc-f19' --check-self-contained-and-connected
remote: Compressing objects: 100% (65/65), done.
fetch-pack: unexpected disconnect while reading sideband packet
fatal: fetch-pack: invalid index-pack output
Ah right, my case was ssh too.
We are having this same problem with SSH on multiple machines that upgraded to the latest 2.47.0. All clones over 1mb from Gitlab are failing, the Git window just freezes at random points. Uninstalling 2.47.0 and reinstalling 2.44.0 solved the issue.
Does it work if you copy the usr\bin\ssh.exe
over from v2.46.2?
Does it work if you copy the
usr\bin\ssh.exe
over from v2.46.2?
In my case, no.
Setup
Details
Git Bash
It should be done successfully after a while.
It sometimes hangs. I see the following spawned process, which doesn't use any CPU, and doesn't terminate:
The output is: