Integrity Error During channel sync

Solution Unverified - Updated -

Environment

  • Red Hat Satellite 5.6

Issue

  • When running:
satellite-sync \
--channel=rhel-i386-server-5 \
--channel=rhn-tools-rhel-i386-server-5 \
--channel=rhel-i386-server-productivity-5

the following error is given:

IntegrityError: null value in column "package_id" violates not-null constraint
------------------------

Resolution

  • Clear /var/cache/rhn/satsync on the Red Hat Satellite and then sync correctly using a different proxy server.

Root Cause

  • The root problem was caused by internal proxy servers, which were set for load balancing. It was sometimes dropping the satellite-sync connection in the middle of some downloads, which resulted in some file corruption.

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.