[BackupPC-users] get host by script

2017-04-12 Thread higuita
Hi

I want to backup some cluster that needs a script to know what
machine is the master. So this mean that i can not use the
ClientNameAlias directly, but i'm using it to define the cluster name
so i can use more freedom for the backup name.

As backuppc uses the netbios if the dns fails, I'm trying to
"abuse" the NmbLookupFindHostCmd and by running manually i can see it is
working... the problem is that via backuppc, it then tried to do the
reverse NmbLookup for that IP and of course, it fails. As the $host in
NmbLookupCmd is the IP, i can not know what cluster it should return for
the reverse lookup. So the end result is the error:

"Dump failed: host clusterA has mismatching netbios name"

So is there any workaround for this? What other people that
need to get the host by a script do?

@Craig Barratt: How about adding a option to disable the
reverse netbios lookup?

Thanks
Higuita
-- 
Naturally the common people don't want war... but after all it is the
leaders of a country who determine the policy, and it is always a 
simple matter to drag the people along, whether it is a democracy, or
a fascist dictatorship, or a parliament, or a communist dictatorship.
Voice or no voice, the people can always be brought to the bidding of
the leaders. That is easy. All you have to do is tell them they are 
being attacked, and denounce the pacifists for lack of patriotism and
exposing the country to danger.  It works the same in every country.
   -- Hermann Goering, Nazi and war criminal, 1883-1946


pgpThHaSMZMcX.pgp
Description: OpenPGP digital signature
--
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] Cannot create /var/run/BackupPC ??

2017-04-12 Thread Steve Palm
Ah, I didn't update to 4.1.1, especially since If found the problem I didn't 
want to change anything until I had it resolved. LOL

I also saw reference to creating a file in /etc/tmpfiles.d/BackupPC.conf 
containing one line:
D /var/run/BackupPC 0775 root backuppc

This supposedly creates the file at a more "system" level before the script 
runs. They suggested doing this instead of having your startup script create 
it, but I don't know which is better.

Thanks for the reply!
 Steve


> On Apr 12, 2017, at 3:22 PM, Craig Barratt  > wrote:
> 
> Steve,
> 
> In 4.1.1 I added this directive to the systemd backuppc.service file:
> 
> RuntimeDirectory=BackupPC
> 
> which creates the /var/run/BackupPC directory just before it starts BackupPC.
> 
> Craig
> 
> On Wed, Apr 12, 2017 at 12:45 PM, Steve Palm  > wrote:
> Looked at the code, ${RunDir} is the location, and its s a directory not a 
> file.
> 
> Not sure why it couldn't be created, but I did so manually, changed ownership 
> to backuppc and it works.
> 
> Still don't know why it went wrong...
> 
> Steve
> 
> > On Apr 12, 2017, at 2:35 PM, Steve Palm  > > wrote:
> >
> > Hello,
> >
> > I had a hard server crash, seems a RAM module went bad. After diagnosing 
> > and getting it back up and running, BackupPC will no longer start. I simply 
> > get:
> >
> > systemd[1]: Starting SYSV: Starts and stops the BackupPC server...
> > runuser[6605]: pam_unix(runuser:session): session opened for user backuppc 
> > by (uid=0)
> > backuppc[6604]: Starting BackupPC: 2017-04-12 14:32:20 Can't create 
> > /var/run/BackupPC... quitting
> > runuser[6605]: pam_unix(runuser:session): session closed for user backuppc
> > backuppc[6604]: [FAILED]
> > systemd[1]: backuppc.service: control process exited, code=exited status=1
> > systemd[1]: Failed to start SYSV: Starts and stops the BackupPC server.
> > systemd[1]: Unit backuppc.service entered failed state.
> > systemd[1]: backuppc.service failed.
> >
> > I am puzzled because I hadn't changed anything configuration-wise, system 
> > or BackupPC, so I don't know why it won't start all of a sudden.
> >
> > I can manually (as root) touch /var/run/BackupPC without issue, so I am 
> > perplexed as to where to look from here.
> >
> > Any ideas?
> > --
> > 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/ 
> 
> --
> 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

Re: [BackupPC-users] Cannot create /var/run/BackupPC ??

