Zero packages in repo & system stuck on yum update

Latest response

Server got stuck in yum update and Zero packages in repo. Deleted the system profile from satellite and re-registered but no luck.

Zero package:

[root@server ~]# yum repolist
Loaded plugins: product-id, refresh-packagekit, rhnplugin, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
This system is receiving updates from RHN Classic or RHN Satellite.
repo id                                                        repo name                                                                                          status
rhel-x86_64-server-6                                           Red Hat Enterprise Linux Server (v. 6 for 64-bit x86_64)                                           0
repolist: 0

[root@server ~]# yum update
Loaded plugins: product-id, refresh-packagekit, rhnplugin, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
This system is receiving updates from RHN Classic or RHN Satellite.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: rhel-x86_64-server-6. Please verify its path and try again

After many hours,

[root@server ~]# yum repolist
Loaded plugins: product-id, refresh-packagekit, rhnplugin, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
This system is receiving updates from RHN Classic or RHN Satellite.
repo id                                                        repo name                                                                                          status
rhel-x86_64-server-6                                           Red Hat Enterprise Linux Server (v. 6 for 64-bit x86_64)                                           20,624
repolist: 20,624

[root@server ~]# yum update
Loaded plugins: product-id, refresh-packagekit, rhnplugin, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
This system is receiving updates from RHN Classic or RHN Satellite.
Setting up Update Process
Resolving Dependencies
--> Running transaction check
---> Package ConsoleKit.x86_64 0:0.4.1-3.el6 will be updated
---> Package ConsoleKit.x86_64 0:0.4.1-6.el6 will be an update
.....
 sssd-proxy                                        x86_64    1.13.3-60.el6_10.2
 subscription-manager-rhsm-certificates            x86_64    1.20.10-7.el6
 vim-filesystem                                    x86_64    2:7.4.629-5.el6_8.1

Transaction Summary
================================================================================
Install      37 Package(s)
Upgrade     656 Package(s)
Remove        1 Package(s)

Total download size: 654 M
Is this ok [y/N]:
Downloading Packages:          <------------------------------------------------ Nothing happens after that
^C[root@server ~]#

Responses

Hi Vijayakumar,

It looks that the client system is unable to fetch updates and it could be due to low disk space. Please check disk space consumption, especially, / (root), /var & /tmp. This could be one of the reasons. You may run 'yum clean all' and delete '/var/cache/yum'. Trigger 'yum repolist' again to populate the repository and check if that helps by running 'yum update'. Please report with your observations.

Finally I've fixed it. All the File system has enough space to download the packages and the clearing the yum cache didn't help.

There was a problem on below listed packages which was causing an issue.

$ cat installed-rpms | grep rhn-client-tools
rhn-client-tools-1.0.0.1-16.el6.noarch                      Tue Aug  5 22:36:26 2014
$ cat installed-rpms | grep yum-rhn-plugin
yum-rhn-plugin-0.9.1-49.el6.noarch                          Tue Aug  5 22:36:28 2014

Created a local repo from RHEL ISO. Get the latest ISO here.

https://access.redhat.com/downloads/content/69/ver=/rhel---6/6.10/x86_64/product-software 

Then set up yum repository for locally-mounted DVD on Red Hat Enterprise Linux 6. Refer this article

https://access.redhat.com/solutions/328863
  • Once local repository is configured update the below packages
# yum update rhn-client-tools
# yum update yum-rhn-plugin

Problem resolved!

Regards, Vijayakumar

It is nice that you resolved it. But how did you conclude that those two packages were the culprit and because of which 'yum update' was un-successful.

The 'yum update' is not the only issue with the system and it is having an communication issue with the Satellite. Even 'rhn_check' and 'rhn-profile-sync' commands were not working.

So we suspected those two packages are in older version and updating them may give us some break thru. Finally it resolved the problem.

Ok, that is good.