Traceback error "AttributeError: 'NoneType' object has no attribute 'read' " when adding packages to Satellite channel
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 of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
