How to fix invalid subscription

Latest response

Subscription manager reports that the status is invalid. How to fix it?

[root@kht-notebook ~]# subscription-manager status
+-------------------------------------------+
System Status Details
+-------------------------------------------+
Overall Status: Invalid

Red Hat Developer Tools (for RHEL Server):
- Not supported by a valid subscription.

[root@kht-notebook ~]#

Responses

Did you try to refresh and check? If not, try this out:

# subscription-manager refresh
# subscription-manager attach --auto
# subscription-manager status

If this doesn't help then try un-register it from the system and then re-register and check.

# subscription-manager remove --all
# subscription-manager unregister
# subscription-manager clean

After this try to register it back:

# subscription-manager register
# subscription-manager attach --auto

I have even tried reinstalling the OS a few times. The funny thing is yum is able to download packages from that channel.

Okay, what happens if you run "yum clean all" and then "yum repolist", does it still works in installing packages from Red Hat channels? Please share the output of "yum repolist"...

Check for available subscriptions using "subscription-manager list --available --all", and then try to manually attach subscription using pool ID "subscription-manager attach --pool="

yum repolist works

[root@kht-notebook ~]# yum clean all
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-
              : manager
Cleaning repos: rhel-7-server-devtools-rpms rhel-7-server-extras-rpms
              : rhel-7-server-optional-rpms rhel-7-server-rpms
              : rhel-7-server-rt-beta-rpms rhel-7-server-rt-rpms
              : rhel-server-rhscl-7-rpms
Cleaning up everything
Maybe you want: rm -rf /var/cache/yum, to also free up space taken by orphaned data from disabled or removed repos
[root@kht-notebook ~]# yum repolist
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-
              : manager
