chuang liu
2008-Feb-16 01:28 UTC
rsync: connection unexpectedly closed (0 bytes received so far) [receiver]
Hi all: I am trying to transfer a file from a machine A to a machine B. I ran a rsync deamon on machine B at a given port. Because there is a firewall between these two machines, I opened the port on the firewall. Is this enough to get rsync work through firewall? When I tried the transfer, I got the following error messages. my command: rsync -a --copy-links localfile rsync:://me@<my IP>:<port>/<module>/test.dat In the client side, the error messages are rsync: Unknown host rsync: connection unexpectedly closed (0 bytes read so far) rsync error: error in rsync protocol data stream (code 12) at io.c(151) In the rsync daemon log: 2008/02/15 23:23:56 [5226] rsync: connection unexpectedly closed (0 bytes received so far) [receiver] 2008/02/15 23:23:56 [5226] rsync error: error in rsync protocol data stream (code 12) at io.c(420)>From the daemon log, it looks like the sever did get the connection fromthe client, but the server lost the connection right away. Does anyone have any idea what went wrong? Thanks a lot. Chuang ---------------- my rsyncd configuration uid = me gid = me use chroot = no #max connections = 4 syslog facility = local5 lock file = /local/rsync/rsyncd.lock log file = /local/rsync/rsyncd.log pid file = /local/rsync/rsyncd.pid motd file = /local/rsync/rsyncd.motd read only = false write only = false [silo] path = /local/rsyncdata comment = silo data area
Matt McCutchen
2008-Feb-16 04:01 UTC
rsync: connection unexpectedly closed (0 bytes received so far) [receiver]
On Fri, 2008-02-15 at 19:28 -0600, chuang liu wrote:> I am trying to transfer a file from a machine A to a machine B. I ran > a rsync deamon on machine B at a given port. Because there is a firewall > between these two machines, I opened the port on the firewall. Is this > enough to get rsync work through firewall? > > When I tried the transfer, I got the following error messages. > > my command: > rsync -a --copy-links localfile rsync:://me@<my > IP>:<port>/<module>/test.dat > > In the client side, the error messages are > > rsync: Unknown host > rsync: connection unexpectedly closed (0 bytes read so far) > rsync error: error in rsync protocol data stream (code 12) at io.c(151)An rsync:// URL should have a single colon. Since you used two colons, rsync parsed the destination as the path "//me@<my IP>:<port>/<module>/test.dat" on the daemon on host "rsync", hence the "rsync: Unknown host" message. Get rid of the extra colon. Matt
chuang liu
2008-Feb-17 10:17 UTC
rsync: connection unexpectedly closed (0 bytes received so far) [receiver]
Hi: Thanks a lot for your reponse. I put one colon when I ran the command, but typed two colons in the email. I did a few more tests, and found some strange behaviors of rsync. If I put the address rsync://URL in the src, rsync works fine. But if I put it as the destination, rsync fails. If I use another format <hostname>::<module> for the destination, rsync works. ---------------------------- bash-2.05a$ rsync -v rsync://10.46.62.130:34913/silo/t4.dat what.dat what.dat wrote 81 bytes read 182 bytes 526.00 bytes/sec total size is 80 speedup is 0.30 bash-2.05a$ rsync -v what.dat rsync://10.46.62.130:34913/silo/t4.dat rsync: Unknown host rsync: connection unexpectedly closed (0 bytes read so far) rsync error: error in rsync protocol data stream (code 12) at io.c(151) bash-2.05a$ rsync -v --port=34913 what.dat 10.46.62.130::silo/t4.dat \what.dat wrote 119 bytes read 63 bytes 364.00 bytes/sec total size is 80 speedup is 0.44 --------------------- I used a very old rsync (version 2.5.4, prototocl version 26). Is this a known issue with this version? Did I use rsync incorrectly? Thanks. Chuang On Fri, 15 Feb 2008, Matt McCutchen wrote:> On Fri, 2008-02-15 at 19:28 -0600, chuang liu wrote: > > I am trying to transfer a file from a machine A to a machine B. I ran > > a rsync deamon on machine B at a given port. Because there is a firewall > > between these two machines, I opened the port on the firewall. Is this > > enough to get rsync work through firewall? > > > > When I tried the transfer, I got the following error messages. > > > > my command: > > rsync -a --copy-links localfile rsync:://me@<my > > IP>:<port>/<module>/test.dat > > > > In the client side, the error messages are > > > > rsync: Unknown host > > rsync: connection unexpectedly closed (0 bytes read so far) > > rsync error: error in rsync protocol data stream (code 12) at io.c(151) > > An rsync:// URL should have a single colon. Since you used two colons, > rsync parsed the destination as the path "//me@<my > IP>:<port>/<module>/test.dat" on the daemon on host "rsync", hence the > "rsync: Unknown host" message. Get rid of the extra colon. > > Matt > > >
Matt McCutchen
2008-Feb-17 15:23 UTC
rsync: connection unexpectedly closed (0 bytes received so far) [receiver]
On Sun, 2008-02-17 at 04:16 -0600, chuang liu wrote:> I did a few more tests, and found some strange behaviors of rsync. If I > put the address rsync://URL in the src, rsync works fine. But if I put it > as the destination, rsync fails. If I use another format > <hostname>::<module> for the destination, rsync works.> I used a very old rsync (version 2.5.4, prototocl version 26). Is this a > known issue with this version? Did I use rsync incorrectly?According to OLDNEWS, support for the rsync:// syntax for the destination was added in rsync 2.5.6, so yes, it is a "known issue". Matt
Maybe Matching Threads
- error "rsync: connection unexpectedly closed (0 bytes received so far)"
- rsync: connection unexpectedly closed (0 bytes received so far)
- DO NOT REPLY [Bug 3646] New: rsync: connection unexpectedly closed (3207118 bytes received so far) [generator]
- Question about silos and Authentication policies
- Question about silos and Authentication policies