Re: [BackupPC-users] Backuppc | Got fatal error during xfer (aborted by signal=PIPE)

2018-08-06 Thread Holger Parplies
Hi,

jerome winmedia wrote on 2018-08-06 15:29:45 +0200 [[BackupPC-users] Backuppc | 
Got fatal error during xfer (aborted by signal=PIPE)]:
> I am running backuppc version 3.3.1 on an Ubuntu 16.04.5 LTS, I try to
> backup several Linux servers, almost Debian, ubuntu or proxmox hosts.
> 
> My issue is that when I run the Full/Incermental backup from webUI I got
> the message:
> 
> 2018-08-06 14:22:32 full backup started for directory /var/lib/vz/dump/dump
> (baseline backup #1) 2018-08-06 14:22:33 Aborting backup up after signal
> PIPE 2018-08-06 14:22:34 Got fatal error during xfer (aborted by
> signal=PIPE) <

this is a very generic error message, about as specific as "something went
wrong", but it turns out to be quite obvious, if you look close enough (and
thank you for providing all the necessary information for making that
possible!):

> [...]
> Running: /usr/bin/ssh -o ServerAliveInterval=300 -q -x -l root HOST 
> /usr/bin/rsync --server --sender --protocol=29 --numeric-ids --perms --owner 
> --group -D --links --hard-links --times --block-size=2048 --ignore-times . 
> /var/lib/vz/dump/dump/

You ignored the comment about $Conf{RsyncArgs} - "Do not edit the first set
unless you have a thorough understanding of how File::RsyncP works". I
strongly doubt you should be setting "--protocol=29", but thank you for
doing so and thereby making me have a closer look at the rsync arguments.
"--protocol=29" is probably not the problem *here* (it may well be if that
is not what would be automatically selected anyway), but rather what is
*missing*: "--recursive". If you continue looking, you'll notice:

> Remote[2]: skipping directory .

... and with that the backup was finished, as far as the remote rsync was
concerned. It was supposed to non-recursively backup a directory, which
means "do nothing". It did exactly that. BackupPC, on the other hand, was
expecting more than this.

Re-add "--recursive" to $Conf {RsyncArgs}. I doubt you meant to remove it
in the first place. Better yet, don't set $Conf {RsyncArgs} in your HOST.pl
and don't change the default in config.pl. There should very rarely be any
reason to do so (except for adding "--checksum-seed=32761", and even that
might be better placed in $Conf {RsyncArgsExtra}).

> [...]
> When I run the rsync command manually, the backup is started correctly:
> 
> rsync -av -e ssh root@HOST:/var/lib/vz/dump/dump 
> /mnt/backuppc/backuppc/pc/pHOST/2<

Well, yes, it's a different command, isn't it? Note that you should *not*
really be using a BackupPC host directory as target for a plain rsync command.
That is *not* the same as what BackupPC does! Be sure to remove that directory
after testing.

Hope that helps.

Regards,
Holger

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


Re: [BackupPC-users] backup in a special scenario

2018-08-06 Thread Kris Lou via BackupPC-users
Michael is being too modest to link to his own implementation for Windows
clients, so I'll do it for him:  http://www.michaelstowe.com/backuppc/

Just a note:  This leverages the administrative share (C$) via
smbclient/winexe to kick off rsyncd on the client.  As such, the backuppc
server requires Domain Admin credentials, and rsync traffic is not wrapped
in SSH.

Though I'm sure you can wrangle around all of that if you like.
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


[BackupPC-users] Backuppc | Got fatal error during xfer (aborted by signal=PIPE)

2018-08-06 Thread jerome winmedia
I am running backuppc version 3.3.1 on an Ubuntu 16.04.5 LTS, I try to
backup several Linux servers, almost Debian, ubuntu or proxmox hosts.

My issue is that when I run the Full/Incermental backup from webUI I got
the message:

