Hello. My laptop runs XP Home SP3 and my workstation XP Prof. SP3. I use Cygwin and rsync to sync my files to a Debian 4.0 server which runs rsync 2.6.9 in daemon mode. It had always worked quite will until I upgraded to Cygwin 1.7.x (the laptop runs Cygwin 1.7.4 and the workstation 1.7.5 with rsync 3.0.7) I use rsync -av --progress --delete foouser at 192.168.0.xxx::foo_user_files/ to sync the changes on the server down to a client. (There are over 30e3 files to sync.) If foo_user_files is empty and rsync has to copy all the files it stops after maybe 50...200 files at an arbitrary file. (No disk activity, no network acttivity, nearly no CPU usage.) It just ceases copying and after some time (seconds to minutes) it copyies another some files until it stops again. Well, copying/syncing all the 30e3 files would take forever. The problem may be related to the following post: http://www.mail-archive.com/rsync at lists.samba.org/msg25266.html Which is the only hint I've found but doesn't show how to solve the problem. I tested the connection with an Ubuntu installation to make sure that the rsync server is ok and it works like a charm there. I've just set up a network drive and tried "disk"-to-disk sync on the client side, but it seems to stall after about 9000 transfers, too. Interestingly it seems to stall always at the same files with this test setup and the transfer rate goes down from some MB/s to some kb/s. Very strange. (I don't know if this is rsync's fault or there's some problem with samba or XP or..., but it may be a hint. Maybe it is another story.) I can use strace if you tell me where to put the output, or something else you want me to try, because if I don't find a solution, I'll have to find another way to sync my files, because Cygwin 1.7 seems to have rendered rsync totally useless to me. Should I have sent this to a Cygwin mailing list instead (or too)? Well, I don't know. mfg Wiesner Thomas
Wiesner Thomas wrote:> Hello. > My laptop runs XP Home SP3 and my workstation XP Prof. SP3. > > I use Cygwin and rsync to sync my files to a Debian 4.0 server which > runs rsync 2.6.9 in daemon mode. > > It had always worked quite will until I upgraded to Cygwin 1.7.x > (the laptop runs Cygwin 1.7.4 and the workstation 1.7.5 with rsync 3.0.7) > > The problem may be related to the following post: > http://www.mail-archive.com/rsync at lists.samba.org/msg25266.html > Which is the only hint I've found but doesn't show how to solve the > problem....> I can use strace if you tell me where to put the output, or something > else you want me to try, because if I don't find a solution, I'll have > to find another way to sync my files, because Cygwin 1.7 seems to have > rendered rsync totally useless to me. > > Should I have sent this to a Cygwin mailing list instead (or too)? > Well, I don't know.If I've understood the cygwin strace output from the link you posted, it hangs in the middle of a writev call. (The previous writev call has two lines - the first looks like entry to cygwin, second looks like it returning). Just hanging in the middle of writev could be one of two things: 1. A bug in Cygwin. 2. Or rsync writing to a socket which is full because the other end isn't reading. That could be a deadlock bug in rsync, or a bug in Cygwin at the reading side. To distinguish between them, a Wireshark trace of the TCP session along with the "strace -f" output from _both_ sides would be enough to give a definitive answer. (I'm not sure if Cygwin strace has "-f": use the option which means "trace all forked child processes"). Sorry, but I'm not volunteering to analyse the logs, this is just a pointer. -- Jamie
Maybe Matching Threads
- Share root directory appears in subdirectories. (Well, can't actually see it but can cd into it, even if its not there.) (Serious bug?)
- cygwin 1.7.x rsync 3.0.6 hangs at arbitrary reproducible points in transfers
- Re: [vorbis-dev] ACM codec
- [libnbd PATCH v3 07/29] lib/utils: add async-signal-safe assert()
- smbd's using up 100% of all cpu's and load avg slowly going up