-
Notifications
You must be signed in to change notification settings - Fork 822
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
git pull takes a long time; was fixed by turning off ipv6 using GIT_SSH_COMMAND="ssh -4" #11916
Comments
Logs are required for review from WSL teamIf this a feature request, please reply with '/feature'. If this is a question, reply with '/question'. How to collect WSL logsDownload and execute collect-wsl-logs.ps1 in an administrative powershell prompt:
The script will output the path of the log file once done. If this is a networking issue, please use collect-networking-logs.ps1, following the instructions here Once completed please upload the output files to this Github issue. Click here for more info on logging View similar issuesPlease view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it! Closed similar issues:
|
closing for now as I've had trouble replicating |
Reopening this as I just hit this again in another case - the vscode wsl server update which runs when you run Attaching the logs - @OneBlue I'm hoping this is more complete than your average issue report. Let me know if there's anything I can add. Reproduction steps - Open WSL and run Hangs for as long as I was willing to wait. Disable ipv6 - I edited Rerun WslLogs-2024-08-11_22-34-29.zip |
Diagnostic information
|
@jcrben thanks for reporting the issue and attaching the logs and the strace output the logs show that the IP you are trying to connect to at port 443 is 2620:1ec:bdf::69 I also see that your host machine only has local IPv6 connectivity, it does not have global IPv6 connectivity, which leads to connecting to global IPv6 address 2620:1ec:bdf::69 to fail - can you please confirm if you Windows machine has global IPv6 connectivity (e.g. does connecting to 2620:1ec:bdf::69, port 443 work on Windows) ? |
Don't want to add irrelavant info. However faced same observed functioning behavior in WSL. I had ended up changing Port entry previously in /etc/ssh/ssh_config file, returning it back to 22 solved my case. Same outcome but most likely a different RC in amongst network config. |
@CatalinFetoiu in this case I did not have a working ipv6 connection. Thanks for digging in, you can close this |
Windows Version
Windows 11 10.0.22631.3880 (23H2)
WSL Version
2.2.4.0
Are you using WSL 1 or WSL 2?
Kernel Version
Linux version 5.15.153.1-microsoft-standard-WSL2 (root@941d701f84f1) (gcc (GCC) 11.2.0, GNU ld (GNU Binutils) 2.37) #1 SMP Fri Mar 29 23:14:13 UTC 2024
Distro Version
Ubuntu-22.04
Other Software
No response
Repro Steps
Steps to Reproduce:
First off: I'm having trouble reliably reproducing this today. It was happening to me last night running ipv6 on WSL2 and fixed by disabling ipv6 - but today it's not happening even tho I'm connecting via ipv6 - and I'm confirming that ipv6 is being used via strace output like
271412 getsockname(3, {sa_family=AF_INET6, sin6_port=htons(60766), sin6_flowinfo=htonl(0), inet_pton(AF_INET6, "2601:648:8200:1c40::756b", &sin6_addr), sin6_scope_id=0}, [128 => 28]) = 0
(altho keep in mind I might be incorrectly reading these things).Not using a vpn - this is my personal machine where I don't need to use a vpn.
This is my
~/.wslconfig
:My
/etc/resolv.conf
:GIT_SSH_COMMAND="ssh -4" git pull
returns as fast as expectedI turned off ipv6 because I noticed it was doing an ipv6 connection when I ran
strace -v -s 1000 -f -o strace_output.txt git pull
and thentail -f strace_output.txt
in another terminal.I had previously not noticed this lag issue because I had included
kernelCommandLine=ipv6.disable=1
at someone's suggestion. But I recently discovered that this configuration was breaking docker desktop integration with my wsl2 ubuntu instance (see docker/for-win#13707 (comment)).References:
Expected Behavior
git pull
should return the update orAlready up to date.
fairly quickly (not more than a couple seconds)Actual Behavior
git pull
takes a while to returnDiagnostic Logs
No response
The text was updated successfully, but these errors were encountered: