Amanda-Users

Version 2.5.0p2: amstatus parse error for logfile from older version

2006-06-12 08:43:08
Subject: Version 2.5.0p2: amstatus parse error for logfile from older version
From: Toralf Lund <toralf AT procaptura DOT com>
To: Amanda Mailing List <amanda-users AT amanda DOT org>
Date: Mon, 12 Jun 2006 14:28:23 +0200
I'm trying to run "amstatus" on existing logfiles after upgrading from version 2.4.4p3 to 2.5.0p2. Unfortunately, the command will most of the time fail with a message like:

amstatus ks --file  /dumps/amanda/ks/log/amdump.1
Using /dumps/amanda/ks/log/amdump.1 from Thu Jun  8 17:04:30 CEST 2006
ERROR getting estimates 0 (909420) -1 (-1) -1 (-1) at /usr/sbin/amstatus line 213, <AMDUMP> line 74.

The error seems to come from the following section of PERL code:

       if(/getting estimates (-?\d) \(-2\) (-?\d) \(-2\) (-?\d) \(-2\)/) {
           if($1 != -1) { $getest{$hostpart} .= ":$1:" };
           if($2 != -1) { $getest{$hostpart} .= ":$2:" };
           if($3 != -1) { $getest{$hostpart} .= ":$3:" };
       }
       else {
           die("ERROR $_");
       }

Which does not really make sense to me. Am I missing something, or does the above match operator *require* a number of ocurreces of the string "(-2)" (as opposed to "some value in brackets")?

Isn't the new amstatus expected to work with old logfiles?

- Toralf


<Prev in Thread] Current Thread [Next in Thread>
  • Version 2.5.0p2: amstatus parse error for logfile from older version, Toralf Lund <=