rhel-7-server-devtools-rpms                                                                                                                                                                 | 4.0 kB  00:00:00     
rhel-7-server-extras-rpms                                                                                                                                                                   | 3.4 kB  00:00:00     
rhel-7-server-optional-rpms                                                                                                                                                                 | 3.5 kB  00:00:00     
rhel-7-server-rpms                                                                                                                                                                          | 3.5 kB  00:00:00     
rhel-7-server-rt-beta-rpms                                                                                                                                                                  | 4.0 kB  00:00:00     
rhel-7-server-rt-rpms                                                                                                                                                                       | 4.0 kB  00:00:00     
rhel-server-rhscl-7-rpms                                                                                                                                                                    | 3.5 kB  00:00:00     
(1/21): rhel-7-server-devtools-rpms/x86_64/updateinfo                                                                                                                                       |  24 kB  00:00:00     
(2/21): rhel-7-server-devtools-rpms/x86_64/group                                                                                                                                            |  104 B  00:00:00     
(3/21): rhel-7-server-devtools-rpms/x86_64/primary_db                                                                                                                                       | 341 kB  00:00:00     
(4/21): rhel-7-server-extras-rpms/x86_64/group                                                                                                                                              |  104 B  00:00:00     
(5/21): rhel-7-server-extras-rpms/x86_64/updateinfo                                                                                                                                         | 201 kB  00:00:01     
(6/21): rhel-7-server-extras-rpms/x86_64/primary_db                                                                                                                                         | 292 kB  00:00:00     
(7/21): rhel-7-server-optional-rpms/7Server/x86_64/updateinfo                                                                                                                               | 1.7 MB  00:00:01     
(8/21): rhel-7-server-optional-rpms/7Server/x86_64/group                                                                                                                                    |  24 kB  00:00:01     
(9/21): rhel-7-server-rpms/7Server/x86_64/group                                                                                                                                             | 709 kB  00:00:00     
(10/21): rhel-7-server-optional-rpms/7Server/x86_64/primary_db                                                                                                                              | 6.0 MB  00:00:01     
(11/21): rhel-7-server-rpms/7Server/x86_64/updateinfo                                                                                                                                       | 2.3 MB  00:00:01     
(12/21): rhel-7-server-rt-beta-rpms/x86_64/updateinfo                                                                                                                                       |   76 B  00:00:01     
(13/21): rhel-7-server-rt-beta-rpms/x86_64/group                                                                                                                                            | 1.7 kB  00:00:01     
(14/21): rhel-7-server-rt-beta-rpms/x86_64/primary_db                                                                                                                                       |  13 kB  00:00:00     
(15/21): rhel-7-server-rt-rpms/7Server/x86_64/group                                                                                                                                         | 1.8 kB  00:00:00     
(16/21): rhel-7-server-rt-rpms/7Server/x86_64/updateinfo                                                                                                                                    |  63 kB  00:00:00     
(17/21): rhel-7-server-rt-rpms/7Server/x86_64/primary_db                                                                                                                                    | 100 kB  00:00:00     
(18/21): rhel-server-rhscl-7-rpms/7Server/x86_64/updateinfo                                                                                                                                 | 760 kB  00:00:00     
(19/21): rhel-server-rhscl-7-rpms/7Server/x86_64/group                                                                                                                                      |  104 B  00:00:01     
(20/21): rhel-server-rhscl-7-rpms/7Server/x86_64/primary_db                                                                                                                                 | 4.2 MB  00:00:03     
(21/21): rhel-7-server-rpms/7Server/x86_64/primary_db                                                                                                                                       |  43 MB  00:00:08     
repo id                                                                                 repo name                                                                                                            status
rhel-7-server-devtools-rpms/x86_64                                                      Red Hat Developer Tools RPMs for Red Hat Enterprise Linux 7 Server                                                      385
rhel-7-server-extras-rpms/x86_64                                                        Red Hat Enterprise Linux 7 Server - Extras (RPMs)                                                                       639
rhel-7-server-optional-rpms/7Server/x86_64                                              Red Hat Enterprise Linux 7 Server - Optional (RPMs)                                                                  12,801
rhel-7-server-rpms/7Server/x86_64                                                       Red Hat Enterprise Linux 7 Server (RPMs)                                                                             17,188
rhel-7-server-rt-beta-rpms/x86_64                                                       Red Hat Enterprise Linux for Real Time Beta (RHEL 7 Server) (RPMs)                                                       15
rhel-7-server-rt-rpms/7Server/x86_64                                                    Red Hat Enterprise Linux for Real Time (RHEL 7 Server) (RPMs)                                                           226
rhel-server-rhscl-7-rpms/7Server/x86_64                                                 Red Hat Software Collections RPMs for Red Hat Enterprise Linux 7 Server                                               8,079
repolist: 39,333
[root@kht-notebook ~]# 

Running subscription-manager list --available --all

Something went wrong.

[root@kht-notebook ~]# subscription-manager list --available --all
No available subscription pools to list

Try to "unregister, clean and remove" subscription and register it back as explained before.

It does not work either.

[root@kht-notebook ~]# subscription-manager unregister
Unregistering from: subscription.rhsm.redhat.com:443/subscription
System has been unregistered.
[root@kht-notebook ~]# subscription-manager clean
All local data removed
[root@kht-notebook ~]# subscription-manager remove
Error: This command requires that you specify one of --serial, --pool or --all.
[root@kht-notebook ~]# subscription-manager register
Registering to: subscription.rhsm.redhat.com:443/subscription
Username: evantkh
Password: 
The system has been registered with ID: 88a5ab62-60d8-46d4-b40f-04b9a1e1c19a 
[root@kht-notebook ~]# subscription-manager attach --auto


Installed Product Current Status:
Product Name: Red Hat Software Collections (for RHEL Server)
Status:       Subscribed

Product Name: Red Hat Enterprise Linux Server
Status:       Subscribed

Product Name: Red Hat Developer Tools (for RHEL Server)
Status:       Not Subscribed

