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

Solution Verified - Updated -


  • 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/", line 108, in call_function
       response = apply(func, params)
     File "/usr/share/rhn/server/", line 166, in repodata
       output = repo.get_repomd_file()
     File "/usr/share/rhn/server/repomd/", line 335, in get_repomd_file
     File "/usr/share/rhn/server/repomd/", line 377, in __compute_checksums
       template_hash = self.__compute_open_checksum(timestamp, xml_file)
     File "/usr/share/rhn/server/repomd/", line 371, in __compute_open_checksum
       template_hash['open_checksum'] = self.__get_file_checksum(xml_file)
     File "/usr/share/rhn/server/repomd/", line 361, in __get_file_checksum
       chunk =
    AttributeError: 'NoneType' object has no attribute 'read'


  • 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