Error message while `yum update' "This system is registered to Red Hat Subscription Management, but is not receiving updates. You can use subscription-manager to assign subscriptions"
Environment
- Red Hat Subscription Manager
- Red Hat Enterprise Linux 5
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux 7
Issue
-
Error message while
yum update
:This system is registered to Red Hat Subscription Management, but is not receiving updates. You can use subscription-manager to assign subscriptions
-
From rhsm.log
[DEBUG] subscription-manager @identity.py:130 - Loading consumer info from identity certificates. [DEBUG] subscription-manager @connection.py:418 - Loaded CA certificates from /etc/rhsm/ca/: candlepin-stage.pem, redhat-uep.pem [DEBUG] subscription-manager @connection.py:450 - Making request: GET /subscription/status [DEBUG] subscription-manager @connection.py:473 - Response: status=200 [WARNING] subscription-manager @connection.py:477 - Clock skew detected, please check your system time [INFO] subscription-manager @managercli.py:299 - Server Versions: {'candlepin': '0.9.26-1', 'server-type': 'Red Hat Subscription Management'} subscription-manager @connection.py:418 - Loaded CA certificates from /etc/rhsm/ca/: candlepin-stage.pem, redhat-uep.pem subscription-manager @connection.py:450 - Making request: GET /subscription/ subscription-manager @connection.py:473 - Response: status=200
-
Issue shown:
[root@host]# yum update Loaded plugins: product-id, subscription-manager This system is registered to Red Hat Subscription Management, but is not receiving updates. You can use subscription-manager to assign subscriptions. There are no enabled repos. Run "yum repolist all" to see the repos you have. You can enable repos with yum-config-manager --enable <repo>
-
On portal system status showing
Subscribed
.
Resolution
-
Wrong date and time, reset the date and time in the system properly. It may also happen that system has registered but no subscription attached to it, below command can be used to auto attach available subscription,
# subscription-manager attach --auto
Root Cause
- Wrong date and time or subscription has not attached on system.
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
47 Comments
I have verified that my RHEL 6.6 x86_64 system suffering from this issue is indeed properly syncing time to the NTP server, matching our other servers, etc... The issue persists.
same issue here on RHEL 7.1
same issue on RHEL 7.1
The resolution in this case doesn't apply to subscription for Virtual Datacenters.
Redhat is the worst.
yes you are correct comparing to debian os red hat is worst
Even I am facing the same issue.. today only I have subscribed for 30 days Evolution but it is not syncing an giving me warning that " Not subscribed "
Same issue here on RHEL 7.2
[root@localhost ]# subscription-manager attach --auto
Installed Product Current Status: Product Name: Red Hat Enterprise Linux Server Status: Not Subscribed
Unable to find available subscriptions for all your installed products.
[DEBUG] subscription-manager:43467 @connection.py:475 - Loaded CA certificates from /etc/rhsm/ca/: redhat-uep.pem [DEBUG] subscription-manager:43467 @connection.py:523 - Making request: GET /subscription/consumers/969c0fed-b214-4cfa-a4ad-fcb5c5acc463 [DEBUG] subscription-manager:43467 @connection.py:555 - Response: status=200, requestUuid=954d562c-80c5-4c1a-9ca1-47cfdcc6338a [DEBUG] subscription-manager:43467 @cache.py:110 - Wrote cache: /var/lib/rhsm/cache/product_status.json [DEBUG] subscription-manager:43467 @cache.py:273 - Started thread to write cache: /var/lib/rhsm/cache/product_status.json [INFO] subscription-manager:43467 @managercli.py:201 - Attempted to auto-attach/heal the system. [INFO] rhsmd:43505 @rhsmd:229 - rhsmd started [DEBUG] rhsmd:43505 @rhsmd:184 - D-Bus interface com.redhat.SubscriptionManager.EntitlementStatus.update_status called with status = 1 [DEBUG] rhsmd:43505 @identity.py:131 - Loading consumer info from identity certificates. [DEBUG] rhsmd:43505 @rhsmd:152 - D-Bus signal com.redhat.SubscriptionManager.EntitlementStatus.entitlement_status_changed emitted
Worked on RHEL-7.
Worked for me on RHEL7
Same for REHL7.2. I'm register but i get : Installed Product Current Status: Product Name: Red Hat Enterprise Linux Server Status: Not Subscribed
Unable to find available subscriptions for all your installed products.
Any solutions? Already try subscription-manager attach --auto
In my case, using Red Hat Virtual Datacenter subscription, the issue was with the virt-who service, which was fixed with a service reload. I verified the visibility of the subscription from the server, subscription-manager list --available, and the web portal before doing the suggested solution, subscription-manager attach --auto. It worked like a charm.
Would be great if the error message would already suggest the right solution.
So I manage to subscribe the
30 Day Self-Supported Red Hat OpenShift Container Platform, 2-Core Evaluation
on my first 4 RHEL 7.3, but latter on my new following VMs, After I register, it shows subscription-manager status +-------------------------------------------+ System Status Details +-------------------------------------------+ Overall Status: InvalidRed Hat OpenShift Container Platform: - Not supported by a valid subscription.
Red Hat Enterprise Linux Server: - Not supported by a valid subscription.
I tried download the certificate manually on https://access.redhat.com/labs/rhpc/ still got no luck
subscription-manager attach --auto Fixed this for me, thanks!
Worked for me, thanks. I had to run subscription-manager --force and then subscription-manager attach --auto
subscription-manager attach --auto did the trick
I have subscribed successfully but while I am trying do yum repolist all then getting below error pls check it and let me know ASAP.
yum repolist all Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager repolist: 0
Finding this subscription and licensing system to be convoluted... Documentation spotty
Still broken, after all of the suggestions here. System has proper subscription start/end dates, and is labeled as subscribed, yet still happening!
This fixed my problem. Thank you.
same error after this. Really hate subscription manager
Sorry, this solution is NOT working. the link to another article just makes it worse.
My final fix was: 1) reinitialize NTPd, and confirm time sync. "ntpq -p" gives you the status. Still need to manually verify times are good. 2) Un-register from RHSM. 3) REBOOT. Why? IDK, but that's what I needed to do. 4) Re-Register with Subscription manager - which then worked.
did'n resolve the issue
My issue resolved after running the command in resolution section.
Steps: 1. Install RHEL 7.4 in VirtualBox 2. Accept EULA 3. subscription-manager register - provide login name/password of developer's subscription 4. yum update - error (This system is registered to Red Hat Subscription Management, but is not receiving updates. You can use subscription-manager to assign subscriptions.) 5. run subscription-manager attach --auto 6. yum repolist all - success :) 7. yum update - success :)
Satellite is rubbish
This helped to me:
Login to https://access.redhat.com/management/ You must see 1 Active Subscription. If not go to 2
Reactivate via https://developers.redhat.com/login/
Check your username via user id https://access.redhat.com/user/xyz . Please note that email cannot be used in command "subscription-manager register --username your username fro point "
Follow https://developers.redhat.com/articles/renew-your-red-hat-developer-program-subscription/
e.g. "subscription-manager register --username your username from point 3"
This worked for me.
Thank you Peter its worked
Thank you Very much for this, highly appreciated
subscription-manager attach --auto works for me on RHEL6.
what I did was enabled all the repository using ....... repo enable = * or something like that....but it ended up adding things from rhel 6 and 7 to rhel 8..so software centre was not working properly.....but I tried to reverse it by doing ....disable repo = *......SO, I ended up removing new repositories alongside the ones that come preinstalled............and yum update says not receiving update......but attach auto helped me.....thanks, mate...
Running
# subscription-manager attach --auto
worked for me. It was a fresh install, and I had set up subscriptions through the GUI, but it didn't work. I then went to Customer Portal and tried attaching it that way. Though the Customer Portal showed it was attached, I was still getting the error. Finally found this and ran# subscription-manager attach --auto
which worked.Just wanted to say thanks - see post above.
Worked successfully on a fresh installation of RHEL 7.8. Thanks!
Issue is resolved, It sometimes isn't so easy for someone who is getting started after 20+ years of Windows... Still you've got to start somewhere.
I have verified that my RHEL 6.6 x86_64 system suffering from this issue is indeed properly syncing time to the NTP server, matching our other servers, etc... The issue persists.
Same issue on RHEL 8.1, but resolved using the command.
want to keep my running workstation 7.7 Maipo. Installed under IBM control/subscription. WS has been added to a new org-id subscrpition. How do I scan and register all the previously installed packages so I can check for updates?
sudo subscription-manager list --installed
No installed products to list
sudo subscription-manager attach --auto
No Installed products on system. No need to attach subscriptions.
Can someone help ?
thnx it works!!!
Did not work. As far as I can tell, my system is perfectly time synced. Are you perfectly time synced? ;o)
I found this through a Google search but not on a search on the RH website.
It worked for me. Thank you very much. Using 7.9v
It's still not working for me, I'm using 7.8
Updating Subscription Management repositories. Red Hat Satellite Tools 6.8 for RHEL 8 x86_64 (Source RPMs) 0.0 B/s | 0 B 00:30 Failed to download metadata for repo 'local' Error: Failed to download metadata for repo 'local'
The above error is shown for me
Hi Paula,
I advise you to check for a file in /etc/yum.repo.d/ which contains a line with a line name=local or [local]
grep local /etc/yum.repo.d/*.repo
Once you found the file check if the baseurl is available.
Regards,
Jan Gerrit
Worked for me on RHEL 8.4
how to resolve it