-
Notifications
You must be signed in to change notification settings - Fork 814
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
Re-open #2138, #11112 - WSL hangs on rsync/ssh #11157
Comments
Hi I'm an AI powered bot that finds similar issues based off the issue title. Please 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. Thank you! Open similar issues:
Closed similar issues:
|
I still have this problem. I don't know why this issue was closed. |
I reopened to the original issue, thank you for filing this and letting us know! |
Getting exacly the same problem. rsync hangs indefinitely after a minute or even a few seconds. With the -v option the last output is always like. ( always starting with 32,768 0% ) |
... the workaround ( while killall -CHLD ssh; do sleep 0.1; done ) works for me too. |
Windows Version
Microsoft Windows [Version 10.0.22621.3085]
WSL Version
2.0.9.0
Are you using WSL 1 or WSL 2?
Kernel Version
Linux version 4.4.0-19041-Microsoft ([email protected]) (gcc version 5.4.0 (GCC) ) #3996-Microsoft Thu Jan 18 16:36:00 PST 2024
Distro Version
Ubuntu 20.04
Other Software
Copying via ssh/rsync to another WSL instance, this one is WSL 2.0.9.0 on windows 10.0.19045.3996
Repro Steps
I run a script to
rsync
several files from one computer to another:rsync --log-file=log.log -aiv --delete [email protected]:/mnt/c/dir .
The target computer is running
sshd
, with public key authentication (Ed25519-only).Expected Behavior
The
rsync
process should run to completion.Expected Behavior
The
rsync
process should run to completion.Actual Behavior
The
rsync
process should run to completion.Actual Behavior
After a couple of minutes (so, after transferring ~ few GiB or thousands of files -- I have seen it fail with few large files, and also fail with thousands of small files), the
rsync
process hangs. This is evidenced by:rsync
process consuming no more CPUrsync
process still visible in the process tableThe work-around I have for this, and have been using for years now, is to spawn in parallel a script that runs this:
while killall -CHLD ssh; do sleep 0.1; done
However, as recently as last month I forgot to spawn that and had an incomplete
rsync
several hours later (I seem to recall thersync
actually terminated with an error eventually, without copying all the files).The prior issue #2138 has been open for a while and I have been holding out hoping there would be a fix for this, someday. The "keep killing SSH" helper process is a viable work-around but if I forget to run it, things fail.
Would really like my
rsync
to be more reliable...or at least have some satisfying explanation of root cause and why this might be specific just torsync
and not indicative of structural unsoundness inside WSL leading to race conditions.Diagnostic Logs
Running
strace -f
on the job returns the following log, truncated to the last few megabytes because otherwise this would be a gigabyte-sized log. If you want the whole 643MiB ball of wax let me know.submission-log.txt
Here's probably the relevant snippet of the log:
The text was updated successfully, but these errors were encountered: