Traceback error "AttributeError: 'NoneType' object has no attribute 'read' " when adding packages to Satellite channel

Solution Verified - Updated -

Issue

  • custom channel seems to be corrupted
  • attempting to add/remove a package from channel
  • get errors like the following:

    Exception Handler Information
    Traceback (most recent call last):
     File "/usr/share/rhn/server/apacheRequest.py", line 108, in call_function
       response = apply(func, params)
     File "/usr/share/rhn/server/rhnRepository.py", line 166, in repodata
       output = repo.get_repomd_file()
     File "/usr/share/rhn/server/repomd/repository.py", line 335, in get_repomd_file
       self.compressed_repository.get_updateinfo_xml_file())
     File "/usr/share/rhn/server/repomd/repository.py", line 377, in __compute_checksums
       template_hash = self.__compute_open_checksum(timestamp, xml_file)
     File "/usr/share/rhn/server/repomd/repository.py", line 371, in __compute_open_checksum
       template_hash['open_checksum'] = self.__get_file_checksum(xml_file)
     File "/usr/share/rhn/server/repomd/repository.py", line 361, in __get_file_checksum
       chunk = xml_file.read(CHUNK_SIZE)
    AttributeError: 'NoneType' object has no attribute 'read'
    

Environment

  • Red Hat Network Satellite

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content