BackupPC-users

Re: [BackupPC-users] rsync xfer error

2008-04-11 21:02:13
Subject: Re: [BackupPC-users] rsync xfer error
From: Mauro Condarelli <mc5686 AT mclink DOT it>
To: Tony Schreiner <schreian AT bc DOT edu>
Date: Sat, 12 Apr 2008 03:01:34 +0200
Tony Schreiner ha scritto:
> Mauro Condarelli wrote:
>> Hi,
>> I am trying to setup BackupPC to serve my small net.
>> The server is on an ubuntu/Linux machine.
>> I installed via synaptic.
>>
>> I did a couple of successful backups from localhost and from a remote
>> WinXP machine (the latter using smb).
>> I am a complete loss to backup my other Linux machine.
>> I am trying to use ssh+rsync but the transfer fails with the following log:
>> ----------------------------------
>> Contents of file
>> /media/backups/backuppc/pc/ambassador.soft-in.com/XferLOG.bad.z,
>> modified 2008-04-12 01:00:06 (Extracting only Errors)
>>
>> full backup started for directory /srv
>> Running: /usr/bin/ssh -q -x -l root ambassador.soft-in.com /usr/bin/rsync 
>> --server --sender --numeric-ids --perms --owner --group -D --links 
>> --hard-links --times --block-size=2048 --recursive --ignore-times . /srv/
>> Xfer PIDs are now 32530
>> Sending: 1c000000
>> Rsync command pid is 32530
>> Fetching remote protocol
>> Receiving: 1d000000
>> Got remote protocol 29
>> Negotiated protocol version 28
>> Receiving: 88edff47
>> Checksum seed is 1207954824
>> Got checksumSeed 0x47ffed88
>> Sending: 00000000
>> Receiving: 1400000719012e00100000935af547ed4100000000000000
>> Got file (0 of 1): .
>> Got file list: 1 entries
>> Child PID is 32532
>> Xfer PIDs are now 32530,32532
>> Sending csums, cnt = 1, phase = 0
>> Sending: ffffffff
>> Sending csums, cnt = 0, phase = 1
>> Receiving: 04000007ffffffff
>> attribSet(dir=, file=/srv)
>> [ skipped 1 lines ]
>> makePath(/media/backups/backuppc/pc/ambassador.soft-in.com/new//f%2fsrv/, 
>> 0777)
>> attribSet(dir=, file=/srv)
>> Finished deltaGet phase 0
>> Child is sending done
>> Got done from child
>> Sending: ffffffff
>> Receiving: 04000007ffffffff0c000007100000002400000000000000
>> Finished deltaGet phase 1
>> Got stats: 16 36 0 0 ('errorCnt' => 0,'ExistFileSize' => 0,'ExistFileCnt' => 
>> 0,'TotalFileCnt' => 0,'ExistFileCompSize' => 0,'TotalFileSize' => 0)
>> Sending: ffffffff
>> attribWrite(dir=) -> 
>> /media/backups/backuppc/pc/ambassador.soft-in.com/new//attrib
>> Got exit from child
>> Done: 0 files, 0 bytes
>> Got fatal error during xfer (No files dumped for share /srv)
>> Backup aborted (No files dumped for share /srv)
>>
>> ----------------------------------
>> I am at a complete loss to understand what's wrong.
>> I also tried to enter manually the above command ("/usr/bin/ssh -q -x -l
>> root ...") and to gather info replacing the -q with a -v :)
>>
>> The results are below:
>> ----------------------------------
>> ...
>> debug1: Server accepts key: pkalg ssh-rsa blen 277
>> debug1: read PEM private key done: type RSA
>> debug1: Authentication succeeded (publickey).
>> debug1: channel 0: new [client-session]
>> debug1: Entering interactive session.
>> debug1: Sending environment.
>> debug1: Sending env LANG = it_IT.UTF-8
>> debug1: Sending command: /usr/bin/rsync --server --sender --numeric-ids
>> --perms --owner --group -D --links --hard-links --times
>> --block-size=2048 --recursive --ignore-times . /srv/
>> ----------------------------------
>> It seems everything is ok up to the point where the actual rsync command
>> is issued, then everything stops (possibly waiting for something else).
>>
>> I should add that, due to a firewall between server and client, the
>> server can see the client, but not viceversa.
>> The problem is the server is on my internal local network, while the
>> client is my web server on the DMZ branch of the LAN.
>> This means that the server can initiate the ssh connection ok, but the
>> client cannot initiate a communication to the server by it's own accord.
>> I do not *think* this should be a problem, since the ssh tunnel is
>> working and should be used for rsync communication.
>>
>> Can someone help me, please?
>> I'm beginning to be a little desperate...
>>
>> TiA
>> Mauro
>>
>> P.S.: I tried sending another mail, but it disappeared, so I wrote
>> again, I hope You will not be flooded :)
>>
>> Regards
>> Mauro
>>
>>   
> There is a config variable called  BackupZeroFilesIsFatal.
> If that is set to 1, and your share is empty files, the backup will fail.
> 
> Set it to 0 or skip /srv.
> Tony
> 
Thanks,
That was it.
Now it is crunching (on another share).

Thanks again
Mauro

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
BackupPC-users mailing list
BackupPC-users AT lists.sourceforge DOT net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

<Prev in Thread] Current Thread [Next in Thread>