rsync error: error in rsync protocol data stream (code 12) at io.c(140)

Dave Dykstra dwd at bell-labs.com
Thu Feb 28 05:54:15 EST 2002


The rsync code that prints that error on line 270 of receiver.c is printing
strerror(errno), and that error message "Success:12" looks very strange to
me.  If the 12 indicates errno, that's an ENOMEM error.  Is your system out
of virtual address space?  Maybe it is so low on memory that it's printing
the default error message "Success" rather the real one.  An argument against
the out-of-virtual-memory theory is that I don't see write_file() calling
malloc as a side effect anywhere.  Maybe the kernel itself is out of memory.

- Dave


On Wed, Feb 27, 2002 at 11:29:44AM +0000, Andrew McGregor wrote:
> Hi,
> 
> I have installed 2.5.3pre1 but have (virtually) the same error:
> 
> | write failed on large_file2 : Success:12
> | rsync error: error in file IO (code 11) at receiver.c(271)
> | rsync: connection unexpectedly closed (201 bytes read so far)
> | rsync error: error in rsync protocol data stream (code 12) at
> io.c(151)
> 
> The command I run is:
> 
> | andrewm at massachusetts:~/test-rsync$ rsync -v --progress
> conn:/home/andrewm/test-rsync/tree/* /home/andrewm/test-rsync/rsh_tree/
> 
> Are there other debug options I can use?  Or possibly compile the source
> differently to help prove/disprove this as a bug/local system problem?
> 
> Regards
> 
> Andrew McGregor
> 
> Dave Dykstra wrote:
> > 
> > I haven't seen that symptom, but there's a very serious bug in rsync 2.5.2
> > that could conceivably be causing that.  I suggest using version 2.5.3pre1
> > from the "preview" directory in the rsync sources area at rsync.samba.org.
> > It is possible that Debian has already put out their own 2.5.2 that has the
> > very bad bug solved though, I'm not sure.
> > 
> > - Dave Dykstra
> > 
> > On Tue, Feb 26, 2002 at 05:55:24PM +0000, Andrew McGregor wrote:
> > > Hello,
> > >
> > > I am getting the following error:
> > >
> > > | rsync: open connection using rsh conn /usr/bin/rsync --server --sender
> > > -v . "/home/andrewm/test-rsync/tree/*"
> > > | large_file2
> > > | write failed on large_file2 : Success:06
> > > | rsync error: error in file IO (code 11) at receiver.c(271)
> > > | rsync: connection unexpectedly closed (201 bytes read so far)
> > > | rsync error: error in rsync protocol data stream (code 12) at
> > > io.c(140)
> > >
> > > I have only just subscribed to this mailing list, so apologies if I have
> > > missed any discussion on this topic.  A MHonArc conversion of rsync.mbox
> > > (from rsync.samba.org) suggests I have.  The 'patch' that has been
> > > mentioned, does it relate to this?  If so, has it been applied to the
> > > source available at: rsync.samba.org?  Else, how can I get hold of it
> > > and apply it?
> > >
> > > FYI:
> > >
> > > | andrewm at massachusetts:~/test-rsync$ rsync --version
> > > | rsync  version 2.5.2  protocol version 26
> > > | Copyright (C) 1996-2002 by Andrew Tridgell and others
> > > | <http://rsync.samba.org/>
> > > | Capabilities: 64-bit files, socketpairs, hard links, symlinks,
> > > batchfiles, IPv6,
> > > |               64-bit system inums, 64-bit internal inums
> > >
> > > rsync was installed from Debian's 'testing' packages, i.e. not from
> > > source.
> > >
> > > | andrewm at connecticut:~$ ls -ltr /home/andrewm/test-rsync/tree/
> > > | total 1425384
> > > | -rw-r--r--    1 andrewm  staff    80999190 Feb 25 16:56 large_file2
> > > <snip> 18 files, all the same size, all ascii randomish text just for
> > > testing.
> > >
> > > The files I intend to transfer don't need to be hidden from prying eyes,
> > > but would I benefit from using `ssh' as a more resilient method of
> > > communication than `rsh'?
> > >
> > > Any comments appreciated.
> > >
> > > Regards
> > >
> > > Andrew McGregor
> > >
> > > --
> > > To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync
> > > Before posting, read: http://www.tuxedo.org/~esr/faqs/smart-questions.html
> > 
> > --
> > To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync
> > Before posting, read: http://www.tuxedo.org/~esr/faqs/smart-questions.html
> 
> -- 
> To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync
> Before posting, read: http://www.tuxedo.org/~esr/faqs/smart-questions.html




More information about the rsync mailing list