While uploading entitlement certificate on RHUA using "rhui-manager," it fails with "IndexError: list index out of range"

Solution Verified - Updated -


  • While uploading entitlement certificate using rhui-manager it fails with the error below:
Unexpected error caught at the shell level
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/rhui/tools/shell.py", line 86,
in safe_listen
  File "/usr/lib/python2.6/site-packages/rhui/tools/shell.py", line 112,
in listen
  File "/usr/lib/python2.6/site-packages/rhui/common/shell.py", line
186, in listen
    item.func(*args, **item.kwargs)
line 104, in new_certificate
  File "/usr/lib/python2.6/site-packages/rhui/tools/cert_manager.py",
line 273, in add_certificate
    entitlements = cert_utils.entitlements_in_cert(cert_filename)
  File "/usr/lib/python2.6/site-packages/rhui/common/cert_utils.py",
line 66, in entitlements_in_cert
    product_number = e.part[9]
IndexError: list index out of range
  • While trying to upload new entitlement certificates to the RHUA, it fails with :
             -= Red Hat Update Infrastructure Management Tool =-

-= Entitlements Manager =-

   l   list Red Hat content certificate entitlements
   c   list custom repository entitlements
   u   upload a new or updated Red Hat content certificate

                                               Connected: rhua.example.com
rhui (entitlements) => u

Full path to the new content certificate:

The RHUI will be updated with the following certificate:

Proceed? (y/n) y

An unexpected error has occurred during the last operation.
More information can be found in /root/.rhui/rhui.log.


  • Red Hat Update Infrastructure (RHUI) 2.1.1
  • Red Hat Subscription Manager (RHSM)

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