Bug 3363 - rsync gets stuck on first file
rsync gets stuck on first file
Status: RESOLVED LATER
Product: rsync
Classification: Unclassified
Component: core
2.6.6
x86 Windows XP
: P3 normal
: ---
Assigned To: Wayne Davison
Rsync QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-12-30 14:16 UTC by domulys
Modified: 2006-01-02 09:16 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description domulys 2005-12-30 14:16:27 UTC
I'm trying to use rsync to copy several pictures from my work computer (xxx.xxx.xxx.edu) to my home computer.  I'm using cygwin.  This is what I run on my home computer:

  $ rsync -avu --progress Michael@xxx.xxx.xxx.edu:"My\ Pictures/" .

It successfully creates the first few directories, but when it starts on the first file, it seems to get stuck.  The progress bar stays at all zeros, and it doesn't seem to be using any CPU.

  Michael@xxx.xxx.xxx.edu's password:
  receiving file list ...
  1986 files to consider
  ./
  2004/
  2004/2004_10_03_Hoosiers/
  2004/2004_10_03_Hoosiers/IMG_1096.jpg
           0   0%    0.00kB/s    0:00:00

I don't think I'm doing anything unusual or fancy... maybe there's something about my syntax that is wrong and I'm just not seeing it.
Comment 1 Wayne Davison 2006-01-02 09:16:22 UTC
The problem you're encountering is that pipes in cygwin lose data, and rsync hangs waiting for that missing data to arrive.  Once cygwin gets their pipe code fixed, rsync will work fine on cygwin.  In the meantime, you can avoid this problem by avoiding a remote-shell -- i.e. switch over to running a daemon and using daemon-mode's :: syntax (that may or may not be possible for you).

I'm resolving this as "LATER" because there is no other appropriate resolution that indicates that the bug lies not in rsync, but in the OS.  Later, we can verify that it is fixed (once this is fixed in cygwin).