Unable to import content from extracted channel isos into a satellite 5

Solution Verified - Updated -

Environment

  • Red Hat Satellite 5
  • Satellite is Disconnected from RHN
  • Using the channel content isos from different download sets to populate the Satellite

Issue

  • Unable to import content from extracted channel isos into a satellite 5 with
Exception type <class 'spacewalk.satellite_tools.xmlSource.FatalParseException'>

Exception Handler Information
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/spacewalk/satellite_tools/xmlSource.py", line 131, in process
    self.__parser.parse(self.__stream)
  File "/usr/lib64/python2.6/xml/sax/expatreader.py", line 107, in parse
    xmlreader.IncrementalParser.parse(self, source)
  File "/usr/lib64/python2.6/xml/sax/xmlreader.py", line 125, in parse
    self.close()
  File "/usr/lib64/python2.6/xml/sax/expatreader.py", line 217, in close
    self.feed("", isFinal = 1)
  File "/usr/lib64/python2.6/xml/sax/expatreader.py", line 211, in feed
    self._err_handler.fatalError(exc)
  File "/usr/lib/python2.6/site-packages/spacewalk/satellite_tools/xmlSource.py", line 238, in fatalError
    raise FatalParseException(e._msg, e, e._locator)
FatalParseException: /var/rhn-sat-import/packages_short/44/rhn-package-84944.xml.gz:1:0: no element found

Resolution

To avoid this issue, do not extract content from different sets of downloads to the same destination, aka do not mix content from Full and Incremental sources in the same folders.

Root Cause

Some sources use the same filenames for their xml files ; mixing the two sources would corrupt the files and make it impossible to import the content.

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.