2017-04-12 Thread Craig Barratt
Steve,

In 4.1.1 I added this directive to the systemd backuppc.service file:

RuntimeDirectory=BackupPC

which creates the /var/run/BackupPC directory just before it starts
BackupPC.

Craig

On Wed, Apr 12, 2017 at 12:45 PM, Steve Palm  wrote:

> Looked at the code, ${RunDir} is the location, and its s a directory not a
> file.
>
> Not sure why it couldn't be created, but I did so manually, changed
> ownership to backuppc and it works.
>
> Still don't know why it went wrong...
>
> Steve
>
> > On Apr 12, 2017, at 2:35 PM, Steve Palm  wrote:
> >
> > Hello,
> >
> > I had a hard server crash, seems a RAM module went bad. After diagnosing
> and getting it back up and running, BackupPC will no longer start. I simply
> get:
> >
> > systemd[1]: Starting SYSV: Starts and stops the BackupPC server...
> > runuser[6605]: pam_unix(runuser:session): session opened for user
> backuppc by (uid=0)
> > backuppc[6604]: Starting BackupPC: 2017-04-12 14:32:20 Can't create
> /var/run/BackupPC... quitting
> > runuser[6605]: pam_unix(runuser:session): session closed for user
> backuppc
> > backuppc[6604]: [FAILED]
> > systemd[1]: backuppc.service: control process exited, code=exited
> status=1
> > systemd[1]: Failed to start SYSV: Starts and stops the BackupPC server.
> > systemd[1]: Unit backuppc.service entered failed state.
> > systemd[1]: backuppc.service failed.
> >
> > I am puzzled because I hadn't changed anything configuration-wise,
> system or BackupPC, so I don't know why it won't start all of a sudden.
> >
> > I can manually (as root) touch /var/run/BackupPC without issue, so I am
> perplexed as to where to look from here.
> >
> > Any ideas?
> > 
> --
> > 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/
>
--
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] Cannot create /var/run/BackupPC ??

2017-04-12 Thread Steve Palm
Looked at the code, ${RunDir} is the location, and its s a directory not a file.

Not sure why it couldn't be created, but I did so manually, changed ownership 
to backuppc and it works.

Still don't know why it went wrong...

Steve

> On Apr 12, 2017, at 2:35 PM, Steve Palm  wrote:
> 
> Hello,
> 
> I had a hard server crash, seems a RAM module went bad. After diagnosing and 
> getting it back up and running, BackupPC will no longer start. I simply get:
> 
> systemd[1]: Starting SYSV: Starts and stops the BackupPC server...
> runuser[6605]: pam_unix(runuser:session): session opened for user backuppc by 
> (uid=0)
> backuppc[6604]: Starting BackupPC: 2017-04-12 14:32:20 Can't create 
> /var/run/BackupPC... quitting
> runuser[6605]: pam_unix(runuser:session): session closed for user backuppc
> backuppc[6604]: [FAILED]
> systemd[1]: backuppc.service: control process exited, code=exited status=1
> systemd[1]: Failed to start SYSV: Starts and stops the BackupPC server.
> systemd[1]: Unit backuppc.service entered failed state.
> systemd[1]: backuppc.service failed.
> 
> I am puzzled because I hadn't changed anything configuration-wise, system or 
> BackupPC, so I don't know why it won't start all of a sudden.
> 
> I can manually (as root) touch /var/run/BackupPC without issue, so I am 
> perplexed as to where to look from here.
> 
> Any ideas?
> --
> 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] Cannot create /var/run/BackupPC ??

2017-04-12 Thread Steve Palm
Hello,

I had a hard server crash, seems a RAM module went bad. After diagnosing and 
getting it back up and running, BackupPC will no longer start. I simply get:

systemd[1]: Starting SYSV: Starts and stops the BackupPC server...
runuser[6605]: pam_unix(runuser:session): session opened for user backuppc by 
(uid=0)
backuppc[6604]: Starting BackupPC: 2017-04-12 14:32:20 Can't create 
/var/run/BackupPC... quitting
runuser[6605]: pam_unix(runuser:session): session closed for user backuppc
backuppc[6604]: [FAILED]
systemd[1]: backuppc.service: control process exited, code=exited status=1
systemd[1]: Failed to start SYSV: Starts and stops the BackupPC server.
systemd[1]: Unit backuppc.service entered failed state.
systemd[1]: backuppc.service failed.

