LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 06-26-2011, 09:10 AM   #1
smilemukul
Member
 
Registered: Jun 2009
Distribution: Redhat,CentOS,Ubuntu,Puppet
Posts: 292

Rep: Reputation: 34
Yum repository is not accessible from ftp client


Hi,
I am not able to access yum repository from client but able to access yum from server through ftp.I am getting the below error from client system as,

Client Config:--
[root@Client ~]# cat /etc/yum.repos.d/client.repo
[Client]
name=Client Repo
baseurl=ftp://1.1.1.1/pub/package
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release

[root@Client ~]# yum update all
Loaded plugins: rhnplugin, security
This system is not registered with RHN.
RHN support will be disabled.
ftp://1.1.1.1/pub/package/repodata/repomd.xml: [Errno 4] IOError: [Errno ftp error] (113, 'No route to host')
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: Client. Please verify its path and try again

Server Config:--
[root@Server ~]# cat /etc/yum.repos.d/rhel-debuginfo.repo
[rhel-debuginfo]
name=Server Repo
baseurl=file:///var/ftp/pub/package
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release

I also had remove the repodata directory from server & again configured the yum repository through createrepo but still getting the same error from client.
Is there any SElinux policy need to be enabled ?

I am able to ping 1.1.1.1 (server) from 1.1.1.2 (client). I had checked previous threads but unable to solve my problem.

Any help will be appreciated.
Thanks
 
Old 06-27-2011, 12:44 AM   #2
routers
Member
 
Registered: Aug 2005
Location: Malaysia - KULMY / CNXTH
Distribution: Slackware, Fedora, FreeBSD, Sun O/S 5.10, CentOS
Posts: 787
Blog Entries: 6

Rep: Reputation: 75
"I am not able to access yum repository from client "

as i understand this , would you do a TESTING from the client ( 1.1.1.2 )

first for both client and server run this command #
Code:
setenforce 0
then inside client (1.1.1.2) run command below

#
Code:
wget ftp://1.1.1.1/pub/package/repodata/repomd.xml
so let us know the status
 
Old 06-27-2011, 02:00 AM   #3
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
Quote:

[root@Client ~]# yum update all
Loaded plugins: rhnplugin, security
This system is not registered with RHN.
RHN support will be disabled.
an unregistered rhel would also cause problems

if you do not intend on buying a license
do not use red hat but use CentOS or ScientificLinux instead .
 
Old 06-27-2011, 04:59 AM   #4
smilemukul
Member
 
Registered: Jun 2009
Distribution: Redhat,CentOS,Ubuntu,Puppet
Posts: 292

Original Poster
Rep: Reputation: 34
routers,
I enabled setenforce 0 on both the systems to disable the firewall but unable to run the wget command although i am able to ping 1.1.1.1 system as,

[root@Client ~]# wget ftp://1.1.1.1/pub/package/repodata/repomd.xml
--22:38:16-- ftp://1.1.1.1/pub/package/repodata/repomd.xml
=> `repomd.xml'

[root@Client ~]# ping 1.1.1.1
PING 1.1.1.1 (1.1.1.1) 56(84) bytes of data.
64 bytes from 1.1.1.1: icmp_seq=1 ttl=64 time=0.579 ms
64 bytes from 1.1.1.1: icmp_seq=2 ttl=64 time=0.459 ms
64 bytes from 1.1.1.1: icmp_seq=3 ttl=64 time=0.470 ms
64 bytes from 1.1.1.1: icmp_seq=4 ttl=64 time=0.516 ms

Thanks
 
Old 06-27-2011, 05:00 AM   #5
smilemukul
Member
 
Registered: Jun 2009
Distribution: Redhat,CentOS,Ubuntu,Puppet
Posts: 292

Original Poster
Rep: Reputation: 34
[root@Client ~]# wget ftp://1.1.1.1/pub/package/repodata/repomd.xml
--22:43:31-- ftp://1.1.1.1/pub/package/repodata/repomd.xml
=> `repomd.xml'
Connecting to 1.1.1.1:21... failed: No route to host.
 
Old 06-27-2011, 05:24 AM   #6
routers
Member
 
Registered: Aug 2005
Location: Malaysia - KULMY / CNXTH
Distribution: Slackware, Fedora, FreeBSD, Sun O/S 5.10, CentOS
Posts: 787
Blog Entries: 6

Rep: Reputation: 75
can you check port 21 in the server ,
either run with 0.0.0.0 or run with NIC IP or 127*
 
Old 06-30-2011, 02:40 AM   #7
smilemukul
Member
 
Registered: Jun 2009
Distribution: Redhat,CentOS,Ubuntu,Puppet
Posts: 292

Original Poster
Rep: Reputation: 34
Hi,
Yes now I am able to access Ftp client system after flushing the iptables as,

root@Client ~]# ftp 1.1.1.1
Connected to 1.1.1.1.
220 You had logged into FTP
530 Please login with USER and PASS.
530 Please login with USER and PASS.
KERBEROS_V4 rejected as an authentication type
Name (1.1.1.1:root): ftp
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp>

root@Client ~]# yum update all
Loaded plugins: rhnplugin, security
This system is not registered with RHN.
RHN support will be disabled.
Client | 951 B 00:00
primary.xml.gz | 790 kB 00:00
Client 2255/2255
Skipping security plugin, no data
Setting up Update Process
No Packages marked for Update

Thanks for all your help as now I am able to install the packages from server.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
yum Error: Cannot retrieve repository metadata (repomd.xml) for repository: base. glowe Linux - Newbie 8 01-13-2016 10:55 PM
yum update error on client: Cannot retrieve repository metadata (repomd.xml) yogesh29sharma Linux - Newbie 2 05-30-2011 08:30 AM
yum fails with error: Cannot retrieve repository metadata (repomd.xml) for repository dmendonsa Fedora 6 02-10-2010 07:23 PM
Redhat 5.1 Yum Repository vs Fedora x.x Yum Repository lead2gold Linux - Software 1 05-22-2008 02:19 PM
FTP not accessible from outside of our network PerceptiveSciences Linux - Newbie 2 03-31-2008 04:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:37 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration