BackupPC-users

[BackupPC-users] Fatal error (bad version): /sbin/nologin: invalid option

2015-10-27 12:27:51
Subject: [BackupPC-users] Fatal error (bad version): /sbin/nologin: invalid option
From: fujisan <backuppc-forum AT backupcentral DOT com>
To: backuppc-users AT lists.sourceforge DOT net
Date: Tue, 27 Oct 2015 04:33:41 -0700
Hi there,

I have setup a backuppc server but when I start a backup through the web page 
of the server (http://myserver/BackupPC?host=myclient) by clicking either the 
"Start Incr Backup" or the "Start Full Backup" button, it fails saying:

------------------------------------------
incr backup started back to 2015-10-26 18:05:18 (backup #0) for directory 
/home/smith Running: /usr/bin/ssh -q -x -l root myclient /usr/bin/rsync 
--server --sender --numeric-ids --perms --owner --group -D --links --hard-links 
--times --block-size=2048 --recursive . /home/smith/

Xfer PIDs are now 9336 
Rsync command pid is 9336 
Got remote protocol 1768059695

Fatal error (bad version): /sbin/nologin: invalid option -- 'c'  
Usage:  nologin [options]  Politely refuse a login. 
Options:
  -h, --help     display this help and exit
  -V, --version  output version information and exit
For more details see nologin(8). 

Checksum seed is 1869492078 
Got checksumSeed 0x6f6e2f6e 
Read EOF: Connection reset by peer 
Tried again: got 0 bytes 
fileListReceive() failed Done: 0 files, 0 bytes 
Got fatal error during xfer (fileListReceive failed) 
Backup aborted (fileListReceive failed)
------------------------------------------

So instead of starting the backup from the web UI of backuppc, I log in as user 
'backuppc'

------------------------------------------
# su -s /bin/bash backuppc
------------------------------------------

and I start running a backup on the command line like this:

------------------------------------------
# /usr/share/BackupPC/bin/BackupPC_dump -v -i myclient
cmdSystemOrEval: about to system /usr/bin/ping -c 1 myclient
cmdSystemOrEval: finished: got output PING myclient (10.0.21.18) 56(84) bytes 
of data.
64 bytes from myclient (10.0.21.18): icmp_seq=1 ttl=64 time=0.144 ms

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

cmdSystemOrEval: about to system /usr/bin/ping -c 1 myclient
cmdSystemOrEval: finished: got output PING myclient (10.0.21.18) 56(84) bytes 
of data.
64 bytes from myclient (10.0.21.18): icmp_seq=1 ttl=64 time=0.134 ms

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

CheckHostAlive: returning 0.134
incr backup started back to 2015-10-26 18:05:18 (backup #0) for directory 
/home/smith
started incr dump, share=/home/smith
Running: /usr/bin/ssh -q -x -l root myclient /usr/bin/rsync --server --sender 
--numeric-ids --perms --owner --group -D --links --hard-links --times 
--block-size=2048 --recursive . /home/smith/
Xfer PIDs are now 9318
xferPids 9318
Rsync command pid is 9318
Got remote protocol 31
Negotiated protocol version 28
Checksum seed is 1445938945
Got checksumSeed 0x562f4701
Got file list: 615 entries
Child PID is 9321
Xfer PIDs are now 9318,9321
xferPids 9318,9321
Sending csums, cnt = 615, phase = 0
Skipping .ICEauthority (same attr)
Skipping .Xauthority (same attr)
Skipping .bash_history (same attr)
Skipping .bash_logout (same attr)
Skipping .bash_profile (same attr)
Skipping .bashrc (same attr)
[...]
Finished deltaGet phase 0
Finished deltaGet phase 1
Done: 838 files, 72752515 bytes
incr backup complete
------------------------------------------

and the backup went just fine.

I can even see the list of backups I have done manually so far.

What did I miss here?

Fuji

+----------------------------------------------------------------------
|This was sent by Lifid1988 AT einrot DOT com via Backup Central.
|Forward SPAM to abuse AT backupcentral DOT com.
+----------------------------------------------------------------------



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