I am puzzled because I hadn't changed anything configuration-wise, system or 
BackupPC, so I don't know why it won't start all of a sudden.

I can manually (as root) touch /var/run/BackupPC without issue, so I am 
perplexed as to where to look from here.

Any ideas?
--
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] SCGI + systemd Problem

2017-04-12 Thread Nicholas Hall
Here's status.  It looks about the same other than that benign log entry
about the PID

# systemctl status backuppc
● backuppc.service - BackupPC server
   Loaded: loaded (/etc/systemd/system/backuppc.service; enabled)
   Active: active (running) since Wed 2017-04-12 18:13:58 UTC; 7s ago
  Process: 4325 ExecStart=/usr/local/BackupPC/bin/BackupPC -d (code=exited,
status=0/SUCCESS)
 Main PID: 4328 (BackupPC)
   CGroup: /system.slice/backuppc.service
   ├─4328 /usr/bin/perl /usr/local/BackupPC/bin/BackupPC -d
   ├─4329 /usr/bin/perl /usr/local/BackupPC/bin/BackupPC_Admin_SCGI
   └─4330 /usr/bin/perl /usr/local/BackupPC/bin/BackupPC_Admin_SCGI

Apr 12 18:13:58 us-backuppc systemd[1]: Starting BackupPC server...
Apr 12 18:13:58 us-backuppc systemd[1]: PID file
/var/run/BackupPC/BackupPC.pid not readable (yet?) after start.
Apr 12 18:13:58 us-backuppc systemd[1]: Started BackupPC server.


On Wed, Apr 12, 2017 at 1:13 PM Richard Shaw  wrote:

> On Wed, Apr 12, 2017 at 1:06 PM, Nicholas Hall  wrote:
>
> Good question!
>
> I have an update: everything works fine when started via systemd when I
> change the unit file to Type=forking.  Wondering how reproducible the
> problem is on other platforms...
>
>
> I was going to ask about that but said, "nah, that can't be it"...
>
> Can you do a systemctl status while running with forking? Are additional
> processes spawned?
>
> Thanks,
> Richard
>
--
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] Excluding folders from backup

2017-04-12 Thread Holger Parplies
Hi,

Sorin Srbu wrote on 2017-04-10 06:14:07 + [Re: [BackupPC-users] Excluding 
folders from backup]:
> > From: Holger Parplies [mailto:wb...@parplies.de]
> > [...]
> > 
> > Almost. In fact, an exclude for "*" is applied to all shares *which don't
> > have a specific exclude*. So, if you used, for example,
> > 
> > $Conf {BackupFilesExclude} = {
> > '/home/sorin' => [
> > '/Videos'
> > ],
> > '*' => [
> > '/ownCloud'
> > ]
> > };
> > 
> > /home/sorin/Videos would be excluded, but /home/sorin/ownCloud would
> > *not*!
> 
> Hmm. This could be applied to all cache-folders I don't want backed up.
> With the info above, I'd need to add * and /cache, /Cache and perhaps
> /.cache and /.Cache to catch them all.
> 
> Am I thinking correctly now?

I'm not sure I understand you correctly. If you want to exclude those
directories everywhere, the exclude

$Conf {BackupFilesExclude} = {
'*' => [
'/cache',
'/Cache',
'/.cache',
'/.Cache',
],
};

would work, ***however***, if you have more keys, for example

'/home/sorin' => [
'/Videos',
'/ownCloud',
],

you would need to copy the cache-related excludes into that also, i.e.

'/home/sorin' => [
'/Videos',
'/ownCloud',
'/cache',
'/Cache',
'/.cache',
'/.Cache',
],

because the '*' excludes *don't apply* for shares with a specific exclude,
as I tried to explain above.

Hope that makes it clearer.

Regards,
Holger

--
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] SCGI + systemd Problem

2017-04-12 Thread Richard Shaw
On Wed, Apr 12, 2017 at 1:06 PM, Nicholas Hall  wrote:

