Hi,
I provisioned a new backuppc server (built from git tag 4.1.1) on Debian
8. I'm using the systemd unit file for starting the BackupPC daemon.
Problem is the SCGI listener doesn't respond when BackupPC is started via
systemctl. Any thoughts?
Below you will find the failure case via systemd, and details, followed by
a working case where I start the daemon manually. I use curl to validate
if the SCGI listener is responding to requests on localhost.
Relevant config bit:
# grep {SCGIServerPort} /etc/BackupPC/config.pl
$Conf{SCGIServerPort} = 7000;
Startup via systemctl (FAILURE CASE):
# systemctl start backuppc
# ps ax | grep BackupPC
2156 ? Ss 0:00 /usr/bin/perl /usr/local/BackupPC/bin/BackupPC
2158 ? SN 0:00 /usr/bin/perl
/usr/local/BackupPC/bin/BackupPC_Admin_SCGI
2159 ? SN 0:00 /usr/bin/perl
/usr/local/BackupPC/bin/BackupPC_Admin_SCGI
# tail /var/log/BackupPC/LOG
2017-04-12 16:04:44 Reading hosts file
2017-04-12 16:04:44 BackupPC started, pid 2156
2017-04-12 16:04:44 Running BackupPC_Admin_SCGI (pid=2158)
2017-04-12 16:04:44 Next wakeup is 2017-04-12 17:00:00
# ss -lnp | grep 7000
tcp LISTEN 0 5 *:7000 *:*
users:(("BackupPC_Admin_",pid=2159,fd=3),("BackupPC_Admin_",pid=2158,fd=3))
# curl localhost:7000
TIMES OUT / NO RESPONSE
Manual startup (WORKING CASE):
# install -d -o backuppc -g backup /var/run/BackupPC (normal systemd
service startup creates this directory)
# su - backuppc
$ /usr/local/BackupPC/bin/BackupPC
(in another shell)
# ps ax | grep BackupPC
2219 pts/0 S+ 0:00 /usr/bin/perl /usr/local/BackupPC/bin/BackupPC
2221 pts/0 SN 0:00 /usr/bin/perl
/usr/local/BackupPC/bin/BackupPC_Admin_SCGI
2222 pts/0 SN 0:00 /usr/bin/perl
/usr/local/BackupPC/bin/BackupPC_Admin_SCGI
# tail /var/log/BackupPC/LOG
2017-04-12 16:23:29 Reading hosts file
2017-04-12 16:23:29 BackupPC started, pid 2219
2017-04-12 16:23:29 Running BackupPC_Admin_SCGI (pid=2221)
2017-04-12 16:23:29 Next wakeup is 2017-04-12 17:00:00
# ss -lnp | grep 7000
tcp LISTEN 0 5 *:7000 *:*
users:(("BackupPC_Admin_",pid=2222,fd=3),("BackupPC_Admin_",pid=2221,fd=3))
# curl localhost:7000
curl: (52) Empty reply from server
Returns immediately -- this is the expected behavior. The web interface is
working at this point.
------------------------------------------------------------------------------
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
[email protected]
List: https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki: http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/