Well, you'd expect the error message to tell you it's a read-only module, wouldn't you. Instead, it makes it look like the rsyncd isn't even there. in your module, add a line that says "read only = no". I agree that the error message could be clearer. It doesn't even complain in the server log. It looks like it just ends if you try to write to a readonly, without further ado. In a trace on the client side, it just gets "read(4, 0xFFBE5A90, 4) Err#131 ECONNRESET". In my tests here, i found that if i was tracing the rsyncd, i get an error message. if not, i don't. sounds like a race condition maybe. +++++++++++++++++++++not tracing++++++++++++++++++++++++++++++++++++ >rsync rsync.h alta::ro rsync: read error: Connection reset by peer rsync error: error in rsync protocol data stream (code 12) at io.c(151) tconway@atlas:/users/tconway/encap/src/rsync-2.4.7pre1.20011001 ++++++++++++++++++initiate tracing on alta++++++++++++++++++++++++++++++ >rsync rsync.h alta::ro ERROR: module is read only rsync error: syntax or usage error (code 1) at main.c(414) rsync: connection unexpectedly closed (28 bytes read so far) rsync error: error in rsync protocol data stream (code 12) at io.c(139) tconway@atlas:/users/tconway/encap/src/rsync-2.4.7pre1.20011001 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Here it is again running off the latest cvs release tconway@atlas:/users/tconway/encap/src/rsync-2.4.7pre1.20011001 >/cadappl/encap/packages/rsync-cvs/bin/rsync rsync.h alta::ro rsync: read error: Connection reset by peer rsync error: error in rsync protocol data stream (code 12) at ../../../../rsync-2.5.1pre3/io.c(151) tconway@atlas:/users/tconway/encap/src/rsync-2.4.7pre1.20011001 ++++++++++++++++++initiate tracing on alta++++++++++++++++++++++++++++++ >/cadappl/encap/packages/rsync-cvs/bin/rsync rsync.h alta::ro ERROR: module is read only rsync error: syntax or usage error (code 1) at ../../../../rsync-2.5.1pre3/main.c(414) rsync: connection unexpectedly closed (28 bytes read so far) rsync error: error in rsync protocol data stream (code 12) at ../../../../rsync-2.5.1pre3/io.c(139) tconway@atlas:/users/tconway/encap/src/rsync-2.4.7pre1.20011001 >/cadappl/encap/packages/rsync-cvs/bin/rsync --version rsync version 2.5.1pre3 protocol version 25 Copyright (C) 1996-2001 by Andrew Tridgell and others <http://rsync.samba.org/> Capabilities: 64-bit files, socketpairs, hard links, symlinks, batchfiles, no IPv6
tconway@atlas:/users/tconway/encap/src/rsync-2.4.7pre1.20011001 > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ I'm CCing the list so they know the progress of your problem, know about this error problem, and may bring other insights. In your first message, you'd indicated successful writing, so i didn't address this issue. Nonetheless, as the manpage says, one or the other MUST be local. Wayne, Martin, Dave: any ideas on the error message? I can't see what happens in the execution if i don't trace it, because i'm not tracing it. Tim Conway [EMAIL PROTECTED] 303.682.4917 Philips Semiconductor - Longmont TC 1880 Industrial Circle, Suite D Longmont, CO 80501 Available via SameTime Connect within Philips, n9hmg on AIM perl -e 'print pack(nnnnnnnnnnnn, 19061,29556,8289,28271,29800,25970,8304,25970,27680,26721,25451,25970), ".\n" ' "There are some who call me.... Tim?" Gautam Ganesh <[EMAIL PROTECTED]> 02/18/2002 02:46 PM To: Tim Conway/LMT/SC/PHILIPS@AMEC cc: Subject: Re: push data instead of pull Classification: rsync -avz /tmp/test xhost::test where "test" is a module. When i copy from local machine to remote server i get this error message. rsync: read error: Connection reset by peer rsync error: error in rsync protocol data stream (code 12) at io.c(152) gautam --- [EMAIL PROTECTED] wrote: > It won't go. only either the source or the > destination can be remote. In > your examples, you pretty much duplicate the > documentation on the same > topic: > ++++++++++++++++++++++++++++++++++++++++++++++++++++ > GENERAL > There are six different ways of using rsync. > They are: > > > > > > SunOS 5.7 Last change: 29 May 2001 > 1 > > > > > > > User Commands > rsync(1) > > > > o for copying local files. This is invoked > when neither > source nor destination path contains a : > separator > > > > o for copying from the local machine to a > remote machine > using a remote shell program as the > transport (such as > rsh or ssh). This is invoked when the > destination path > contains a single : separator. > > > > o for copying from a remote machine to the > local machine > using a remote shell program. This is > invoked when the > source contains a : separator. > > > > o for copying from a remote rsync server > to the local > machine. This is invoked when the source > path contains > a :: separator or a rsync:// URL. > > > > o for copying from the local machine to a > remote rsync > server. This is invoked when the > destination path con- > tains a :: separator. > > > > o for listing files on a remote machine. > This is done the > same way as rsync transfers except that > you leave off > the local destination. > > Note that in all cases (other than listing) at > least one of > the source and destination paths must be local. > ++++++++++++++++++++++++++++++++++++++++++++++++++++ > Handy things, those man pages... > > Tim Conway > [EMAIL PROTECTED] > 303.682.4917 > Philips Semiconductor - Longmont TC > 1880 Industrial Circle, Suite D > Longmont, CO 80501 > Available via SameTime Connect within Philips, n9hmg > on AIM > perl -e 'print pack(nnnnnnnnnnnn, > 19061,29556,8289,28271,29800,25970,8304,25970,27680,26721,25451,25970), > > ".\n" ' > "There are some who call me.... Tim?" > > > > > Gautam Ganesh <[EMAIL PROTECTED]> > Sent by: [EMAIL PROTECTED] > 02/18/2002 01:26 PM > > > To: [EMAIL PROTECTED] > cc: (bcc: Tim Conway/LMT/SC/PHILIPS) > Subject: push data instead of pull > Classification: > > > > Hi, > > I have a rsync server set up. > > Can i push data from the server to another machine > instead of pulling data from that machine. > > when i try to do that i get this error. > > mkdir tohost:/tmp ; No such file or directory. > > But the directory exists. This is the command i > executed. > > rsync -avz --rsync-path=/usr/bin/rsync > fromhost::test tohost:/tmp > > This works fine if iam logged onto "tohost" and pull > data i.e > > rsync -avz --rsync-path=/usr/bin/rsync > fromhost::test /tmp > > This works fine if i do it without the server > > rsync -avz --rsync-path=/usr/bin/rsync > /disk1/tmp tohost:/tmp > > I execute the above command logged on to the > "fromhost" > machine. > > > let me know if iam doing anything wrong. > > thanks > > gautam ganesh > > > __________________________________________________ > Do You Yahoo!? > Yahoo! Sports - Coverage of the 2002 Olympic Games > http://sports.yahoo.com > > > > __________________________________________________ Do You Yahoo!? Yahoo! Sports - Coverage of the 2002 Olympic Games http://sports.yahoo.com