This system is registered with an entitlement server, but is not receiving updates. You can use subscription-manager to assign subscriptions

I run the dnf update and yum update commands and getting this message on my RHEL 8 server:

This system is registered with an entitlement server, but is not receiving updates. You can use subscription-manager to assign subscriptions.

How do I fix this? I am pretty sure my subscription is not expiered. Any ideas?

Hey guys,

Sorry about the post. I ran

subscription-manager status  

It now says:

+-------------------------------------------+
   System Status Details
+-------------------------------------------+
Overall Status: Invalid

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

Red Hat CodeReady Linux Builder for x86_64:
- Not supported by a valid subscription.

System Purpose Status: Not Specified

I also did:

subscription-manager list
+-------------------------------------------+
    Installed Product Status
+-------------------------------------------+
Product Name:   Red Hat Enterprise Linux for x86_64
Product ID:     479
Version:        8.5
Arch:           x86_64
Status:         Not Subscribed
Status Details: Not supported by a valid subscription.
Starts:         
Ends:           

Product Name:   Red Hat CodeReady Linux Builder for x86_64
Product ID:     491
Version:        8.5
Arch:           x86_64
Status:         Not Subscribed
Status Details: Not supported by a valid subscription.
Starts:         
Ends:           

I will now check RHN portal. I guess our subscription is expired.

I finally fixed it. These are the commands if anyone needs them:

sudo -i
subscription-manager remove --all
subscription-manager unregister
subscription-manager clean
dnf clean all
rm -rf /var/cache/yum/*
subscription-manager register
subscription-manager attach --auto

Now when I do

subscription-manager list 

I get the confirmation:

+-------------------------------------------+
    Installed Product Status
+-------------------------------------------+
Product Name:   Red Hat Enterprise Linux for x86_64
Product ID:     479
Version:        8.5
Arch:           x86_64
Status:         Subscribed
Status Details: 
Starts:         03/03/2022
Ends:           03/02/2023

Product Name:   Red Hat CodeReady Linux Builder for x86_64
Product ID:     491
Version:        8.5
Arch:           x86_64
Status:         Subscribed
Status Details: 
Starts:         03/03/2022
Ends:           03/02/2023