YUM Repository fails, error: Found a invalid/corrupt package

  • 7012873
  • 17-Jul-2013
  • 17-Jul-2013

Environment

Novell ZENworks Configuration Management 11 Bundles

Situation

When creating a YUM repository, an error may occur if multiple YUM repositories exist.

Error example:

[Create YUM Repo] [Found a invalid/corrupt package e7db5a3d91a3ce459b76d219af39698a.zc.Aborting YUM repo creation.]

Resolution

This is fixed in version 11.2 - see KB 7010044 "ZENworks Configuration Management 11.2 - update information and list of fixes" which can be found at https://www.novell.com/support

Cause

When multiple YUM repository creation tasks are executing simultaneously, this issue may occur. The problem is while getting metadata of RPM files first creating tmp.xml file to keep metadata info temporarily, after reading data from XML deleting tmp.xml file. Because of multiple YUM repository jobs running at same time, in that one job is creating XML and keeping data in that and another one is deleting XML file at the same time. So the first job is getting null data. Hence it is throwing an error saying:

Found a invalid/corrupt package e7db5a3d91a3ce459b76d219af39698a.zc.Aborting

This is due to using same tmp.xml (same path) file for all the YUM repository tasks.

Feedback service temporarily unavailable. For content questions or problems, please contact Support.