> Good question!
>
> I have an update: everything works fine when started via systemd when I
> change the unit file to Type=forking.  Wondering how reproducible the
> problem is on other platforms...
>

I was going to ask about that but said, "nah, that can't be it"...

Can you do a systemctl status while running with forking? Are additional
processes spawned?

Thanks,
Richard
--
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] SCGI + systemd Problem

2017-04-12 Thread Nicholas Hall
Good question!

I have an update: everything works fine when started via systemd when I
change the unit file to Type=forking.  Wondering how reproducible the
problem is on other platforms...

# /etc/systemd/system/backuppc.service
[Unit]
Description=BackupPC server
After=syslog.target local-fs.target

[Service]
Type=forking
User=backuppc
Group=backup
ExecStart=/usr/local/BackupPC/bin/BackupPC -d
RuntimeDirectory=BackupPC
PIDFile=/var/run/BackupPC/BackupPC.pid
KillSignal=SIGTERM
Restart=always
RestartSec=1

[Install]
WantedBy=multi-user.target


On Wed, Apr 12, 2017 at 12:47 PM Richard Shaw  wrote:

> Hmm... nothing jumping out at me there... I don't use SCGI so I'm not
> familiar with it but systemd works fine on my CentOS 7 and Fedora boxes...
>
> Now one thing to consider is that when systemd runs a process it's not in
> a shell and doesn't get a standard environment... Are there any environment
> variables that need to be defined?
>
> Thanks,
> Richard
>
> --
> 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] SCGI + systemd Problem

2017-04-12 Thread Richard Shaw
Hmm... nothing jumping out at me there... I don't use SCGI so I'm not
familiar with it but systemd works fine on my CentOS 7 and Fedora boxes...

Now one thing to consider is that when systemd runs a process it's not in a
shell and doesn't get a standard environment... Are there any environment
variables that need to be defined?

Thanks,
Richard
--
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] SCGI + systemd Problem

2017-04-12 Thread Nicholas Hall
On Wed, Apr 12, 2017 at 12:15 PM Richard Shaw  wrote:

> May not help any but what about:
>
> (after systemd startup)
> # systemctl status backuppc
>

> # systemctl cat backuppc
>

# systemctl status backuppc
● backuppc.service - BackupPC server
   Loaded: loaded (/etc/systemd/system/backuppc.service; enabled)
   Active: active (running) since Wed 2017-04-12 17:16:36 UTC; 2min 41s ago
 Main PID: 2284 (BackupPC)
   CGroup: /system.slice/backuppc.service
   ├─2284 /usr/bin/perl /usr/local/BackupPC/bin/BackupPC
   ├─2286 /usr/bin/perl /usr/local/BackupPC/bin/BackupPC_Admin_SCGI
   └─2288 /usr/bin/perl /usr/local/BackupPC/bin/BackupPC_Admin_SCGI

Apr 12 17:16:36 us-backuppc systemd[1]: Started BackupPC server.

# systemctl cat backuppc
# /etc/systemd/system/backuppc.service
[Unit]
Description=BackupPC server
After=syslog.target local-fs.target

[Service]
Type=simple
User=backuppc
Group=backup
ExecStart=/usr/local/BackupPC/bin/BackupPC
RuntimeDirectory=BackupPC
PIDFile=/var/run/BackupPC/BackupPC.pid
KillSignal=SIGTERM
Restart=always
RestartSec=1

[Install]
WantedBy=multi-user.target
--
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] SCGI + systemd Problem

2017-04-12 Thread Richard Shaw
May not help any but what about:

(after systemd startup)
# systemctl status backuppc

and

# systemctl cat backuppc

Thanks,
Richard
--
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] SCGI + systemd Problem

2017-04-12 Thread Nicholas Hall
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
tcpLISTEN 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/0S+ 0:00 /usr/bin/perl /usr/local/BackupPC/bin/BackupPC
 2221 pts/0SN 0:00 /usr/bin/perl
/usr/local/BackupPC/bin/BackupPC_Admin_SCGI
  pts/0SN 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
tcpLISTEN 0  5  *:7000  *:*

 users:(("BackupPC_Admin_",pid=,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
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/