0

when i want to register my redhat machine . i get this type of error.

[root@client ~]# subscription-manager register 
Registering to: subscription.rhsm.redhat.com:443/subscription
Username: saiful31
Password: 
'NoneType' object has no attribute '__getitem__'

rhsm.log:-

[root@client ~]# tail -f /var/log/rhsm/rhsm.log
2020-10-22 17:15:32,891 [INFO] subscription-manager:3335:MainThread @connection.py:905 - Connection built: host=subscription.rhsm.redhat.com port=443 handler=/subscription auth=none
2020-10-22 17:15:42,418 [INFO] subscription-manager:3335:MainThread @connection.py:905 - Connection built: host=subscription.rhsm.redhat.com port=443 handler=/subscription auth=basic username=saiful31
2020-10-22 17:15:45,685 [ERROR] subscription-manager:3335:MainThread @managercli.py:215 - Error during registration: 'NoneType' object has no attribute '__getitem__'
2020-10-22 17:15:45,685 [ERROR] subscription-manager:3335:MainThread @managercli.py:216 - 'NoneType' object has no attribute '__getitem__'
Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/subscription_manager/managercli.py", line 1353, in _do_command
    owner_key = self._determine_owner_key(admin_cp)
  File "/usr/lib64/python2.7/site-packages/subscription_manager/managercli.py", line 1506, in _determine_owner_key
    return owners[0]['key']
TypeError: 'NoneType' object has no attribute '__getitem__'

what can i do now ??

2
  • Do you have an active RHEL subscription? I expect to see this if the subscription is expired or not active. Oct 22, 2020 at 15:09
  • recently my subscription is expired . so , i create another account . and try to register with this new account. and i also unregister previous subscription from this machine. whenever try with previous one, i can register. since previous one is expired ,so i can't use it.. but, with new one ,i get this type of error . Oct 22, 2020 at 15:36

1 Answer 1

1

I solved it in my case with:

sudo subscription-manager clean

then registering again

RHEL 7.9

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.