Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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/yummain.py”, line 309, in user_main
errcode = main(args)
File “/usr/share/yum-cli/yummain.py”, line 157, in main
base.getOptionsConfig(args)
File “/usr/share/yum-cli/cli.py”, line 187, in getOptionsConfig
self.conf
File “/usr/lib/python2.4/site-packages/yum/__init__.py”, line 664, in
conf = property(fget=lambda self: self._getConfig(),
File “/usr/lib/python2.4/site-packages/yum/__init__.py”, line 253, in _getConfig
self.plugins.run(‘init’)
File “/usr/lib/python2.4/site-packages/yum/plugins.py”, line 179, in run
func(conduitcls(self, self.base, conf, **kwargs))
File “/usr/lib/yum-plugins/rhnplugin.py”, line 111, in init_hook
login_info = up2dateAuth.getLoginInfo()
File “/usr/share/rhn/up2date_client/up2dateAuth.py”, line 217, in getLoginInfo
login()
File “/usr/share/rhn/up2date_client/up2dateAuth.py”, line 184, in login
li = server.up2date.login(systemId)
File “/usr/share/rhn/up2date_client/rhnserver.py”, line 52, in __call__
raise self.__exception_from_fault(f)
up2date_client.up2dateErrors.AbuseError:
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.
bash-3.2$ more /etc/yum.repos.d/Server.repo
[rhel-debuginfo]
name=Red Hat Enterprise Linux $releasever - $basearch - Debug
baseurl=ftp://server.com/pub/Server
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
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?
I'm no RHEL expert at all but there's one thing that jumps out:
Code:
[rhel-debuginfo]
name=Red Hat Enterprise Linux $releasever - $basearch - Debug
baseurl=ftp://server.com/pub/Server
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
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?
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
[rhel-debuginfo]
name=Red Hat Enterprise Linux $releasever - $basearch - Debug
baseurl=file:///var/ftp/pub/Server
enabled=1
#gpgcheck=0
#gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
And in the client the .repo file is as shown below
bash-3.2$ more Server.repo
[rhel-debuginfo]
name=Red Hat Enterprise Linux $releasever - $basearch - Debug
baseurl=ftp://server.com/pub/Server
enabled=1
#gpgcheck=0
#gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
Hope now u get clear idea of my config & u can help me.
Thanks.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.