3/11/09

doing a yum update broke backuppc "backup failed (can't find Compress::Zlib)"

Centos's yum perl package doesn't include XS support, causing the error in backuppc "backup failed (can't find Compress::Zlib)"

Issue was with, /usr/lib/perl5/site_perl/5.8.8/Compress/Zlib.pm
use Scalar::Util qw(dualvar);

Test with:

[root@]# perl -W
use Scalar::Util qw(dualvar);
Use of uninitialized value in concatenation (.) or string at /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/Scalar/Util.pm line 30.
is only avaliable with the XS version at - line 1
BEGIN failed--compilation aborted at - line 1.

To Fix:

cpan: install xs
cpan: force install Scalar::Util

rerun

[root@wailord log]# perl -W
use Scalar::Util qw(dualvar);

and you should see no error messages. Rerun an update on a host in backuppc and it should succeed.

......

ADDED NOTES! --

The next day, for some reason the backups where corrupt, it seems that the zlib package that I downgraded to caused some issues as well!

These were the packages that were updated that seemed to break something:
Mar 10 09:55:34 Updated: perl - 4:5.8.8-15.el5_2.1.x86_64
Mar 10 09:55:37 Updated: perl-Compress-Raw-Zlib - 2.015-1.el5.rf.x86_64
Mar 10 09:55:38 Updated: perl-DBI - 1.607-1.el5.rf.x86_64
Mar 10 09:55:39 Updated: perl-IO-Compress-Base - 2.015-1.el5.rf.noarch
Mar 10 09:55:45 Updated: perl-IO-Compress-Zlib - 2.015-1.el5.rf.noarch

And I downgraded zlib thinking that could fix it to:

Mar 11 11:35:52 Installed: perl-Compress-Zlib - 1.42-1.fc6.x86_64

Ended up upgrading back to the following:

Mar 12 10:42:29 Installed: perl-Compress-Raw-Zlib - 2.015-1.el5.rf.x86_64
Mar 12 10:42:29 Installed: perl-IO-Compress-Base - 2.015-1.el5.rf.noarch
Mar 12 10:42:29 Installed: perl-DBD-mysql - 4.010-1.el5.rf.x86_64
Mar 12 10:42:29 Installed: perl-IO-Compress-Zlib - 2.015-1.el5.rf.noarch
Mar 12 10:42:29 Updated: perl-Compress-Zlib - 2.015-1.el5.rf.noarch

This fixed the corrupt backups issue.

1 comment:

  1. Thanks! That was a useful fix that could have taken me a while to figure out.

    ReplyDelete