Hi all, I'm new to the rsync list. I've been searching for two days and have tried five different installs and so far none work the way I need them to. I have an "backup" server running rsync --version: rsync version 2.6.6 protocol version 29 Copyright (C) 1996-2005 by Andrew Tridgell and others <http://rsync.samba.org/> Capabilities: 64-bit files, socketpairs, hard links, ACLs, xattrs, symlinks, batchfiles, inplace, IPv6, 64-bit system inums, 64-bit internal inums And I'm trying to get my test box which is win2k to pull a copy of a backup from the server. Cygwin rsync --version (the last one I installed from minimal_rsync): rsync version 2.5.1-dev protocol version 26 Copyright (C) 1996-2002 by Andrew Tridgell and others <http://rsync.samba.org/> Capabilities: 32-bit files, socketpairs, hard links, symlinks, batchfiles, no IP v6, 32-bit system inums, 64-bit internal inums I tried a full blown cygwin install with rsync version 2.6.6 and had the same issues. Here's the client log (win2k trying to get files) C:\rsync-min>rsync -av 10.0.0.205::test/* ./backup receiving file list ... done rsync: connection unexpectedly closed (71 bytes read so far) rsync error: error in rsync protocol data stream (code 12) at io.c(139) rsync error: received SIGUSR1 or SIGINT (code 20) at main.c(779) Here's the server logs 2006/06/14 12:36:52 [31282] rsync on test/* from 10.0.2.137 (10.0.2.137) 2006/06/14 16:37:32 [31282] rsync: read error: Connection reset by peer (104) 2006/06/14 16:37:32 [31282] rsync error: error in rsync protocol data stream (code 12) at io.c(584) The odd thing is I can tranfer files from win2k to the server without any problems and I've had no problem from my other RH boxes getting files from the same RH server. If you need somemore info please let me know TIA Jason
On Wed, 2006-06-14 at 12:58 -0400, Jason Staudenmayer wrote:> C:\rsync-min>rsync -av 10.0.0.205::test/* ./backup > > receiving file list ... done > rsync: connection unexpectedly closed (71 bytes read so far) > rsync error: error in rsync protocol data stream (code 12) at io.c(139) > rsync error: received SIGUSR1 or SIGINT (code 20) at main.c(779) > > 2006/06/14 12:36:52 [31282] rsync on test/* from 10.0.2.137 (10.0.2.137) > 2006/06/14 16:37:32 [31282] rsync: read error: Connection reset by peer > (104) > 2006/06/14 16:37:32 [31282] rsync error: error in rsync protocol data > stream (code 12) at io.c(584)It looks like the network connection dropped, and that is likely to be out of rsync's control. See #3 on http://rsync.samba.org/issues.html for suggestions about what to try. In particular, you might want to upgrade the receiving rsync and strace both sides. Matt
I have tried every version I could find of rsync for cygwin and I get the same issue. I'm connecting over a switched 100MB Ethernet on a private network, so I don't believe the connection is being lost. I'm not familiar with strace how does one go about using that? Thanks Jason PS I can get the module list fine but once I move into a module to get the file list I get the list and then it dumps like before. -----Original Message----- From: Matt McCutchen [mailto:hashproduct@gmail.com] On Behalf Of Matt McCutchen Sent: Wednesday, June 14, 2006 9:47 PM To: Jason Staudenmayer Cc: rsync@lists.samba.org Subject: Re: Cygwin rsync to RH rsync server On Wed, 2006-06-14 at 12:58 -0400, Jason Staudenmayer wrote:> C:\rsync-min>rsync -av 10.0.0.205::test/* ./backup > > receiving file list ... done > rsync: connection unexpectedly closed (71 bytes read so far) > rsync error: error in rsync protocol data stream (code 12) atio.c(139)> rsync error: received SIGUSR1 or SIGINT (code 20) at main.c(779) > > 2006/06/14 12:36:52 [31282] rsync on test/* from 10.0.2.137(10.0.2.137)> 2006/06/14 16:37:32 [31282] rsync: read error: Connection reset bypeer> (104) > 2006/06/14 16:37:32 [31282] rsync error: error in rsync protocol data > stream (code 12) at io.c(584)It looks like the network connection dropped, and that is likely to be out of rsync's control. See #3 on http://rsync.samba.org/issues.html for suggestions about what to try. In particular, you might want to upgrade the receiving rsync and strace both sides. Matt
Ok, so it's a Cygwin issue. Might I ask if anyone on the list has a working cygwin/rsync combo they might be able to share. I've tried downloading some old cygwin versions but so far nothing has been working. Thanks Jason -----Original Message----- From: Matt McCutchen [mailto:hashproduct@gmail.com] On Behalf Of Matt McCutchen Sent: Monday, June 19, 2006 2:03 PM To: Jason Staudenmayer Cc: rsync@lists.samba.org Subject: RE: Cygwin rsync to RH rsync server On Thu, 2006-06-15 at 13:09 -0400, Jason Staudenmayer wrote:> Ok I updated both systems to rsync-2.6.8 and found the info on setting > strace on the server. Here are the trace logs, there are two calls the > first is just the module list which finishes normally the second isthe> file list in the test module which fails after the list.I'm sure Wayne is better at analyzing straces than I am (and he certainly knows more about the rsync protocol), but here's what I see for the second connection. The daemon sends the list (second line) and expects some kind of confirmation from the client, but it gets an EOF (return code of 0 on the last line) instead of the confirmation.> [pid 26647] select(4, NULL, [3], NULL, {60, 0}) = 1 (out [3], left{60,> 0}) > [pid 26647] write(3, > "7\0\0\7\1\1.\0\20\0\0RJ\220D\370A\0\0\200\10tst2.txtV\0"..., 59) = 59 > [pid 26647] select(4, [3], [], NULL, {60, 0}) = 1 (in [3], left {58, > 872000}) > [pid 26647] read(3, "\377\377\377\377", 8184) = 4 > [pid 26647] select(4, NULL, [3], NULL, {60, 0}) = 1 (out [3], left{60,> 0}) > [pid 26647] write(3, "\4\0\0\7\377\377\377\377", 8) = 8 > [pid 26647] select(4, [3], [], NULL, {60, 0}) = 1 (in [3], left {59, > 928000}) > [pid 26647] read(3, "", 8184) = 0I suspect that there's some aspect of the way the client closes down the connection that Cygwin is not handling properly. I don't know what to recommend. Matt
So you have it working with cygwin(svr) to cygwin(cli) transfers but not linux(svr) to cygwin(cli) Jason -----Original Message----- From: Chuck Wolber [mailto:chuckw@quantumlinux.com] Sent: Tuesday, June 20, 2006 5:35 PM To: Jason Staudenmayer Cc: Matt McCutchen; rsync@lists.samba.org Subject: RE: Cygwin rsync to RH rsync server On Tue, 20 Jun 2006, Jason Staudenmayer wrote:> Ok, so it's a Cygwin issue. Might I ask if anyone on the list has a > working cygwin/rsync combo they might be able to share. I've tried > downloading some old cygwin versions but so far nothing has been > working.We've gotten it to work, but only if the Cygwin side is serving up rsync shares (through rsyncd.conf). We still can't aribtrarily connect to an sshd running under cygwin and sync according to a path we specify. ..Chuck.. -- http://www.quantumlinux.com Quantum Linux Laboratories, LLC. ACCELERATING Business with Open Technology "The measure of the restoration lies in the extent to which we apply social values more noble than mere monetary profit." - FDR
On Fri, 23 Jun 2006, Jason Staudenmayer wrote:> So you have it working with cygwin(svr) to cygwin(cli) transfers but not > linux(svr) to cygwin(cli)No, we have it working where we have to set up a tunnel (via ssh) to the cygwin machine and then set up rsync as a daemon with paths pre-specified in rsyncd.conf. We want it to work where we can connect to the cygwin sshd service from a linux machine and start rsyncing an arbitrary path. ..Chuck.. -- http://www.quantumlinux.com Quantum Linux Laboratories, LLC. ACCELERATING Business with Open Technology "The measure of the restoration lies in the extent to which we apply social values more noble than mere monetary profit." - FDR
On Fri, 2006-06-23 at 07:45 -0700, Chuck Wolber wrote:> No, we have it working where we have to set up a tunnel (via ssh) to the > cygwin machine and then set up rsync as a daemon with paths pre-specified > in rsyncd.conf. We want it to work where we can connect to the cygwin sshd > service from a linux machine and start rsyncing an arbitrary path.An easy but possibly dangerous way to allow arbitrary paths is to give / as the path to the module. Then, from another computer, you can specify any desired path inside the module. Matt