Giuliano Procida
2008-Oct-09 22:15 UTC
Possible 3.0.4 bug with -s (--protect-args) - protocol error
Hi. Two different hosts with 3.0.4 compiled from source, no patches. It seems fine except that -s causes protocol failures. See below. Local host is Sparc (Solaris 5.8), remote is Sparc (Solaris 5.10) or i686 Linux. Regards, Giuliano. userX@hostA$ /home/userX/tools/bin/rsync -v -v -v -v -v -n --rsync-path /home/userX/tools/bin/rsync -s . hostB: FILE_STRUCT_LEN=16, EXTRA_LEN=4 cmd=<NULL> machine=hostB user=<NULL> path= cmd[0]=ssh cmd[1]=hostB cmd[2]=/home/userX/tools/bin/rsync cmd[3]=--server cmd[4]=-svvvvvne.s cmd[5]=(NULL) cmd[6]=. cmd[7]opening connection using: ssh hostB /home/userX/tools/bin/rsync --server -svvvvvne.s note: iconv_open("646", "646") failed (22) -- using isprint() instead of iconv(). protected args: . FILE_STRUCT_LEN=16, EXTRA_LEN=4 (Server) Protocol versions: remote=7680, negotiated=30 protocol version mismatch -- is your shell clean? (see the rsync man page for an explanation) _exit_cleanup(code=2, file=compat.c, line=171): entered rsync error: protocol incompatibility (code 2) at compat.c(171) [receiver=3.0.4] _exit_cleanup(code=2, file=compat.c, line=171): about to call exit(2) (Client) Protocol versions: remote=30, negotiated=30 rsync: connection unexpectedly closed (4 bytes received so far) [sender] _exit_cleanup(code=12, file=io.c, line=632): entered rsync error: error in rsync protocol data stream (code 12) at io.c(632) [sender=3.0.4] _exit_cleanup(code=12, file=io.c, line=632): about to call exit(12) Local version: rsync version 3.0.4 protocol version 30 Copyright (C) 1996-2008 by Andrew Tridgell, Wayne Davison, and others. Web site: http://rsync.samba.org/ Capabilities: 64-bit files, 64-bit inums, 32-bit timestamps, 64-bit long ints, socketpairs, hardlinks, symlinks, no IPv6, batchfiles, inplace, append, ACLs, no xattrs, iconv, no symtimes rsync comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it under certain conditions. See the GNU General Public Licence for details. Remote version: rsync version 3.0.4 protocol version 30 Copyright (C) 1996-2008 by Andrew Tridgell, Wayne Davison, and others. Web site: http://rsync.samba.org/ Capabilities: 64-bit files, 64-bit inums, 32-bit timestamps, 64-bit long ints, socketpairs, hardlinks, symlinks, no IPv6, batchfiles, inplace, append, ACLs, no xattrs, iconv, no symtimes rsync comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it under certain conditions. See the GNU General Public Licence for details.
Matt McCutchen
2008-Oct-10 00:40 UTC
Possible 3.0.4 bug with -s (--protect-args) - protocol error
On Thu, 2008-10-09 at 18:44 +0100, Giuliano Procida wrote:> Two different hosts with 3.0.4 compiled from source, no patches. > > It seems fine except that -s causes protocol failures. See below.I can reproduce this: matt@mattlaptop2:~ $ rsync -n . localhost: skipping directory . matt@mattlaptop2:~ $ rsync -s -n . localhost: protocol version mismatch -- is your shell clean? (see the rsync man page for an explanation) rsync error: protocol incompatibility (code 2) at compat.c(171) [receiver=3.0.4] rsync: connection unexpectedly closed (4 bytes received so far) [sender] rsync error: error in rsync protocol data stream (code 12) at io.c(632) [sender=3.0.4] I'll look into it when I get a chance. Matt
Wayne Davison
2008-Oct-11 17:32 UTC
Possible 3.0.4 bug with -s (--protect-args) - protocol error
On Thu, Oct 09, 2008 at 06:44:20PM +0100, Giuliano Procida wrote:> (Server) Protocol versions: remote=7680, negotiated=30 > protocol version mismatch -- is your shell clean?This will be fixed in the next version. Until then, you can work around the problem by supplying a "." after the "host:" arg: rsync -av -s . hostB:. ..wayne..
Maybe Matching Threads
- --partial does not "unhide" the files
- Problems transferring from older version of rsync to new
- --partial does not "unhide" the files
- rsync: connection unexpectedly closed (0 bytes received so far)
- protect rule prevents file sending when in merge filter file?