develooper Front page | perl.perl5.porters | Postings from July 2019

"Damaged tar archive" for perl-5.32.2 on ftp calls from CPAN mirrors

Thread Next
James E Keenan
July 22, 2019 00:55
"Damaged tar archive" for perl-5.32.2 on ftp calls from CPAN mirrors
Message ID:
My CPAN-River-3000 program uses Net::FTP-wrapped ftp calls to query a 
CPAN mirror for the presence of a new monthly development release 
tarball.  Hence, once a month it downloads a tarball via ftp to a 
tempdir, unpacks the tarball and builds a dev release of perl which is 
installed elsewhere on disk.

Today, when attempting to run the program, I noticed that the tarball 
had not yet appeared at my customary ftp site:  So I manually 
adjusted the cron job to try a different FTP mirror (adjusting both the 
host and hostdir as needed).  I started here:

Identified 602 perl releases at
Performing FTP 'get' call for: perl-5.31.2.tar.gz
Elapsed time for FTP 'get' call: 228 seconds
See: /tmp/HZpKrcdLfp/perl-5.31.2.tar.gz
Path to tarball is /tmp/HZpKrcdLfp/perl-5.31.2.tar.gz
Located release_dir: /home/jkeenan/var/tad/testing/perl-5.31.2
tar: Damaged tar archive
tar: Retrying...
... [# Above 2 lines repeated hundreds of times]
tar: Damaged tar archive
tar: Retrying...
Tarball has been untarred into /tmp/HZpKrcdLfp/perl-5.31.2
Configuring perl with 'sh ./Configure -des -Dusedevel  -Uversiononly 
-Dman1dir=none -Dman3dir=none -Duseithreads -Doptimize="-O2 -pipe 
-fstack-protector -fno-strict-aliasing" 
-Dprefix=/home/jkeenan/var/tad/testing/perl-5.31.2 1>/dev/null'
sh: cannot open ./Configure: No such file or directory
Unable to configure with 'sh ./Configure -des -Dusedevel  -Uversiononly 
-Dman1dir=none -Dman3dir=none -Duseithreads -Doptimize="-O2 -pipe 
-fstack-protector -fno-strict-aliasing" 
-Dprefix=/home/jkeenan/var/tad/testing/perl-5.31.2 1>/dev/null' at 
/home/jkeenan/bin/perl/ line 275.
cannot remove path when cwd is /tmp/HZpKrcdLfp/perl-5.31.2 for 
/tmp/HZpKrcdLfp:  at /usr/local/lib/perl5/5.28/File/ line 784.

So the program diagnosed the tarball as damaged in some way, but 
eventually unpacked it (or claimed to unpack it).  However, 
configuration very quickly failed.  When I cd-ed into the tempdir for 
unpacking, I saw that fewer than a dozen files had been properly unpacked.

I then tried two other FTP mirrors -- with similar results.

Identified 498 perl releases at

Identified 602 perl releases at

When I did a manual 'wget' call to the ftp mirror, I downloaded an 
apparently undamaged tarball.

I've now run the CPAN-River-3000 program, together with its embedded 
tarball download via FTP, many, many dozens of times.  I have never 
previously gotten this "Damaged tar archive" message.

Can anyone suggest a reason why this is happening this month?

Thank you very much.
Jim Keenan

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About