-
Notifications
You must be signed in to change notification settings - Fork 839
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
curl/git don't work properly inside an lxd container on wsl/ubuntu instance due to connection reset by peer. #9427
Comments
I tried to capture tcpdumps in order to analyze what is happening. Here's a brief overview https://gist.github.com/phr34k/334c1c34fd519165cfede0eeaf382e7b with link to pcap files. Honestly, I think the traffic between windows and ubuntu seems quite normal: retransmission of packets between 2% and 3% - but between ubuntu and lxc something odd is happening the number of packets is doubling and retransmission spikes to about 23% This seems consistent with my findings that:
Is there any thing on the wsl side e.g. the network stack or wsl specific network drivers that could explain the that I'm seeing? |
Related to #8358? |
@LongLiveCHIEF not sure, from the description of that issue it looks like curl hangs directly on the wsl instance whereas mine distinctively fails only inside the lxd container. I suspect there might be something going on with the network stack that has maybe been modified for wsl. |
This issue has been automatically closed since it has not had any activity for the past year. If you're still experiencing this issue please re-file this as a new issue or feature request. Thank you! |
Version
Microsoft Windows [Version 10.0.19044.2364]
WSL Version
Kernel Version
5.15.79.1
Distro Version
Ubuntu 22.10
Other Software
LXD (5.9-76c110d)
curl (7.81.0)
Repro Steps
I'm using snapcraft in wsl for software development of snaps, internally snapcraft uses lxd (i.e. snapcraft --use-lxd) to run commands inside containers. When using a command that fetches a large network resource like a
git clone
orflutter precache
, I pretty much always get peer disconnects. For brievity I've reproduced this behavior with a minimum example. For more details see: https://stackoverflow.com/questions/74989653/how-to-fix-unstable-network-for-lxc-lxd-container-that-causes-curl-git-commands# shutdown and reboot the vm wsl.exe --shutdown
Expected Behavior
curl and git exit without problems e.g.
Actual Behavior
The behavior is intermittant, but curl, git and others terminate the download(s) due to a peer disconnected error. The behavior seems affected by the internet connection i.e. I had one wireless networks the problem doesn't occur at all, and two others where the problem persistantly is occuring.
Diagnostic Logs
I've already tried:
The text was updated successfully, but these errors were encountered: