I am no perl expert, but here is my take on the messages in the logs.
If the messages are all warnings, I don't think that would be why BPC is
exiting. Nonetheless, here is how I think the messages can be
eliminated, but without having tested the suggestions (sorry!).
It looks like removing "my" from the three lines (226, 227 and 228) will
eliminate the message about masking, although the programmer probably
meant to remove the "my" declarations of these variables a few lines
earlier.
As for the message about %poolMapper, this is explained in
https://www.perlmonks.org/?node_id=188283 and
https://www.oreilly.com/library/view/advanced-perl-programming/1565922204/ch04.html
"References to Anonymous Subroutines"
i.e. change the declaration "sub generatePool" to be anonymous at line
93. Then, the two references to "generatePool" need to be altered,
accordingly, at lines 110 and 111.
On 2023-07-08 05:01, spindles seven wrote:
I upgraded the Debian Buster to Bookworm and the backuppc.service now will no
longer start. In the logs I see:
2023-07-08 12:17:05 Reading hosts file
2023-07-08 12:17:05 BackupPC 4.4.0 (Perl v5.32.1) started, pid 93
2023-07-08 12:17:05 Running BackupPC_Admin_SCGI (pid=184)
2023-07-08 12:17:05 Next wakeup is 2023-07-08 13:00:00
Variable "%poolMapper" will not stay shared at
/usr/local/BackupPC/lib/BackupPC/CGI/Metrics.pm line 98.
"my" variable $hostState masks earlier declaration in same scope at
/usr/local/BackupPC/lib/BackupPC/CGI/Metrics.pm line 226.
"my" variable $hostLastAttempt masks earlier declaration in same scope at
/usr/local/BackupPC/lib/BackupPC/CGI/Metrics.pm line 227.
"my" variable $hostDisabled masks earlier declaration in same scope at
/usr/local/BackupPC/lib/BackupPC/CGI/Metrics.pm line 228.
2023-07-08 12:48:11 Got signal TERM... cleaning up (exit code = 0)
Any advice how to resolve this will be appreciated.
Thanks,
Spindles7
_______________________________________________
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List: https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki: https://github.com/backuppc/backuppc/wiki
Project: https://backuppc.github.io/backuppc/
_______________________________________________
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List: https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki: https://github.com/backuppc/backuppc/wiki
Project: https://backuppc.github.io/backuppc/