LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 07-15-2012, 07:00 AM   #1
sunveer
Member
 
Registered: Jul 2012
Posts: 139

Rep: Reputation: Disabled
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.
 
Old 07-15-2012, 07:16 AM   #2
sharadchhetri
Member
 
Registered: Aug 2008
Location: INDIA
Distribution: Redhat,Debian,Suse,Windows
Posts: 179

Rep: Reputation: 23
Quote:
Originally Posted by sunveer View Post
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.
 
Old 07-15-2012, 07:33 AM   #3
sunveer
Member
 
Registered: Jul 2012
Posts: 139

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by sharadchhetri View Post
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
 
Old 07-15-2012, 08:33 AM   #4
sharadchhetri
Member
 
Registered: Aug 2008
Location: INDIA
Distribution: Redhat,Debian,Suse,Windows
Posts: 179

Rep: Reputation: 23
Quote:
Originally Posted by sunveer View Post
I can't access ftp://192.168.1.10
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"
 
Old 07-15-2012, 08:54 AM   #5
sunveer
Member
 
Registered: Jul 2012
Posts: 139

Original Poster
Rep: Reputation: Disabled
on starting vsftpd, it is working but showing that

ftp://192.168.1.10/pub/Packages/repodata/repomd.xml file does not exist. while there is a file on the server.
 
Old 07-15-2012, 09:03 AM   #6
sharadchhetri
Member
 
Registered: Aug 2008
Location: INDIA
Distribution: Redhat,Debian,Suse,Windows
Posts: 179

Rep: Reputation: 23
Quote:
Originally Posted by sunveer View Post
on starting vsftpd, it is working but showing that

ftp://192.168.1.10/pub/Packages/repodata/repomd.xml file does not exist. while there is a file on the server.
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.
 
Old 07-15-2012, 10:35 PM   #7
sunveer
Member
 
Registered: Jul 2012
Posts: 139

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by sharadchhetri View Post
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"
 
Old 07-16-2012, 05:31 AM   #8
sharadchhetri
Member
 
Registered: Aug 2008
Location: INDIA
Distribution: Redhat,Debian,Suse,Windows
Posts: 179

Rep: Reputation: 23
Quote:
Originally Posted by sunveer View Post
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"
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/
 
Old 07-16-2012, 07:56 AM   #9
sunveer
Member
 
Registered: Jul 2012
Posts: 139

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by sharadchhetri View Post
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/
 
Old 07-16-2012, 08:11 AM   #10
sharadchhetri
Member
 
Registered: Aug 2008
Location: INDIA
Distribution: Redhat,Debian,Suse,Windows
Posts: 179

Rep: Reputation: 23
Quote:
Originally Posted by sunveer View Post
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
 
Old 07-16-2012, 10:25 PM   #11
sunveer
Member
 
Registered: Jul 2012
Posts: 139

Original Poster
Rep: Reputation: Disabled
Solved...


#setsebool -P ftp_home_dir on

This solved the problem.
 
Old 07-17-2012, 12:30 AM   #12
sharadchhetri
Member
 
Registered: Aug 2008
Location: INDIA
Distribution: Redhat,Debian,Suse,Windows
Posts: 179

Rep: Reputation: 23
Smile

Quote:
Originally Posted by sunveer View Post
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 .
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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: Local yum server error burak Linux - General 6 06-20-2012 11:22 AM
yum server Configuration on rhel 5 Toushi Linux - Server 3 02-10-2012 01:14 PM
[SOLVED] yum configuration in http server deep27ak Linux - Server 7 11-17-2011 06:48 AM
yum server configuration k.suthar001 Red Hat 2 08-21-2011 10:43 AM
[SOLVED] ErrNo 14 and ErrNo 256 in yum server configuration nivedhitha Linux - Server 4 05-22-2011 12:45 AM

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

All times are GMT -5. The time now is 06:40 PM.

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