Koozali.org formerly Contribs.org

[SOLVED] BackupPC - Unexpected remote arg: 82.64.x.y:/

Offline gieres

  • *
  • 148
[SOLVED] BackupPC - Unexpected remote arg: 82.64.x.y:/
« on: July 14, 2021, 07:23:55 PM »
Hi,
Usage : backup a Koozali 9.2 with Koozali 10.0 distant (in other place). Installed smeserver-BackupPC-0.2-8.el7.sme.noarch on Koozali 10
Settings Koozali 10 : create 4096 id_rsa keys with user backuppc and send pub key in authorized_keys2 of 9.2. Connexion tested with user backuppc : ok.

Issues :
1. Error log :
This is the rsync child about to exec /usr/bin/rsync_bpc
Permission denied (publickey).
This ussue can be resolved by :
$Conf{RsyncSshArgs} = $sshPath -l backuppc

2. Unexpected remote arg: 82.64.x.y:/
Running: /usr/bin/rsync_bpc --bpc-top-dir /var/lib/BackupPC --bpc-host-name koozali --bpc-share-name / --bpc-bkup-num 0 --bpc-bkup-comp 3 --bpc-bkup-prevnum -1 --bpc-bkup-prevcomp -1 --bpc-bkup-inode0 2 --bpc-log-level 8 --bpc-attrib-new /usr/bin/ssh\ -l\ backuppc --rsync-path=/usr/bin/rsync --numeric-ids --perms --owner --group -D --links --hard-links --times --block-size=2048 --recursive --checksum-seed=32761 --timeout=72000 --exclude=/var/lib/BackupPC --exclude=/proc --exclude=/tmp --exclude=/sys --exclude=/dev --exclude=/boot --exclude=/mnt --exclude=/media --exclude=/selinux --exclude=/aquota.\* --exclude=/lost+found --exclude=/initrd --exclude=/var/tmp --exclude=/var/lib/mysql --exclude=/var/spool/squid --exclude=/var/qmail/queue --exclude=/home/e-smith/files --exclude=/var/log --exclude=/var/cache/yum --exclude=/var/cache/lemonldap --exclude=/var/cache/pydio --exclude=/var/spool/spamd/.spamassassin/bayes_journal --exclude=/var/cache/lemonldap-ng/sessions/\* --exclude=/var/lib/mlocate/\* --exclude=/var/lib/docker/\* --exclude=/var/lock/fetchmail/\* --exclude=/var/lib/mongo/\* 82.64.x.y:/ /
full backup started for directory /
Xfer PIDs are now 4061
This is the rsync child about to exec /usr/bin/rsync_bpc
bpc_lib_conf_init: topDir = /var/lib/BackupPC, logLevel = 8
bpc_path_create(/var/lib/BackupPC/pc/koozali/0)
bpc_attrib_backwardCompat: WriteOldStyleAttribFile = 0, KeepOldAttribFiles = 0
Unexpected remote arg: 82.64.x.y:/
bpc_sysCall_cleanup: doneInit = 1
RefCnt Deltas for new backup
Uncompressed HT:
Compressed HT:
Done: 0 errors, 0 filesExist, 0 sizeExist, 0 sizeExistComp, 0 filesTotal, 0 sizeTotal, 0 filesNew, 0 sizeNew, 0 sizeNewComp, 2 inode
Parsing done: nFilesTotal = 0
rsync error: syntax or usage error (code 1) at main.c(1359) [sender=3.1.3.0]
rsync_bpc exited with fatal status 1 (256) (rsync error: syntax or usage error (code 1) at main.c(1359) [sender=3.1.3.0])
Xfer PIDs are now
Got fatal error during xfer (No files dumped for share /)

Thanks in advance

« Last Edit: July 15, 2021, 07:17:35 PM by gieres »

Offline ReetP

  • *
  • 2,874
Re: BackupPC - Unexpected remote arg: 82.64.x.y:/
« Reply #1 on: July 15, 2021, 11:25:31 AM »
Try a generic search for your error:

https://duckduckgo.com/?t=ffab&q=backuppc+Unexpected+remote+arg&ia=web

That suggests it is a rsync error.

So chech the host format required by rsync - eg user@host
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline gieres

  • *
  • 148
Re: BackupPC - Unexpected remote arg: 82.64.x.y:/
« Reply #2 on: July 15, 2021, 07:17:02 PM »
Hi,
No bug really. it's my wrong configuration :
Conf{RsyncSshArgs} = ['-e', '$sshPath -l root']
And Daniel advices to modify in :
Conf{RsyncSshArgs} = ['-e', '$sshPath -C -q -x -l root']
And it's running.
Bye

Offline TerryF

  • grumpy old man
  • *
  • 1,439
Re: [SOLVED] BackupPC - Unexpected remote arg: 82.64.x.y:/
« Reply #3 on: July 16, 2021, 01:25:17 AM »
Worth a trip to the wiki or not?
--
qui scribit bis legit

Offline Jean-Philippe Pialasse

  • *
  • 1,768
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: [SOLVED] BackupPC - Unexpected remote arg: 82.64.x.y:/
« Reply #4 on: July 16, 2021, 05:44:47 AM »
wiki or updating the default script

however if you check the man rsync
-C use checksum
-q quiet
-x do not cross filesystem


not sure this is what solved your issue
« Last Edit: July 16, 2021, 05:52:58 AM by Jean-Philippe Pialasse »

Offline gieres

  • *
  • 148
Re: [SOLVED] BackupPC - Unexpected remote arg: 82.64.x.y:/
« Reply #5 on: July 16, 2021, 07:44:38 AM »
This what is solved is the '-e', I mean.
But I re-test as soon as possible.

Offline gieres

  • *
  • 148
Re: [SOLVED] BackupPC - Unexpected remote arg: 82.64.x.y:/
« Reply #6 on: July 16, 2021, 03:11:19 PM »
1. After verification, in smeserver-template, there is nothing in Conf{RsyncSshArgs}.
I suggest to add : ['-e', '$sshPath -l root'] in this template
all the more that in « Known issues », at last, for local backup, it's suggested to change :
 Conf{RsyncSshArgs} = ['-e', '$sshPath -l root']
to ...
as if this conf is pre-existent.
What do you think about ?

2. Effectively, it runs without -C -q -x


Offline Jean-Philippe Pialasse

  • *
  • 1,768
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: [SOLVED] BackupPC - Unexpected remote arg: 82.64.x.y:/
« Reply #7 on: July 17, 2021, 12:02:35 AM »
1- the -e is on all both of your options

2- when empty it uses the default from main config. so you need to check that