salt icon indicating copy to clipboard operation
salt copied to clipboard

Error performing checksum CentOS 5

Open leonhedding opened this issue 12 years ago • 8 comments

When attempting an update of my centos 5 machine I am getting a checksum error when updating from the repo documented here: http://copr.fedoraproject.org/coprs/saltstack/zeromq4/

leonhedding avatar Nov 03 '14 14:11 leonhedding

And the error is..... ?

terminalmage avatar Nov 03 '14 17:11 terminalmage

Error performing checksum was the error. This is the full error.

saltstack-zeromq4                                                                                                                                | 3.0 kB     00:00
saltstack-zeromq4/primary_db                                                                                                                     | 5.1 kB     00:00
http://copr-be.cloud.fedoraproject.org/results/saltstack/zeromq4/epel-5-i386/repodata/cbcf32bbf28b8e4e7660ce3976a1f8ad84de8abd0bfaee4fa56953ac9c1fb265-primary.sqlite.bz2: [Errno -3] Error performing checksum
Trying other mirror.
saltstack-zeromq4/primary_db                                                                                                                     | 5.1 kB     00:00
http://copr-be.cloud.fedoraproject.org/results/saltstack/zeromq4/epel-5-i386/repodata/cbcf32bbf28b8e4e7660ce3976a1f8ad84de8abd0bfaee4fa56953ac9c1fb265-primary.sqlite.bz2: [Errno -3] Error performing checksum
Trying other mirror.
Error: failure: repodata/cbcf32bbf28b8e4e7660ce3976a1f8ad84de8abd0bfaee4fa56953ac9c1fb265-primary.sqlite.bz2 from saltstack-zeromq4: [Errno 256] No more mirrors to try.

leonhedding avatar Nov 04 '14 08:11 leonhedding

Thanks. I edited your comment to use triple-graves to make it more readable.

This error seems to be because COPR is using sha256 checksums in its repo metadata. RHEL/CentOS 5 ships with Python 2.4 as the version used by yum, and the hashlib module (required for just about everything more complicated than md5) is not present in that version. It was, however, backported for Python 2.4 and is available on RHEL/CentOS 5 by installing the python-hashlib package.

Can you try installing python-hashlib, then proceeding with the zeromq upgrade as described in the installation instructions on the COPR page? If this works, I will add a note to the installation instructions reminding people to do this.

terminalmage avatar Nov 04 '14 08:11 terminalmage

That fixed the problem. yum updates now work. Thanks for the quick response.

leonhedding avatar Nov 04 '14 09:11 leonhedding

Thanks! I've updated the COPR page with a warning. I'll add a similar warning to the saltstack installation docs soon.

Thanks for confirming!

terminalmage avatar Nov 04 '14 09:11 terminalmage

We are mirroring the COPR salt-el5 repo to an internal machine. The repo is hosted on RHEL 7, and our RHEL 5 servers complained with the same error.

The fix was to run createrepo -d -s sha1 <path-to-rhel5-repo> on the repo host. The RHEL 5 servers were then able to proceed without issue.

Links: http://blog.debroglie.net/2011/08/19/errno-3-error-performing-checksum/

sastorsl avatar Aug 21 '15 08:08 sastorsl

Unfortunately, I don't control the hash algorithm used by COPR, so this issue would need to be addressed on the RedHat Bugzilla: https://bugzilla.redhat.com/enter_bug.cgi?product=Copr

terminalmage avatar Aug 21 '15 15:08 terminalmage

I've just verified that the salt-el5 repo, including zeromq-4, on COPR/saltstack works as expected on Centos 5.11 - fresh install with only has run yum -y update.

Since all el5 builds now are in the salt-el5 repo I would think this issue on longer applies since it concerns the zeromq4 repo which now contains only el6 and el7 builds.

I've also adjusted our internal repo copy as pr my previous post with regards to createrepo

sastorsl avatar Aug 21 '15 19:08 sastorsl