2018-08-06 14:22:32 full backup started for directory /var/lib/vz/dump/dump
(baseline backup #1) 2018-08-06 14:22:33 Aborting backup up after signal
PIPE 2018-08-06 14:22:34 Got fatal error during xfer (aborted by
signal=PIPE) <

My backup drive is a nfs drive which is mounted as /mnt/backuppc and topdir
for backuppc is /mnt/backuppc/backuppc I am able to write into it with user
backuppc and/or root.

I went through several documentations and here are what I have done for
debugging.

ssh -l root domain whoami root

su
su -s /bin/bash backuppc
/usr/share/backuppc/bin/BackupPC_dump -v -f HOST

 Run code snippet
Expand snippet

gives me this output

backuppc@backup3:/home/winmedia$ /usr/share/backuppc/bin/BackupPC_dump -v
-f HOST cmdSystemOrEval: about to system /bin/ping -c 1 HOST
cmdSystemOrEval: finished: got output PING HOST (149.202.75.195) 56(84)
bytes of data. 64 bytes from ns3013409.ip-149-202-75.eu (149.202.75.195):
icmp_seq=1 ttl=53 time=23.6 ms

--- HOST ping statistics --- 1 packets transmitted, 1 received, 0% packet
loss, time 0ms rtt min/avg/max/mdev = 23.654/23.654/23.654/0.000 ms

cmdSystemOrEval: about to system /bin/ping -c 1 HOST cmdSystemOrEval:
finished: got output PING HOST (149.202.75.195) 56(84) bytes of data. 64
bytes from ns3013409.ip-149-202-75.eu (149.202.75.195): icmp_seq=1 ttl=53
time=23.6 ms

--- HOST ping statistics --- 1 packets transmitted, 1 received, 0% packet
loss, time 0ms rtt min/avg/max/mdev = 23.602/23.602/23.602/0.000 ms

CheckHostAlive: returning 23.602 full backup started for directory
/var/lib/vz/dump/dump (baseline backup #1) started full dump,
share=/var/lib/vz/dump/dump Running: /usr/bin/ssh -o
ServerAliveInterval=300 -q -x -l root HOST /usr/bin/rsync --server --sender
--protocol=29 --numeric-ids --perms --owner --group -D --links --hard-links
--times --block-size=2048 --ignore-times . /var/lib/vz/dump/dump/ Xfer PIDs
are now 2549 xferPids 2549 Got remote protocol 29 Negotiated protocol
version 29 Remote[2]: skipping directory . Xfer PIDs are now 2549,2550
xferPids 2549,2550 Can't write 4 bytes to socket Read EOF: Tried again: got
0 bytes Child is aborting Done: 0 files, 0 bytes Got fatal error during
xfer (aborted by signal=PIPE) Backup aborted by user signal Not saving this
as a partial backup since it has fewer files than the prior one (got 0 and
0 files versus 1831) dump failed: aborted by signal=PIPE <

When I run the rsync command manually, the backup is started correctly:

rsync -av -e ssh root@HOST:/var/lib/vz/dump/dump
/mnt/backuppc/backuppc/pc/pHOST/2<

Here below my HOST.pl file:

$Conf{RsyncShareName} = [
#  '/etc',
  '/var/lib/vz/dump/dump'
];
$Conf{RsyncClientCmd} = '$sshPath -o ServerAliveInterval=300 -q -x -l
root $host $rsyncPath $argList+';
$Conf{RsyncArgs} = [
  '--protocol=29',
  '--numeric-ids',
  '--perms',
  '--owner',
  '--group',
  '-D',
  '--links',
  '--hard-links',
  '--times',
  '--block-size=2048'
];
$Conf{ClientTimeout} = 72000;
$Conf{PingMaxMsec} = 50;
$Conf{XferMethod} = 'rsync';
$Conf{RsyncClientPath} = '/usr/bin/rsync';

 Run code snippet
Expand snippet

I don't understand why it could log into the hosts to backup correctly and
aborting immediatly after the backup start.

Can someone help me find a way out of this issue as I think I have done all
the google search that could be done on this error message. Thanks a lot.
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/