Re: [BackupPC-users] Error: Wrong user: my userid is 48, instead of 955(backuppc)
When I run /usr/libexec/BackupPC/BackupPC_Admin in a terminal as apache or backuppc, I get the same html output which seems correct, but when I browse to the address http://myserver.mydomain/backuppc, I still get : - Error: Wrong user: my userid is 48, instead of 955(backuppc) This script needs to run as the user specified in $Conf{BackupPCUser}, which is set to backuppc. This is an installation problem. If you are using mod_perl then it appears that Apache is not running as user backuppc. If you are not using mod_perl, then most like setuid is not working properly on BackupPC_Admin. Check the permissions on /usr/libexec/BackupPC/BackupPC_Admin and look at the documentation. - $ su -s /bin/bash apache or $ su -s /bin/bash backuppc $ /usr/libexec/BackupPC/BackupPC_Admin Content-Type: text/html; charset=utf-8 BackupPC Server Status https://backuppc.github.io/backuppc/";> Hosts Select a host...xxx Server Status Host Summary Edit Config Edit Hosts Admin Options LOG file Old LOGs Email summary Current queues Documentation https://github.com/backuppc/backuppc/wiki";>Wiki https://backuppc.github.io/backuppc";>Github BackupPC Server Status Currently Running Jobs Host Type User Start Time Command PID Xfer PID Status Count General Server Information The servers PID is 27983, on host myserver.mydomain, version 4.1.3, started at 12/13 17:04. This status was generated at 12/13 17:06. The configuration was last loaded at 12/13 17:04. PCs will be next queued at 12/13 18:00. Other info: 0 pending backup requests from last scheduled wakeup, 0 pending user backup requests, 0 pending command requests, Pool is 0.00GiB comprising 0 files and 0 directories (as of 12/12 01:00), Pool hashing gives 0 repeated files with longest chain 0, Nightly cleanup removed 0 files of size 0.00GiB (around 12/12 01:00), Pool file system was recently at 38% (12/13 17:02), today's max is 38% (12/12 01:00) and yesterday's max was 38%. Failures that need attention Host Type User Last Try Details Error Time Last error (other than no ping) xxx full mailto:fujisan";>fujisan 12/13 17:00 12/13 17:00 No files dumped for share C$ On Wed, Dec 13, 2017 at 11:03 AM, fujisan wrote: > Hi, > > I did a fresh reinstall of BackupPC and I have the following: > I have installed BackupPC-4.1.3-4.fc27.x86_64 . > > -rw-r- 1 backuppc apache47 Dec 11 15:49 /etc/BackupPC/apache.users > -rw-rw 1 apache apache 65536 Nov 25 12:27 /etc/httpd/alias/cert8.db > -rw-rw 1 apache apache 16384 Nov 25 12:27 /etc/httpd/alias/key3.db > -rw-rw 1 apache apache20 Sep 11 2015 > /etc/httpd/alias/pwdfile.txt > -rw-rw 1 apache apache 16384 Nov 25 12:20 /etc/httpd/alias/secmod.db > -r 1 apache apache29 Sep 11 2015 > /etc/httpd/conf/password.conf > drwxr-x--- 2 backuppc apache 4096 Dec 13 10:19 /usr/libexec/BackupPC/ > -rwsr-x--- 1 backuppc apache 7128 Aug 2 18:51 /usr/libexec/BackupPC/ > BackupPC_Admin > > in /etc/BackupPC/config.pl, i have > $Conf{BackupPCUser} = 'backuppc'; > > and I still have the error: > >>Error: Wrong user: my userid is 48, instead of 955(backuppc) > >>This script needs to run as the user specified in $Conf{BackupPCUser}, > which is set to backuppc. > 48 is userid of apache. > > The script /usr/libexec/BackupPC/BackupPC_Admin is owned by user > backuppc, so I don't understand the reasons for this error message. > > My web server is running Freeipa as well. > > Regards, > Fuji > > > On Wed, Dec 13, 2017 at 12:52 AM, Holger Parplies > wrote: > >> Hi, >> >> fujisan wrote on 2017-12-12 13:08:08 +0100 [Re: [BackupPC-users] Error: >> Wrong user: my userid is 48, instead of 955(backuppc)]: >> > [...] >> > I have the following: >> > -r 1 backuppc apache29 Sep 11 2015 >> /etc/httpd/conf/password.conf >> >> that would seem to be a problem (unrelated), because authentication is >> probably done by Apache, not the BackupPC_Admin script ... ah ... it >> appears it won't >> be, if you've changed the user for Apache (which I wouldn't do). >> >> > -rwsr-x--- 1 backuppc apache 7128 Aug 2 18:51 >> /usr/libexec/BackupPC/BackupPC_Admin >> >> Well, and /usr/libexec/BackupPC? >> >> > in /etc/httpd/conf/httpd.conf >> > User backuppc >> > Group apa
Re: [BackupPC-users] Error: Wrong user: my userid is 48, instead of 955(backuppc)
Hi, I did a fresh reinstall of BackupPC and I have the following: I have installed BackupPC-4.1.3-4.fc27.x86_64 . -rw-r- 1 backuppc apache47 Dec 11 15:49 /etc/BackupPC/apache.users -rw-rw 1 apache apache 65536 Nov 25 12:27 /etc/httpd/alias/cert8.db -rw-rw 1 apache apache 16384 Nov 25 12:27 /etc/httpd/alias/key3.db -rw-rw 1 apache apache20 Sep 11 2015 /etc/httpd/alias/pwdfile.txt -rw-rw 1 apache apache 16384 Nov 25 12:20 /etc/httpd/alias/secmod.db -r 1 apache apache29 Sep 11 2015 /etc/httpd/conf/password.conf drwxr-x--- 2 backuppc apache 4096 Dec 13 10:19 /usr/libexec/BackupPC/ -rwsr-x--- 1 backuppc apache 7128 Aug 2 18:51 /usr/libexec/BackupPC/BackupPC_Admin in /etc/BackupPC/config.pl, i have $Conf{BackupPCUser} = 'backuppc'; and I still have the error: >>Error: Wrong user: my userid is 48, instead of 955(backuppc) >>This script needs to run as the user specified in $Conf{BackupPCUser}, which is set to backuppc. 48 is userid of apache. The script /usr/libexec/BackupPC/BackupPC_Admin is owned by user backuppc, so I don't understand the reasons for this error message. My web server is running Freeipa as well. Regards, Fuji On Wed, Dec 13, 2017 at 12:52 AM, Holger Parplies wrote: > Hi, > > fujisan wrote on 2017-12-12 13:08:08 +0100 [Re: [BackupPC-users] Error: > Wrong user: my userid is 48, instead of 955(backuppc)]: > > [...] > > I have the following: > > -r 1 backuppc apache29 Sep 11 2015 > /etc/httpd/conf/password.conf > > that would seem to be a problem (unrelated), because authentication is > probably done by Apache, not the BackupPC_Admin script ... ah ... it > appears it won't > be, if you've changed the user for Apache (which I wouldn't do). > > > -rwsr-x--- 1 backuppc apache 7128 Aug 2 18:51 /usr/libexec/BackupPC/ > BackupPC_Admin > > Well, and /usr/libexec/BackupPC? > > > in /etc/httpd/conf/httpd.conf > > User backuppc > > Group apache > > Presuming setuid is working for Perl scripts (which it may not), there > would > be no reason to change this. Even if setuid Perl scripts don't work, there > are probably better ways to do this. Is your web server running anything > else > besides BackupPC? > > Presuming you really *do* keep this, remove the setuid on BackupPC_Admin. > > > [...] > > On Tue, Dec 12, 2017 at 11:46 AM, Jamie Burchell > wrote: > > > You need to configure Apache (/etc/httpd/conf/httpd.conf on CentOS 7) > to > > > run under user ???backuppc???: > > Can't say I'd agree. Besides the obvious implications, that sort of puts > you > back on square one, where you might have to change all sorts of things on > your > system just to get Apache to run. Repeat on every security update of > Apache. > You'd better know what you're doing, in which case you wouldn't be here. > > It certainly is *a* possible solution, but it's neither elegant nor > mandatory, > nor should it be suggested without warning about the many implications. > > > [...] > > > -rwsr-x--- 1 apache apache 7128 Aug 2 18:51 /usr/libexec/BackupPC/ > BackupPC_Admin > > At this point, it was obvious, but you've figured that out. Did you mention > whether the error message stayed the same after you changed that? > > > > I have changed the ownership of BackupPC_Admin to backuppc and the > > > permissions as well.: > > > > > > drwxr-xr-x 2 backuppc backuppc 4096 Dec 11 16:53 /usr/libexec/BackupPC/ > > > -rwsr-x--- 1 backuppc backuppc 7128 Aug 2 18:51 /usr/libexec/BackupPC/ > > > BackupPC_Admin > > > > > > And the log says: > > > [Tue Dec 12 10:50:58.607612 2017] [cgid:error] [pid 715:tid > > > 139944750074112] (13)Permission denied: AH01241: exec of > > > '/usr/libexec/BackupPC/BackupPC_Admin' failed > > Well, yes, that's still obvious, because Apache has no execute permission. > > > > Well, I cannot figure out how to setup backuppc. > > And I can't figure out how to stop people from top-posting. > > > > Any help welcome > > Same here. > > Regards, > Holger > > P.S.: If your distribution's BackupPC package doesn't work with your > distribution's Apache package and doesn't provide information on how > to fix that, you should probably file a bug report. > -- 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] Error: Wrong user: my userid is 48, instead of 955(backuppc)
Sorry, the previous mail ran away! -- I have to mention that my server is running F27 abd is a Freeipa server. I have the following: -rw-r- 1 backuppc apache47 Dec 11 15:49 /etc/BackupPC/apache.users -rw-rw 1 backuppc apache 65536 Nov 25 12:27 /etc/httpd/alias/cert8.db -rw-rw 1 backuppc apache 16384 Nov 25 12:27 /etc/httpd/alias/key3.db -rw-rw 1 backuppc apache20 Sep 11 2015 /etc/httpd/alias/pwdfile.txt -rw-rw 1 backuppc apache 16384 Nov 25 12:20 /etc/httpd/alias/secmod.db -r 1 backuppc apache29 Sep 11 2015 /etc/httpd/conf/password.conf -rwsr-x--- 1 backuppc apache 7128 Aug 2 18:51 /usr/libexec/BackupPC/ BackupPC_Admin in /etc/httpd/conf/httpd.conf User backuppc Group apache With all this, I cannot log into the freeipa server. Regards, F. On Tue, Dec 12, 2017 at 11:46 AM, Jamie Burchell wrote: > Hi! > > > > You need to configure Apache (/etc/httpd/conf/httpd.conf on CentOS 7) to > run under user “backuppc”: > > > > # User/Group: The name (or #number) of the user/group to run httpd as. > > User backuppc > > > > # User/Group: The name (or #number) of the user/group to run httpd as. > > Group apache > > > Kind regards, > > *Jamie* > > *From:* fujisan [mailto:fujisa...@gmail.com] > *Sent:* 12 December 2017 10:01 > *To:* backuppc-users@lists.sourceforge.net > *Subject:* [BackupPC-users] Error: Wrong user: my userid is 48, instead > of 955(backuppc) > > > > Hello, > > I'm trying to install BackupPC on a server and I ran into this error > message on the web page of backuppc http://myserver/backuppc: > > > Error: Wrong user: my userid is 48, instead of 955(backuppc) > This script needs to run as the user specified in $Conf{BackupPCUser}, > which is set to backuppc. > This is an installation problem. If you are using mod_perl then it appears > that Apache is not running as user backuppc. > If you are not using mod_perl, then most like setuid is not working > properly on BackupPC_Admin. > Check the permissions on /usr/libexec/BackupPC/BackupPC_Admin and look at > the documentation. > > I am not using mod_perl and the permission of file /usr/libexec/BackupPC/ > BackupPC_Admin is: > > drwxr-xr-x 2 backuppc apache 4096 Dec 11 16:53 /usr/libexec/BackupPC/ > -rwsr-x--- 1 apache apache 7128 Aug 2 18:51 /usr/libexec/BackupPC/ > BackupPC_Admin > > I have changed the ownership of BackupPC_Admin to backuppc and the > permissions as well.: > > drwxr-xr-x 2 backuppc backuppc 4096 Dec 11 16:53 /usr/libexec/BackupPC/ > -rwsr-x--- 1 backuppc backuppc 7128 Aug 2 18:51 /usr/libexec/BackupPC/ > BackupPC_Admin > > And the log says: > [Tue Dec 12 10:50:58.607612 2017] [cgid:error] [pid 715:tid > 139944750074112] (13)Permission denied: AH01241: exec of > '/usr/libexec/BackupPC/BackupPC_Admin' failed > > Well, I cannot figure out how to setup backuppc. > > Any help welcome > > Thank you. > > > -- > 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] Error: Wrong user: my userid is 48, instead of 955(backuppc)
I have to mention that my server is running F27 abd is a Freeipa server. I have the following: -rw-r- 1 backuppc apache47 Dec 11 15:49 /etc/BackupPC/apache.users -rw-rw 1 backuppc apache 65536 Nov 25 12:27 /etc/httpd/alias/cert8.db -rw-rw 1 backuppc apache 16384 Nov 25 12:27 /etc/httpd/alias/key3.db -rw-rw 1 backuppc apache20 Sep 11 2015 /etc/httpd/alias/pwdfile.txt -rw-rw 1 backuppc apache 16384 Nov 25 12:20 /etc/httpd/alias/secmod.db -r 1 backuppc apache29 Sep 11 2015 /etc/httpd/conf/password.conf -rwsr-x--- 1 backuppc apache 7128 Aug 2 18:51 /usr/libexec/BackupPC/BackupPC_Admin in /etc/httpd/conf/httpd.conf User backuppc Group apache On Tue, Dec 12, 2017 at 11:46 AM, Jamie Burchell wrote: > Hi! > > > > You need to configure Apache (/etc/httpd/conf/httpd.conf on CentOS 7) to > run under user “backuppc”: > > > > # User/Group: The name (or #number) of the user/group to run httpd as. > > User backuppc > > > > # User/Group: The name (or #number) of the user/group to run httpd as. > > Group apache > > > Kind regards, > > *Jamie* > > *From:* fujisan [mailto:fujisa...@gmail.com] > *Sent:* 12 December 2017 10:01 > *To:* backuppc-users@lists.sourceforge.net > *Subject:* [BackupPC-users] Error: Wrong user: my userid is 48, instead > of 955(backuppc) > > > > Hello, > > I'm trying to install BackupPC on a server and I ran into this error > message on the web page of backuppc http://myserver/backuppc: > > > Error: Wrong user: my userid is 48, instead of 955(backuppc) > This script needs to run as the user specified in $Conf{BackupPCUser}, > which is set to backuppc. > This is an installation problem. If you are using mod_perl then it appears > that Apache is not running as user backuppc. > If you are not using mod_perl, then most like setuid is not working > properly on BackupPC_Admin. > Check the permissions on /usr/libexec/BackupPC/BackupPC_Admin and look at > the documentation. > > I am not using mod_perl and the permission of file /usr/libexec/BackupPC/ > BackupPC_Admin is: > > drwxr-xr-x 2 backuppc apache 4096 Dec 11 16:53 /usr/libexec/BackupPC/ > -rwsr-x--- 1 apache apache 7128 Aug 2 18:51 /usr/libexec/BackupPC/ > BackupPC_Admin > > I have changed the ownership of BackupPC_Admin to backuppc and the > permissions as well.: > > drwxr-xr-x 2 backuppc backuppc 4096 Dec 11 16:53 /usr/libexec/BackupPC/ > -rwsr-x--- 1 backuppc backuppc 7128 Aug 2 18:51 /usr/libexec/BackupPC/ > BackupPC_Admin > > And the log says: > [Tue Dec 12 10:50:58.607612 2017] [cgid:error] [pid 715:tid > 139944750074112] (13)Permission denied: AH01241: exec of > '/usr/libexec/BackupPC/BackupPC_Admin' failed > > Well, I cannot figure out how to setup backuppc. > > Any help welcome > > Thank you. > > > -- > 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/
[BackupPC-users] Error: Wrong user: my userid is 48, instead of 955(backuppc)
Hello, I'm trying to install BackupPC on a server and I ran into this error message on the web page of backuppc http://myserver/backuppc: Error: Wrong user: my userid is 48, instead of 955(backuppc) This script needs to run as the user specified in $Conf{BackupPCUser}, which is set to backuppc. This is an installation problem. If you are using mod_perl then it appears that Apache is not running as user backuppc. If you are not using mod_perl, then most like setuid is not working properly on BackupPC_Admin. Check the permissions on /usr/libexec/BackupPC/BackupPC_Admin and look at the documentation. I am not using mod_perl and the permission of file /usr/libexec/BackupPC/BackupPC_Admin is: drwxr-xr-x 2 backuppc apache 4096 Dec 11 16:53 /usr/libexec/BackupPC/ -rwsr-x--- 1 apache apache 7128 Aug 2 18:51 /usr/libexec/BackupPC/BackupPC_Admin I have changed the ownership of BackupPC_Admin to backuppc and the permissions as well.: drwxr-xr-x 2 backuppc backuppc 4096 Dec 11 16:53 /usr/libexec/BackupPC/ -rwsr-x--- 1 backuppc backuppc 7128 Aug 2 18:51 /usr/libexec/BackupPC/BackupPC_Admin And the log says: [Tue Dec 12 10:50:58.607612 2017] [cgid:error] [pid 715:tid 139944750074112] (13)Permission denied: AH01241: exec of '/usr/libexec/BackupPC/BackupPC_Admin' failed Well, I cannot figure out how to setup backuppc. Any help welcome Thank you. -- 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] Fatal error (bad version): /sbin/nologin: invalid option
I also think it's coming from the remote side. Loging in with su -s /bin/bash - backuppc with the '-' as you suggested does not stop the backup from working on the command line. I also installed backuppc on another server and tried to backup another client (so, 2 different machines involved here), and again the same error message. 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). Something is being executed on the remote side with option '-c', maybe 'su'. I get the same message when I try to run su backuppc -c ls from the backuppc server as root 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). Fuji +-- |This was sent by fujisa...@gmail.com via Backup Central. |Forward SPAM to ab...@backupcentral.com. +-- -- ___ 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] Fatal error (bad version): /sbin/nologin: invalid option
I did change the shell of user backuppc to /bin/bash and I got the exact same error message. So this nologin erro message does not seem to come from user backuppc. Fuji +-- |This was sent by fujisa...@gmail.com via Backup Central. |Forward SPAM to ab...@backupcentral.com. +-- -- ___ 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] Fatal error (bad version): /sbin/nologin: invalid option
That's part of the BackupPC documentation: BackupPC User It is best if BackupPC runs as a special user, eg backuppc, that has limited privileges. It is preferred that backuppc belongs to a system administrator group so that sys admin members can browse BackupPC files, edit the configuration files and so on. Although configurable, the default settings leave group read permission on pool files, so make sure the BackupPC user's group is chosen restrictively. On this installation, this is backuppc. For security purposes you might choose to configure the BackupPC user with the shell set to /bin/false. Since you might need to run some BackupPC programs as the BackupPC user for testing purposes, you can use the -s option to su to explicitly run a shell, eg: su -s /bin/bash backuppc Depending upon your configuration you might also need the -l option. +-- |This was sent by fujisa...@gmail.com via Backup Central. |Forward SPAM to ab...@backupcentral.com. +-- -- ___ 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] Fatal error (bad version): /sbin/nologin: invalid option
You did not understand, Les. It is NOT running from the web interface. it IS running from the command line. That is my problem. +-- |This was sent by fujisa...@gmail.com via Backup Central. |Forward SPAM to ab...@backupcentral.com. +-- -- ___ 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] Fatal error (bad version): /sbin/nologin: invalid option
Well, when i do su backuppc it says This account is currently not available. But that's normal because the shell is set to /sbin/nologin. Fuji +-- |This was sent by fujisa...@gmail.com via Backup Central. |Forward SPAM to ab...@backupcentral.com. +-- -- ___ 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] Fatal error (bad version): /sbin/nologin: invalid option
I have noticed that when I run the backup from the web UI, I see this line: Got remote protocol 1768059695 but when i run it on the command line, I see this one: Got remote protocol 31 That number (31 or 1768059695) is a version number as seen in the file /usr/lib64/perl5/vendor_perl/File/RsyncP.pm in the remoteStart function. That version number is supposed to be between 20 and 40. With a version number of 1768059695, the function remoteStart crashes with the message starting with "Fatal error (bad version):" (line 407-408 of /usr/lib64/perl5/vendor_perl/File/RsyncP.pm from package perl-File-RsyncP-0.74-1.fc22.x86_64). So there seems to be a bug in BackupPC somewhere. Where is that number 1768059695 coming from? I have BackupPC-3.3.1-1.fc22.x86_64 installed on Fedora 22. Regards, Fuji +-- |This was sent by fujisa...@gmail.com via Backup Central. |Forward SPAM to ab...@backupcentral.com. +-- -- ___ 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] Fatal error (bad version): /sbin/nologin: invalid option
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 lifid1...@einrot.com via Backup Central. |Forward SPAM to ab...@backupcentral.com. +-- -- ___ 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/