Unable to find available subscriptions for all your installed products.
[root@kht-notebook ~]# yum clean all
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
Cleaning repos: rhel-7-server-rpms rhel-7-server-rt-beta-rpms rhel-7-server-rt-rpms
Cleaning up everything
Maybe you want: rm -rf /var/cache/yum, to also free up space taken by orphaned data from disabled or removed repos
[root@kht-notebook ~]# yum repolist
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
rhel-7-server-rpms                                                                                                                                                                          | 3.5 kB  00:00:00     
rhel-7-server-rt-beta-rpms                                                                                                                                                                  | 4.0 kB  00:00:00     
rhel-7-server-rt-rpms                                                                                                                                                                       | 4.0 kB  00:00:00     
(1/9): rhel-7-server-rpms/7Server/x86_64/updateinfo                                                                                                                                         | 2.3 MB  00:00:00     
(2/9): rhel-7-server-rpms/7Server/x86_64/group                                                                                                                                              | 709 kB  00:00:00     
(3/9): rhel-7-server-rt-beta-rpms/x86_64/updateinfo                                                                                                                                         |   76 B  00:00:00     
(4/9): rhel-7-server-rt-beta-rpms/x86_64/group                                                                                                                                              | 1.7 kB  00:00:01     
(5/9): rhel-7-server-rt-beta-rpms/x86_64/primary_db                                                                                                                                         |  13 kB  00:00:00     
(6/9): rhel-7-server-rt-rpms/7Server/x86_64/group                                                                                                                                           | 1.8 kB  00:00:01     
(7/9): rhel-7-server-rt-rpms/7Server/x86_64/updateinfo                                                                                                                                      |  63 kB  00:00:01     
(8/9): rhel-7-server-rt-rpms/7Server/x86_64/primary_db                                                                                                                                      | 100 kB  00:00:01     
(9/9): rhel-7-server-rpms/7Server/x86_64/primary_db                                                                                                                                         |  43 MB  00:00:06     
repo id                                                                                repo name                                                                                                             status
rhel-7-server-rpms/7Server/x86_64                                                      Red Hat Enterprise Linux 7 Server (RPMs)                                                                              17,188
rhel-7-server-rt-beta-rpms/x86_64                                                      Red Hat Enterprise Linux for Real Time Beta (RHEL 7 Server) (RPMs)                                                        15
rhel-7-server-rt-rpms/7Server/x86_64                                                   Red Hat Enterprise Linux for Real Time (RHEL 7 Server) (RPMs)                                                            226
repolist: 17,429
[root@kht-notebook ~]# subscription-manager status
+-------------------------------------------+
   System Status Details
+-------------------------------------------+
Overall Status: Invalid

Red Hat Developer Tools (for RHEL Server):
- Not supported by a valid subscription.

