Comment 0 for bug 1988029

Revision history for this message
Vuong V (kinekt4) wrote :

Git hangs when connected over a wireguard tunnel when cloning **github** repository.

This happens when git operations are run over ssh not https.

When various debug/trace flags (GIT_TRACE_PACKET, GIT_TRACE, GIT_CURL_VERBOSE) are turned on
and git clone is run, this is the last message before the operation hangs:

> 14:59:21.820712 git.c:455 trace: built-in: git index-pack --stdin -v --fix-thin '--keep=fetch-pack 1167 on machine' --check-self-contained-and-connected

I've seen this issue reported once before:

https://public-inbox<email address hidden>/

In that instance, the culprit was deemed to be the sshd running on the git server.

I'm reporting it here because I'm only seeing it in Ubuntu (WSL),
but it's quite possible that its github's sshd server, or even my ISP's
infrastructure. Or a combination of all of the above.

==========

How to reproduce:

1. Login to Windows 10
2. Connect to a wireguard server
3. Open Windows Terminal
4. Start Ubuntu 22.04.1 LTS (WSL2)
5. Export debug/tracing flags: GIT_TRACE_PACKET, GIT_TRACE, GIT_CURL_VERBOSE
6. Run git clone (SSH) eg. git clone <email address hidden>:github/gh-net.git
7. Watch trace. Trace will stop at line: --check-self-contained-and-connected
8. Git clone will hang indefinitely > 10 minutes

==========

Environment:

This can be reproduced consistently on my end.

* Windows 10: Version 21H2 (OS Build 19044.1889)
* Client WSL OS: Ubuntu 22.04.1 LTS (5.10.102.1-microsoft-standard-WSL2)
* SSH: OpenSSH_8.9p1 Ubuntu-3, OpenSSL 3.0.2 15 Mar 2022
* git: git version 2.34.1
* Wireguard Client: 0.5.3
* Wireguard Host OS: Ubuntu 22.04.1 LTS (5.15.0-46-generic)
* Internet connection: FTTC (ppoe)
* WAN router: OpenWrt 21.02.3

==========

Notes:

* This issue only happens when cloning from github.com
* This issue does **NOT** happen when cloning from gitlab or bitbucket
* This issue happens when client WSL OS is Ubuntu (20.04, 22.04)
* In Oracle Linux 8.6 (WSL), the first clone will fail (hang).
* Press CTL+C, then try git clone again. It will now work.
* Interestingly, all git clones even in Ubuntu 22.04.1 LTS (WSL) will now work.