Thanks Craig... Right on the mark once again.... I had remmed out the blackout period because I didn't want it... as soon as I put it back in everything is back to working normally again....

Jamie


Craig Barratt <[EMAIL PROTECTED]>

03/02/2006 02:35 AM

To
Jamie Myers <[EMAIL PROTECTED]>
cc
backuppcmailinglist <[email protected]>
Subject
Re: [BackupPC-users] Error through GUI after backup





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
------------------------------------------------------------
Mail was checked for spam by the Freeware Edition of No Spam Today!
The Freeware Edition is free for personal and non-commercial use.
You can remove this notice by purchasing a full license! To order
or to find out more please visit: http://www.no-spam-today.com

Reply via email to