Red Hat Satellite 5.x throw traceback with error message " AttributeError: 'NoneType' object has no attribute 'close' "

Solution Verified - Updated -

Issue

  • Red Hat Satellite 5.x throw the following traceback while updating client systems
        Exception Handler Information
        Traceback (most recent call last):
        File "/usr/share/rhn/server/apacheRequest.py", line 120, in call_function
        response = apply(func, params)
        File "/usr/share/rhn/server/rhnRepository.py", line 251, in repodata
        return self._repodata_taskomatic(file_name)
        File "/usr/share/rhn/server/rhnRepository.py", line 220, in _repodata_taskomatic
        return self._repodata_python(file_name)
        File "/usr/share/rhn/server/rhnRepository.py", line 200, in _repodata_python
        output = rpclib.File(output, name=file_name)
        File "/usr/lib/python2.4/site-packages/rhn/transports.py", line 781, in __init__
        self.close = file_obj.close
        AttributeError: 'NoneType' object has no attribute 'close'

Environment

  • Red Hat Satellite 5.x

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