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 |
"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 # Code:
wget ftp://1.1.1.1/pub/package/repodata/repomd.xml |
Quote:
if you do not intend on buying a license do not use red hat but use CentOS or ScientificLinux instead . |
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 |
[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. |
can you check port 21 in the server ,
either run with 0.0.0.0 or run with NIC IP or 127* |
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. |
All times are GMT -5. The time now is 10:48 PM. |