-   Linux - Newbie (
-   -   Problem while configuring YUM (

rbala14 01-17-2011 02:19 AM

Problem while configuring YUM
Hi All,
I want to setup an local repositories to distribute .rpm files for users in RHEL-5. I installed yum & created the folder in "/var/pub/ftp/Servers" when i try to access it from client i am getting the below error
Loaded plugins: rhnplugin, security
Repository rhel-debuginfo is listed more than once in the configuration
Traceback (most recent call last):
File “/usr/bin/yum”, line 29, in ?
yummain.user_main(sys.argv[1:], exit_code=True)
File “/usr/share/yum-cli/”, line 309, in user_main
errcode = main(args)
File “/usr/share/yum-cli/”, line 157, in main
File “/usr/share/yum-cli/”, line 187, in getOptionsConfig
File “/usr/lib/python2.4/site-packages/yum/”, line 664, in
conf = property(fget=lambda self: self._getConfig(),
File “/usr/lib/python2.4/site-packages/yum/”, line 253, in _getConfig‘init’)
File “/usr/lib/python2.4/site-packages/yum/”, line 179, in run
func(conduitcls(self, self.base, conf, **kwargs))
File “/usr/lib/yum-plugins/”, line 111, in init_hook
login_info = up2dateAuth.getLoginInfo()
File “/usr/share/rhn/up2date_client/”, line 217, in getLoginInfo
File “/usr/share/rhn/up2date_client/”, line 184, in login
li = server.up2date.login(systemId)
File “/usr/share/rhn/up2date_client/”, line 52, in __call__
raise self.__exception_from_fault(f)
Error Message:
Abuse of Service detected for server rhel5-64 (1016133212)
Error Class Code: 49
Error Class Info:
You are getting this error because RHN has detected an abuse of
service from this system and account. This error is triggered when
your system makes too many connections to Red Hat Network. This
error can not be triggered under a normal use of the Red Hat Network
service as configured by default on Red Hat Linux.

The Red Hat Network services for this system will remain disabled
until you will reduce the RHN network traffic from your system to
acceptable limits.

Please log into RHN and visit
to contact technical support if you think you have received this
message in error.

The .repo file in client is as shown below

bash-3.2$ more /etc/yum.repos.d/Server.repo
name=Red Hat Enterprise Linux $releasever - $basearch - Debug

I have even tried by commenting the gpgcheck line but getting the same error. Also the service VSFTP is running in server and i am able to telnet to it via FTP from the client.
Could some help me to setup an separate repo?


EricTRA 01-17-2011 02:36 AM


I'm no RHEL expert at all but there's one thing that jumps out:

name=Red Hat Enterprise Linux $releasever - $basearch - Debug

The line in bold indicates your repo is NOT enabled. Set it to 1 and try again. Don't know if you have to do a yum clean all first or not.

As it looks from your errors you're trying to connect to RHN instead of your own FTP I imagine. Also, did you disable or rename the other repo files on your local servers, leaving only your FTP repo enabled?

Kind regards,


rbala14 01-18-2011 01:09 AM

Hi EricTRA,

I have made enabled=1, also run the command yum clean all and renamed the original .repo file to .repo-bak and tried.
But then also its trying to connect to RHN instead to my ftp.

In the server the .repo file is as shown below

bash-3.2$ more Server.repo
name=Red Hat Enterprise Linux $releasever - $basearch - Debug

And in the client the .repo file is as shown below

bash-3.2$ more Server.repo
name=Red Hat Enterprise Linux $releasever - $basearch - Debug

Hope now u get clear idea of my config & u can help me.

chrism01 01-18-2011 01:18 AM

I think you need the createrepo cmd

EricTRA 01-18-2011 02:14 AM


chrism01 has a good point here. Looks like you didn't set up the repository like it should be. There is no use for a .repo file on the server side. Using the createrepo command as pointed out to you by chrism01 creates a directory with some compressed files and a repomd.xml file which get downloaded and read by the client when connecting to your repository. Follow the guides chrism01 pointed you to and you should be up and running in no time.

Kind regards,


rbala14 01-18-2011 04:45 AM

Hi EricTRA & Chris,

No i have used the createrepo and the repodata dir si at the location /var/ftp/pub/Server/repodata inside this i am able to find the files both in Server side & in client side

bash-3.2$ sudo ls -l /var/ftp/pub/Server/repodata/
total 16
-rw-r--r-- 1 root root 170 Jan 18 03:30 filelists.xml.gz
-rw-r--r-- 1 root root 165 Jan 18 03:30 other.xml.gz
-rw-r--r-- 1 root root 177 Jan 18 03:30 primary.xml.gz
-rw-r--r-- 1 root root 951 Jan 18 03:30 repomd.xml

Even then when i give yum update getting the above said error in clint side only.


All times are GMT -5. The time now is 12:40 AM.