Satellite receiving traceback "TypeError: unsubscriptable object" error while trying to update client connected to satellite

Solution Verified - Updated -

Issue

  • Client system registered on RHN Satellite server throws following error while running "yum check-update" for updates.

    # yum check-update 
    Loaded plugins: rhnplugin, security 
    Error: Cannot retrieve repository metadata (repomd.xml)  for repository: rhel-i386-server-5. Please verify its path and try again
    
  • Client system registered on RHN Satellite server throwing following error while running "yum update" for updates:

    if v[0] != 32 or not self.auto_open:
    IndexError: tuple index out of range
    
  • At same time, following traceback error generates on RHN Satellite server

    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 334, in
    get_repomd_file
        self.repository.get_updateinfo_xml_file(),
      File "/usr/share/rhn/server/repomd/repository.py", line 107, in
    get_updateinfo_xml_file
        viewobj.write_updateinfo()
      File "/usr/share/rhn/server/repomd/view.py", line 304, in write_updateinfo
        for erratum in self.channel.errata:
      File "/usr/share/rhn/server/repomd/mapper.py", line 134, in _erratum_generator
        erratum = self.erratum_mapper.get_erratum(erratum_id[0])
      File "/usr/share/rhn/server/repomd/mapper.py", line 455, in get_erratum
        package = self.package_mapper.get_package(package_id)
      File "/usr/share/rhn/server/repomd/mapper.py", line 161, in get_package
        last_modified = str(self.mapper.last_modified(package_id))
      File "/usr/share/rhn/server/repomd/mapper.py", line 300, in last_modified
        return self.last_modified_sql.fetchone()[0]
    TypeError: unsubscriptable object
    

Environment

  • Red Hat Network Satellite 5

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In