Austin,

Can you try the attached patch, I think it could fix the set1 and set2 errors.

Jean-Louis

On 07/11/17 02:58 PM, Austin S. Hemmelgarn wrote:
On 2017-11-07 10:22, Jean-Louis Martineau wrote:
Austin,

It's hard to say something with only the error message.

Can you post the amdump.<datestamp> and log.<datestamp>.0 for the 2
backup set that fail.

I've attached the files (I would put them inline, but one of the sets has over 100 DLE's, so the amdump file is huge, and the others are still over 100k each, and I figured nobody want's to try and wad through those in-line).

The set1 and set2 files are for the two backup sets that show the header mismatch error, and the set3 files are for the one that claims failures in the dump summary.
This message is the property of CARBONITE, INC. and may contain confidential or 
privileged information.
If this message has been delivered to you by mistake, then do not copy or 
deliver this message to anyone.  Instead, destroy it and notify me by reply 
e-mail
diff --git a/perl/Amanda/Recovery/Planner.pm b/perl/Amanda/Recovery/Planner.pm
index 7bf09c7..ecb8cc2 100644
--- a/perl/Amanda/Recovery/Planner.pm
+++ b/perl/Amanda/Recovery/Planner.pm
@@ -235,16 +235,24 @@ sub make_plan {
     my $self = shift;
     my %params = @_;
 
-    for my $rq_param (qw(plan_cb dumpspecs)) {
+    for my $rq_param (qw(plan_cb )) {
 	croak "required parameter '$rq_param' missing"
 	    unless exists $params{$rq_param};
     }
     my $status = $params{'status'};
     my $dumpspecs = $params{'dumpspecs'};
+    my $hostname = $params{'hostname'};
+    my $diskname = $params{'diskname'};
+    my $dump_timestamp = $params{'dump_timestamp'};
+    my $level = $params{'level'};
     my $src_labelstr = $params{'src_labelstr'};
 
     # first, get the set of dumps that match these dumpspecs
     my @dumps = Amanda::DB::Catalog::get_dumps(dumpspecs => $dumpspecs,
+					       hostname => $hostname,
+					       diskname => $diskname,
+					       dump_timestamp => $dump_timestamp,
+					       level => $level,
 					       status => $status,
 					       labelstr  => $src_labelstr);
 
diff --git a/perl/Amanda/Taper/Worker.pm b/perl/Amanda/Taper/Worker.pm
index 7f205be..c501a20 100644
--- a/perl/Amanda/Taper/Worker.pm
+++ b/perl/Amanda/Taper/Worker.pm
@@ -944,7 +944,10 @@ sub setup_and_start_dump {
 					undef);
 	my @storage_list = ( $self->{'src_storage'} );
 	Amanda::Recovery::Planner::make_plan(
-			dumpspecs => \@dumpspecs,
+			hostname => $self->{'hostname'},
+			diskname => $self->{'diskname'},
+			dump_timestamp => $self->{'datestamp'},
+			level => $self->{'level'},
 			changer => $chg,
 			storage_list => \@storage_list,
 			only_in_storage => 1,

Reply via email to