From: Mark S. <ma...@al...> - 2008-02-27 05:01:42
|
Les Mikesell wrote: > Mark Sopuch wrote: >> Hi, >> >> When I run rsync manually from either direction of our WAN link to >> our remote office without the --server --sender options the copy >> works fine but when I allow BackupPC to do it's thing using --server >> --sender it reports the following error without performing the backup: >> >> full backup started for directory / >> Running: /usr/bin/ssh -q -x -l root hostname.remote nice -n 19 >> /usr/bin/rsync --server --sender --numeric-ids --perms --owner >> --group -D --links --hard-links --times --block-size=2048 --recursive >> --ignore-times . / >> Xfer PIDs are now 9528 >> Read EOF: Connection reset by peer >> Tried again: got 0 bytes >> Done: 0 files, 0 bytes >> Got fatal error during xfer (Unable to read 4 bytes) >> Backup aborted (Unable to read 4 bytes) >> >> The exact BackupPC host configuration I use for WAN rsync works on >> our LAN hosts without issue. I set all LAN and WAN hosts up using >> newhost=existinghost and just tweaked the ping timeouts for the WAN >> ones. >> >> What in a WAN arrangement might cause this situation? Why does >> BackupPC use --server --sender explicitly and not make them tunable >> from the CGI? > > Those are options to the remote rsync that you normally don't see - > but even the standard rsync passs them internally to its remote partner. > >> I searched the list for an answer but you'd be surprised how many >> context hits there are for standard rsync commands matching >> Connection reset by peer and --server --sender in BackupPC error log >> output! > > The 'connection reset by peer' is the error you would get if your ssh > keys aren't right. Are you sure you are running as the backuppc user > when you test the ssh connection and rsync command? > 2008-02-27 12:00:05 full backup started for directory / 2008-02-27 12:18:43 full backup 0 complete, 14674 files, 298943198 bytes, 0 xferErrs (0 bad files, 0 bad shares, 0 other) It worked ...once some apparent latency issues 'cleared themselves'. Thank you for your response Les and it would seem that the Error logs that I read the connection reset by peer message in have been recycled with new backup attempts so now in BackupPC I only have the Unable to read 4 bytes message to tell me that there is a problem link - kind of. On a side note, I think it'd be great if BackupPC extrapolated the commands it runs into a line in the standard logs and not just the error logs. I am sure someone would have suggested that before so ... ? -- Mark Animal Logic http://www.animallogic.com Please think of the environment before printing this email. This email and any attachments may be confidential and/or privileged. If you are not the intended recipient of this email, you must not disclose or use the information contained in it. Please notify the sender immediately and delete this document if you have received it in error. We do not guarantee this email is error or virus free. |