doni49
Posts: 94
Joined: Wed Jan 23, 2013 4:59 pm

RSync failures......

Tue Jun 04, 2013 1:44 am

RasPiHomeNAS: has a 2TB USB HDD mounted as /media/USBHDD1.
RasPiOfficeNAS: has a 2TB USB HDD mounted as /media/USBHDD1.

Both are connected to my network.

Code: Select all

pi@RasPiOfficeNas /media/USBHDD1/shares $ rsync -avz pi@RasPiHomeNAS:/media/USBHDD1/shares /media/USBHDD1/shares/
pi@raspihomenas's password:
Throws the following error message.
rsync error: received SIGINT, SIGTERM, or SIGHUP (code 20) at rsync.c(549) [Receiver=3.0.9]
Can anyone offer any insight on this error?

doni49
Posts: 94
Joined: Wed Jan 23, 2013 4:59 pm

Re: RSync failures......

Wed Jun 05, 2013 12:09 am

I've continued to search and troubleshoot.

I found a thread (on a samba site) indicating that this error message occurs when one side of the connection ends the transfer abruptly. The thread suggested NOT using verbose.

Here's a link to the thread.
http://lists.samba.org/archive/rsync/20 ... 01550.html

I tried it again without verbose. When I used the n option, it ran without errors. So I tried it again without n. Following is the command line I entered (in the code field) and the resulting error message (in the quote). These are copy/pasted.

Code: Select all

pi@RasPiOfficeNas ~ $ sudo rsync -a pi@RasPiHomeNAS:/media/USBHDD1/shares /media/USBHDD1/shares
pi@raspihomenas's password:
rsync: recv_generator: mkdir "/media/USBHDD1/shares/shares" failed: Input/output error (5)
*** Skipping any contents from this failed directory ***
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1536) [generator=3.0.9]

doni49
Posts: 94
Joined: Wed Jan 23, 2013 4:59 pm

Re: RSync failures......

Thu Jun 06, 2013 1:45 am

I finally solved the issue and thought I'd come back here and post the cause in case someone else ever has to deal with this too.

In all the information that I had read regarding RSync, I had never read anything that talked about having to have RSync on BOTH hosts. But I got to thinking about something tonight: "RSync uses a special algorithm to decide which files need copied. So RSync probably needs to be on both machines. So I installed RSync on the second RasPi. RSync is now working.

Return to “Raspberry Pi OS”