I recently decided to upgrade my long running BackupPC system (personal home instance). Since it's for personal use, I decided to give the BackupPC-4.0.0alpha3 a go. I installed on a CentOS 7 system.
My initial install went fine. I added four hosts and made several backups over the past several days. Today I restarted the sever to move some cabling around and now the BackupPC daemon wont start.
I ran /usr/local/BackupPC/bin/BackupPC manually and got no output and no errors, but the program just exited ( I expected it to run in the foreground without the -d option). I tried again several times, both with and without the -d option. No output, just exits and I can't find any instance of the BackupPC daemon running.
I tried running BackupPC as root and received the expected "Wrong user" message.
I added the -w flag after #!/usr/bin/perl in the BackupPC command file, hoping to get some help, but nothing stands out to me:
[backuppc@backuppc ~]$ /usr/local/BackupPC/bin/BackupPC
"my" variable $lockFd masks earlier declaration in same scope at /usr/local/BackupPC/lib/BackupPC/Storage/Text.pm line 474.
"my" variable $locked masks earlier declaration in same scope at /usr/local/BackupPC/lib/BackupPC/Storage/Text.pm line 474.
Statement unlikely to be reached at /usr/local/BackupPC/lib/BackupPC/Lib.pm line 1153.
(Maybe you meant system() when you said exec()?)
Statement unlikely to be reached at /usr/local/BackupPC/lib/BackupPC/Lib.pm line 1218.
(Maybe you meant system() when you said exec()?)
Statement unlikely to be reached at /usr/local/BackupPC/bin/BackupPC line 565.
(Maybe you meant system() when you said exec()?)
Statement unlikely to be reached at /usr/local/BackupPC/bin/BackupPC line 737.
(Maybe you meant system() when you said exec()?)
Possible attempt to separate words with commas at /usr/local/BackupPC/bin/BackupPC line 1314.
Name "BackupPC::Storage::Text::LOCK" used only once: possible typo at /usr/local/BackupPC/lib/BackupPC/Storage/Text.pm line 482.
Use of uninitialized value $topDir in string eq at /usr/local/BackupPC/lib/BackupPC/Lib.pm line 68.
Use of uninitialized value $installDir in string eq at /usr/local/BackupPC/lib/BackupPC/Lib.pm line 69.
Use of uninitialized value $confDir in string eq at /usr/local/BackupPC/lib/BackupPC/Lib.pm line 77.
Use of uninitialized value $host in string ne at /usr/local/BackupPC/lib/BackupPC/Lib.pm line 346.
Use of uninitialized value in string ne at /usr/local/BackupPC/bin/BackupPC line 244.
Regards,
David
--
David Cramblett