[root@kht-notebook ~]# subscription-manager repos --enable rhel-7-devtools-rpms
Error: 'rhel-7-devtools-rpms' does not match a valid repository ID. Use "subscription-manager repos --list" to see valid repositories.
[root@kht-notebook ~]# subscription-manager repos --enable rhel-7-server-devtools-rpms
Repository 'rhel-7-server-devtools-rpms' is enabled for this system.
[root@kht-notebook ~]# subscription-manager repos --enable rhel-7-server-extras-rpms
Repository 'rhel-7-server-extras-rpms' is enabled for this system.
[root@kht-notebook ~]# subscription-manager repos --enable rhel-7-server-optional-rpms
Repository 'rhel-7-server-optional-rpms' is enabled for this system.
[root@kht-notebook ~]# subscription-manager repos --enable rhel-server-rhscl-7-rpms
Repository 'rhel-server-rhscl-7-rpms' is enabled for this system.
[root@kht-notebook ~]# yum clean all
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
Cleaning repos: rhel-7-server-devtools-rpms rhel-7-server-extras-rpms rhel-7-server-optional-rpms rhel-7-server-rpms rhel-7-server-rt-beta-rpms rhel-7-server-rt-rpms rhel-server-rhscl-7-rpms
Cleaning up everything
Maybe you want: rm -rf /var/cache/yum, to also free up space taken by orphaned data from disabled or removed repos
[root@kht-notebook ~]# rm -rf /var/cache/yum
[root@kht-notebook ~]# yum repolist
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
rhel-7-server-devtools-rpms                                                                                                                                                                 | 4.0 kB  00:00:00     
rhel-7-server-extras-rpms                                                                                                                                                                   | 3.4 kB  00:00:00     
rhel-7-server-optional-rpms                                                                                                                                                                 | 3.5 kB  00:00:00     
rhel-7-server-rpms                                                                                                                                                                          | 3.5 kB  00:00:00     
rhel-7-server-rt-beta-rpms                                                                                                                                                                  | 4.0 kB  00:00:00     
rhel-7-server-rt-rpms                                                                                                                                                                       | 4.0 kB  00:00:00     
rhel-server-rhscl-7-rpms                                                                                                                                                                    | 3.5 kB  00:00:00     
(1/21): rhel-7-server-devtools-rpms/x86_64/updateinfo                                                                                                                                       |  24 kB  00:00:00     
(2/21): rhel-7-server-devtools-rpms/x86_64/group                                                                                                                                            |  104 B  00:00:00     
(3/21): rhel-7-server-extras-rpms/x86_64/group                                                                                                                                              |  104 B  00:00:00     
(4/21): rhel-7-server-devtools-rpms/x86_64/primary_db                                                                                                                                       | 341 kB  00:00:00     
(5/21): rhel-7-server-extras-rpms/x86_64/updateinfo                                                                                                                                         | 201 kB  00:00:01     
(6/21): rhel-7-server-optional-rpms/7Server/x86_64/group                                                                                                                                    |  24 kB  00:00:00     
(7/21): rhel-7-server-extras-rpms/x86_64/primary_db                                                                                                                                         | 292 kB  00:00:00     
(8/21): rhel-7-server-rpms/7Server/x86_64/group                                                                                                                                             | 709 kB  00:00:00     
(9/21): rhel-7-server-optional-rpms/7Server/x86_64/updateinfo                                                                                                                               | 1.7 MB  00:00:01     
(10/21): rhel-7-server-rt-beta-rpms/x86_64/group                                                                                                                                            | 1.7 kB  00:00:00     
(11/21): rhel-7-server-rt-beta-rpms/x86_64/updateinfo                                                                                                                                       |   76 B  00:00:00     
(12/21): rhel-7-server-optional-rpms/7Server/x86_64/primary_db                                                                                                                              | 6.0 MB  00:00:01     
(13/21): rhel-7-server-rt-beta-rpms/x86_64/primary_db                                                                                                                                       |  13 kB  00:00:00     
(14/21): rhel-7-server-rt-rpms/7Server/x86_64/group                                                                                                                                         | 1.8 kB  00:00:00     
(15/21): rhel-7-server-rt-rpms/7Server/x86_64/updateinfo                                                                                                                                    |  63 kB  00:00:00     
(16/21): rhel-7-server-rpms/7Server/x86_64/updateinfo                                                                                                                                       | 2.3 MB  00:00:02     
(17/21): rhel-7-server-rt-rpms/7Server/x86_64/primary_db                                                                                                                                    | 100 kB  00:00:00     
(18/21): rhel-server-rhscl-7-rpms/7Server/x86_64/group                                                                                                                                      |  104 B  00:00:00     
(19/21): rhel-server-rhscl-7-rpms/7Server/x86_64/updateinfo                                                                                                                                 | 760 kB  00:00:01     
(20/21): rhel-server-rhscl-7-rpms/7Server/x86_64/primary_db                                                                                                                                 | 4.2 MB  00:00:04     
(21/21): rhel-7-server-rpms/7Server/x86_64/primary_db                                                                                                                                       |  43 MB  00:00:07     
repo id                                                                                 repo name                                                                                                            status
rhel-7-server-devtools-rpms/x86_64                                                      Red Hat Developer Tools RPMs for Red Hat Enterprise Linux 7 Server                                                      385
rhel-7-server-extras-rpms/x86_64                                                        Red Hat Enterprise Linux 7 Server - Extras (RPMs)                                                                       639
rhel-7-server-optional-rpms/7Server/x86_64                                              Red Hat Enterprise Linux 7 Server - Optional (RPMs)                                                                  12,801
rhel-7-server-rpms/7Server/x86_64                                                       Red Hat Enterprise Linux 7 Server (RPMs)                                                                             17,188
rhel-7-server-rt-beta-rpms/x86_64                                                       Red Hat Enterprise Linux for Real Time Beta (RHEL 7 Server) (RPMs)                                                       15
rhel-7-server-rt-rpms/7Server/x86_64                                                    Red Hat Enterprise Linux for Real Time (RHEL 7 Server) (RPMs)                                                           226
rhel-server-rhscl-7-rpms/7Server/x86_64                                                 Red Hat Software Collections RPMs for Red Hat Enterprise Linux 7 Server                                               8,079
repolist: 39,333
[root@kht-notebook ~]# 

