Re: [BackupPC-users] Backuppc hangs on certain files.

2018-05-31 Thread Brent Clark

Thanks Stefan

Regards

Brent


On 31/05/2018 13:56, Stefan Peter wrote:

Dear Brent Clark,

On 31.05.2018 13:29, Brent Clark wrote:

As you can see they are the same.

3.1.1-3+deb8u1 vs 3.1.1-3ubuntu1.2

They may have the same base version but they differ in distro specific
patches.

Anyway, the message


2018/05/31 08:59:52 [4524] ABORTING due to unsafe pathname from sender:
/COU-IMMPRO.pdf

seems to point to the rsyncd server dropping the connection. I'd
investigate in this direction.

With kind regards

Stefan Peter


--
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/



--
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] Backuppc hangs on certain files.

2018-05-31 Thread Stefan Peter
Dear Brent Clark,

On 31.05.2018 13:29, Brent Clark wrote:
> As you can see they are the same.
> 
> 3.1.1-3+deb8u1 vs 3.1.1-3ubuntu1.2

They may have the same base version but they differ in distro specific
patches.

Anyway, the message

> 2018/05/31 08:59:52 [4524] ABORTING due to unsafe pathname from sender:
> /COU-IMMPRO.pdf

seems to point to the rsyncd server dropping the connection. I'd
investigate in this direction.

With kind regards

Stefan Peter


--
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] Backuppc hangs on certain files.

2018-05-31 Thread Brent Clark

Good day Stefan

Thank you for replying.

That is very interesting, for I replied to Craig earlier, saying I 
successfully restored to a Debian machine.


My problem machine is an Ubuntu 16.04 (xenial), but my test machine is 
Debian Jessie.


When I saw the restore completed on the Debian machine this morning, I 
immediately checked the versions.


As you can see they are the same.

3.1.1-3+deb8u1 vs 3.1.1-3ubuntu1.2

The Backuppc server is Debian stretch though.

Regards

Brent Clark


On 31/05/2018 11:10, Stefan Peter wrote:

Hi Brent

On 31.05.2018 09:13, Brent Clark wrote:

I too set rsyncd debugging (max verbosity = 2) and in the log I get:

2018/05/31 08:59:52 [4524] name lookup failed for REMOVED: Name or
service not known
2018/05/31 08:59:52 [4524] connect from UNKNOWN (REMOVED)
2018/05/31 08:59:52 [4524] rsync to REMOVED/download/cougar/ from
REMOVED@UNKNOWN (REMOVED)
2018/05/31 08:59:52 [4524] receiving file list
2018/05/31 08:59:52 [4524] ABORTING due to unsafe pathname from sender:
/COU-IMMPRO.pdf

Could it be that you are using Debian stretch and are bitten by this bug:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=863334

Does the download/cougar directory exist on the system you want to
restore to?

With kind regards

Stefan Peter



--
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/



--
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] Backuppc hangs on certain files.

2018-05-31 Thread Stefan Peter
Hi Brent

On 31.05.2018 09:13, Brent Clark wrote:
> 
> I too set rsyncd debugging (max verbosity = 2) and in the log I get:
> 
> 2018/05/31 08:59:52 [4524] name lookup failed for REMOVED: Name or
> service not known
> 2018/05/31 08:59:52 [4524] connect from UNKNOWN (REMOVED)
> 2018/05/31 08:59:52 [4524] rsync to REMOVED/download/cougar/ from
> REMOVED@UNKNOWN (REMOVED)
> 2018/05/31 08:59:52 [4524] receiving file list
> 2018/05/31 08:59:52 [4524] ABORTING due to unsafe pathname from sender:
> /COU-IMMPRO.pdf

Could it be that you are using Debian stretch and are bitten by this bug:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=863334

Does the download/cougar directory exist on the system you want to
restore to?

With kind regards

Stefan Peter



--
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] Backuppc hangs on certain files.

2018-05-31 Thread Brent Clark

Good day Craig

This issue is weirder by the minute, but I thought I would keep you updated.

I quickly did the same restore (no config changes to backuppc) to a 
Debian machine.


The rsyncd settings are the same on the restore host.

There were no issues restoring to the Debian machine.

So I am at a further loss.

Kind Regards
Brent Clark


On 31/05/2018 09:13, Brent Clark wrote:

Good day Craig

Thank you so much for taking the time to reply.

I hope I correctly did what you asked.

Im using Debians packaged version I.e.

# dpkg -l | grep backuppc
ii  backuppc 3.3.1-4    amd64 high-performance, 
enterprise-grade system for backing up PCs


I did what you asked.

I set the follopwing in backuppc config.pl as well as the hosts config 
file (see attached).

$Conf{XferLogLevel} = '8';
$Conf{RsyncRestoreArgs} = '-vvv'

Here is the tail of the log:

Contents of file /var/lib/backuppc/pc/REMOVED/RestoreLOG.32.z, 
modified 2018-05-31 08:59:54


Connected to REMOVED:873, remote version 31
Negotiated protocol version 28
Got response: fc1338e205d19c0e5239d2a203efcf84
in mime: /BM44gXRnA5SOdKiA+/PhA
Auth: got challenge: A6+NF2ig5v6hstnJy3QzMw, reply: REMOVED 
/BM44gXRnA5SOdKiA+/PhA

