Jamie Myers writes:

> I was hoping someone out there could help me with this one. After rebuilding
> my BackupPC box I got it backing up some machines. I was able to look at the
> host status before the backups started, but once a backup has started on a
> host I get the following error:
> 
> Software error:
> 
> Can't use an undefined value as an ARRAY reference at
> /backup/scripts/lib/BackupPC/CGI/HostInfo.pm line 291.
> 
> For help, please send mail to the webmaster ([EMAIL PROTECTED]), giving this
> error message and the time and date of the error.

I suspect you installed a new version of BackupPC but
copied an older config.pl file over.

$Conf{BlackoutPeriods} is a new config variable that used
to be three different variables ($Conf{BlackoutHourBegin},
$Conf{BlackoutHourEnd} and $Conf{BlackoutWeekDays}).
The configure.pl script automatically handles this change
when you run it during an upgrade.

You should look in your main config.pl and see if
$Conf{BlackoutPeriods} is there.  I suspect it is missing.
If so, you can copy the definition from the installation
conf/config.pl file:

    #
    # One or more blackout periods can be specified.  If a client is
    # subject to blackout then no regular (non-manual) backups will
    # be started during any of these periods.  hourBegin and hourEnd
    # specify hours fro midnight and weekDays is a list of days of
    # the week where 0 is Sunday, 1 is Monday etc.
    #
    # For example:
    #
    #    $Conf{BlackoutPeriods} = [
    #   {
    #       hourBegin =>  7.0,
    #       hourEnd   => 19.5,
    #       weekDays  => [1, 2, 3, 4, 5],
    #   },
    #    ];
    #
    # specifies one blackout period from 7:00am to 7:30pm local time
    # on Mon-Fri.
    #
    # The blackout period can also span midnight by setting
    # hourBegin > hourEnd, eg:
    #
    #    $Conf{BlackoutPeriods} = [
    #   {
    #       hourBegin =>  7.0,
    #       hourEnd   => 19.5,
    #       weekDays  => [1, 2, 3, 4, 5],
    #   },
    #   {
    #       hourBegin => 23,
    #       hourEnd   =>  5,
    #       weekDays  => [5, 6],
    #   },
    #    ];
    #
    # This specifies one blackout period from 7:00am to 7:30pm local time
    # on Mon-Fri, and a second period from 11pm to 5am on Friday and
    # Saturday night.
    #
    $Conf{BlackoutPeriods} = [
        {
            hourBegin =>  7.0,
            hourEnd   => 19.5,
            weekDays  => [1, 2, 3, 4, 5],
        },
    ];

There could be some other missing config variables, but they
should usually default to something rather than giving an
error like above.

Craig


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
BackupPC-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/

Reply via email to