Hello all,

Red Hat Developer Tools (for RHEL Server) rhel-7-server-devtools there are issues with this repository, so re-registration might not work at all.

RH Case 01922170 is not solved yet, so please do not try to fix this issue at the moment.

Regards,

Jan Gerrit

I could see that Robert Terzi & Christian in the community have confirmed that it is fixed https://access.redhat.com/discussions/3169821, accessing "Red Hat Developer Tools" repo channel works, you may have to re-check with Red Hat team regarding this. Thanks!

Hi Sadashiva,

The link you provide is (only) about the availability via Red Hat Package Browser, and yes, adding the repository and gain access to the RPMs works in my case, but as I said in my main thread - it "seems to work randomly for some users, for others not". :)

Regards,
Christian

I can access the repository from my account and my RHEL machine with yum but with invalid subscription status.

Hi Kwong Hei Tsang,

This is part of my support case, for I want to connect the repository to our RH Satellite, so I need to know which subscription I need to request for the Satellite manifest.

Will keep you posted.

Regards,

Jan Gerrit

Yeah, I remember now, thanks Jan.

Kwong Hei Tsang, you may raise a case with Red Hat team so that you could track it down until fixed.

Hi Kwong Hei Tsang,

If you open a RH case too, like I did Red Hat might give the issue a higher priority.

Regards,

Jan Gerrit

This is the solution for this RHEL install on my laptop.

[root@kht-notebook ~]# mv /etc/pki/product/394.pem /tmp
[root@kht-notebook ~]# subscription-manager status
+-------------------------------------------+
   System Status Details
+-------------------------------------------+
Overall Status: Current

[root@kht-notebook ~]#

The problem comes out again today.

Let the Red Hat team know about this, so that they are aware of the happenings.

I have re-opened the case.

red hat should reintroduce the recycle bin for this stupid subscription system and all other software systems which are not working stable yet

Hey Robert, what is that ? As much as one probably could understand your frustration, there's no reason to rant.
Nobody forces you to use Red Hat products and, there are a lot of alternatives available on the software market !

Regards,
Christian

Hello Robert,

Do you experience the same issue? For me this issue has be resolved by opening a support case.

Like Christian states expressing your frustration in this forum will not help you much.

If you have a working alternative open a support case of the type RfE or open a bugzilla.

Regards,

Jan Gerrit Kootstra

I did the following and it resolved my issue: Save /etc/pki/entitlement/, remove /etc/pki/entitlement/*.pem, then run subscription-manager refresh

I have a variation on this problem where status is good but refresh fails. Tried all the above without change in behavior. The main problem with this is it's preventing me from installing katello-agent from the satellite-tools repo.

[root@ps01 ~]# subscription-manager refresh
Invalid credentials.

[root@ps01 ~]# subscription-manager status
+-------------------------------------------+
   System Status Details
+-------------------------------------------+
Overall Status: Current

[root@tul1mddvrxxxx entitlement]# subscription-manager status +-------------------------------------------+ System Status Details +-------------------------------------------+ Overall Status: Invalid

Red Hat Enterprise Linux Server: - Not supported by a valid subscription.

I do get same issue; I tried above methods but still it didnt fix.