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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
07-15-2012, 07:00 AM
|
#1
|
Member
Registered: Jul 2012
Posts: 139
Rep:
|
yum server configuration
I have setup client and server but on client I get the message
" Updating Red Hat Repositories"
ftp://192.168.1.10/pub/Packages/repodata/repomd.xml : [Errno 14] PYCURL ERROR 7 - "couldn't connect to host"
Trying other mirror
The client repo file is as follows:
[client]
name=Client Repository
baseurl=ftp://192.168.1.10/pub/Packages/
gpgcheck=0
& the server repo file is
[server]
name=Server Repository
baseurl=file:///var/ftp/pub/Packages/
gpgcheck=0
I have installed the vsftpd service on the server side and firewall is disabled on both sides.
|
|
|
07-15-2012, 07:16 AM
|
#2
|
Member
Registered: Aug 2008
Location: INDIA
Distribution: Redhat,Debian,Suse,Windows
Posts: 179
Rep:
|
Quote:
Originally Posted by sunveer
I have setup client and server but on client I get the message
" Updating Red Hat Repositories"
ftp://192.168.1.10/pub/Packages/repodata/repomd.xml : [Errno 14] PYCURL ERROR 7 - "couldn't connect to host"
Trying other mirror
The client repo file is as follows:
[client]
name=Client Repository
baseurl=ftp://192.168.1.10/pub/Packages/
gpgcheck=0
& the server repo file is
[server]
name=Server Repository
baseurl=file:///var/ftp/pub/Packages/
gpgcheck=0
I have installed the vsftpd service on the server side and firewall is disabled on both sides.
|
From client side, r u able to do ftp://192.168.10 , try to open in browser or Terminal.
|
|
|
07-15-2012, 07:33 AM
|
#3
|
Member
Registered: Jul 2012
Posts: 139
Original Poster
Rep:
|
Quote:
Originally Posted by sharadchhetri
From client side, r u able to do ftp://192.168.10 , try to open in browser or Terminal.
|
I can't access ftp://192.168.1.10
|
|
|
07-15-2012, 08:33 AM
|
#4
|
Member
Registered: Aug 2008
Location: INDIA
Distribution: Redhat,Debian,Suse,Windows
Posts: 179
Rep:
|
Quote:
Originally Posted by sunveer
|
So this is the problem.
(1)Check is ftp server running or not. "ps -ef|grep vsftp"
(2)ping the ftp server from client end.
(3) check your iptable. iptables -L
(3) from client side to your ftp server, use this command ,paste the output.
"telnet 192.168.1.10 21"
|
|
|
07-15-2012, 09:03 AM
|
#6
|
Member
Registered: Aug 2008
Location: INDIA
Distribution: Redhat,Debian,Suse,Windows
Posts: 179
Rep:
|
Quote:
Originally Posted by sunveer
|
It seems you are not using correct path in configuration file.
Use ftp in browser ,reach to .xml path. Copy that path and use it in configuration file.
|
|
|
07-15-2012, 10:35 PM
|
#7
|
Member
Registered: Jul 2012
Posts: 139
Original Poster
Rep:
|
Quote:
Originally Posted by sharadchhetri
It seems you are not using correct path in configuration file.
Use ftp in browser ,reach to .xml path. Copy that path and use it in configuration file.
|
I can see folders in ftp://192.168.1.10/pub/
But can't see any files in /pub/Packages/
When I enter the full path ftp://192.168.1.10/pub/Packages/repodata/repomd.xml I get the message : "550 Failed to change directory"
|
|
|
07-16-2012, 05:31 AM
|
#8
|
Member
Registered: Aug 2008
Location: INDIA
Distribution: Redhat,Debian,Suse,Windows
Posts: 179
Rep:
|
Quote:
Originally Posted by sunveer
|
login into ftp server.
cd /your/path/of/ftp_data_dir
check inside, does pub/packages has files and dir.
It seems you have not copied the data in /pub/
|
|
|
07-16-2012, 07:56 AM
|
#9
|
Member
Registered: Jul 2012
Posts: 139
Original Poster
Rep:
|
Quote:
Originally Posted by sharadchhetri
login into ftp server.
cd /your/path/of/ftp_data_dir
check inside, does pub/packages has files and dir.
It seems you have not copied the data in /pub/
|
I have seen there are files in /var/ftp/pub/
|
|
|
07-16-2012, 08:11 AM
|
#10
|
Member
Registered: Aug 2008
Location: INDIA
Distribution: Redhat,Debian,Suse,Windows
Posts: 179
Rep:
|
Quote:
Originally Posted by sunveer
I have seen there are files in /var/ftp/pub/
|
give the output of -
(1)ls -lhrt /var/ftp/pub
(2) ls -lhrt /var/ftp/pub/Packages
(3) ls -lhrt /var/ftp/pub/Packages/repodata
http://pastebin.ubuntu.com/ paste in this pastebin ,it will create some link.
paste that link here in this post
|
|
|
07-16-2012, 10:25 PM
|
#11
|
Member
Registered: Jul 2012
Posts: 139
Original Poster
Rep:
|
Solved...
#setsebool -P ftp_home_dir on
This solved the problem.
|
|
|
07-17-2012, 12:30 AM
|
#12
|
Member
Registered: Aug 2008
Location: INDIA
Distribution: Redhat,Debian,Suse,Windows
Posts: 179
Rep:
|
Quote:
Originally Posted by sunveer
Solved...
#setsebool -P ftp_home_dir on
This solved the problem.
|
ok, so your system's SELINUX is enabled.
Good. But kindly paste the output also in such question it help to reolve the problem quickly .
|
|
|
All times are GMT -5. The time now is 06:40 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|