Connected to module REMOVED
Sending args: --server -vvv . /REMOVED/download/cougar/
Checksum seed is 1527749992
Got checksumSeed 0x5b0f9d68
fileListSend: sending file list: REMOVED/download/cougar/COU-IMMPRO.pdf
Sending REMOVED/download/cougar/COU-IMMPRO.pdf 
(remote=/COU-IMMPRO.pdf) type = 0

  restore   664 10030/10030    37676705 REMOVED/cougar/COU-IMMPRO.pdf
Sorted file list has 1 entries
PostSortFile 0: /COU-IMMPRO.pdf
Read EOF:
Tried again: got 0 bytes
Done: 1 files, 37676705 bytes
restore failed: Unable to read 4 bytes

I too set rsyncd debugging (max verbosity = 2) and in the log I get:

2018/05/31 08:59:52 [4524] name lookup failed for REMOVED: Name or 
service not known

2018/05/31 08:59:52 [4524] connect from UNKNOWN (REMOVED)
2018/05/31 08:59:52 [4524] rsync to REMOVED/download/cougar/ from 
REMOVED@UNKNOWN (REMOVED)

2018/05/31 08:59:52 [4524] receiving file list
2018/05/31 08:59:52 [4524] ABORTING due to unsafe pathname from 
sender: /COU-IMMPRO.pdf
2018/05/31 08:59:52 [4524] rsync error: protocol incompatibility (code 
2) at flist.c(742) [Receiver=3.1.1]


Attached you will see a sanitised backuppc configuration for the host.

Thank you again for your help.

Regards
Brent

On 30/05/2018 19:47, Craig Barratt via BackupPC-users wrote:

-vvv to





--
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] Backuppc hangs on certain files.

2018-05-31 Thread Brent Clark

Good day Craig

Thank you so much for taking the time to reply.

I hope I correctly did what you asked.

Im using Debians packaged version I.e.

# dpkg -l | grep backuppc
ii  backuppc 3.3.1-4    amd64    
high-performance, enterprise-grade system for backing up PCs


I did what you asked.

I set the follopwing in backuppc config.pl as well as the hosts config 
file (see attached).

$Conf{XferLogLevel} = '8';
$Conf{RsyncRestoreArgs} = '-vvv'

Here is the tail of the log:

Contents of file /var/lib/backuppc/pc/REMOVED/RestoreLOG.32.z, modified 
2018-05-31 08:59:54


Connected to REMOVED:873, remote version 31
Negotiated protocol version 28
Got response: fc1338e205d19c0e5239d2a203efcf84
in mime: /BM44gXRnA5SOdKiA+/PhA
Auth: got challenge: A6+NF2ig5v6hstnJy3QzMw, reply: REMOVED 
/BM44gXRnA5SOdKiA+/PhA
Connected to module REMOVED
Sending args: --server -vvv . /REMOVED/download/cougar/
Checksum seed is 1527749992
Got checksumSeed 0x5b0f9d68
fileListSend: sending file list: REMOVED/download/cougar/COU-IMMPRO.pdf
Sending REMOVED/download/cougar/COU-IMMPRO.pdf (remote=/COU-IMMPRO.pdf) type = 0
  restore   664 10030/1003037676705 REMOVED/cougar/COU-IMMPRO.pdf
Sorted file list has 1 entries
PostSortFile 0: /COU-IMMPRO.pdf
Read EOF:
Tried again: got 0 bytes
Done: 1 files, 37676705 bytes
restore failed: Unable to read 4 bytes

I too set rsyncd debugging (max verbosity = 2) and in the log I get:

2018/05/31 08:59:52 [4524] name lookup failed for REMOVED: Name or service not 
known
2018/05/31 08:59:52 [4524] connect from UNKNOWN (REMOVED)
2018/05/31 08:59:52 [4524] rsync to REMOVED/download/cougar/ from 
REMOVED@UNKNOWN (REMOVED)
2018/05/31 08:59:52 [4524] receiving file list
2018/05/31 08:59:52 [4524] ABORTING due to unsafe pathname from sender: 
/COU-IMMPRO.pdf
2018/05/31 08:59:52 [4524] rsync error: protocol incompatibility (code 2) at 
flist.c(742) [Receiver=3.1.1]

Attached you will see a sanitised backuppc configuration for the host.

Thank you again for your help.

Regards
Brent

On 30/05/2018 19:47, Craig Barratt via BackupPC-users wrote:

-vvv to


# THIS FILE IS AUTOMATICALLY DISTRIBUTED BY PUPPET.  ANY CHANGES WILL BE
# OVERWRITTEN.

$Conf{BackupFilesExclude} = {
  '*' => [
'REMOVED_LIST',
]
};
$Conf{PingMaxMsec} = '200';
$Conf{IncrLevels} = [
  '1',
  '2',
  '3',
  '4',
  '5',
  '6'
];
$Conf{BlackoutPeriods} = [
  {
'hourEnd' => '21.5',
'weekDays' => [
  '1',
  '2',
  '3',
  '4',
  '5',
  '6',
  '7'
],
'hourBegin' => '8'
  }
];
$Conf{RsyncShareName} = [
  'REMOVED'
];
$Conf{RsyncArgs} = [
'--numeric-ids',
'--perms',
'--owner',
'--group',
'-D',
'--links',
'--hard-links',
'--times',
'--inplace',
'--recursive',];
$Conf{RsyncdPasswd} = 'REMOVED';
$Conf{XferLogLevel} = '8';
$Conf{RsyncRestoreArgs} = '-vvv'
--
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/