Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
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,
I am using cent os 5 & I successfully configure my yum server on it.The problem is that the client machine is not accessing the yum server.
Following are my server configuration
Code:
1: First I Mount an ISO file
# mount -o loop /var/ftp/pub/centos.iso /mnt/iso/
2: Create a repository on that ISO
# cd /mnt/iso
# createrepo /var/ftp/pub
Clean all previous repos.
# yum clean all
Step # 3: I create an empty repo config file in /etc/yum.repos.d/ directory.
# vi /etc/yum.repos.d/iso.repo
[My ISO Repository]
name=Centos repository
baseurl=file:///mnt/iso
enabled=1
gpgcheck=1
I save my file & exit.
At my server using GUI interface when i click on Application...>Add/Remove Software I can see under brows all software applications .Even if i try to use
# yum install vim*
setting up install process
and it install vim
on Client side configuration i create
Code:
# vi /etc/yum.repos.d/iso.repo
[My ISO Repository]
name=Centos repository_client
baseurl=ftp://192.168.1.10/pub/centos5dvd/
enabled=1
gpgcheck=1
On server side vsftp is start,firewall is disable on both client & server and both can ping each other.
The problem is when I try to use yum commd on client side
Code:
# yum install vim*
ftp://192.168.1.10/pub/centos5dvd/repomd.xml: [Error 4] IoError:[Error ftp error] 550 Failed to change directory.
Trying other mirror.
Error:Cannot retrive repository metadata (repomd.xml) for repository: My ISO Repository.Please verify its path and try again.
well you seem to have missed the bit out where you manually use an ftp client to do the same thing. Don't run before you can walk. use an ftp client and keep an eye on the vsftpd logs. Then again, you've not even mentioned that an FTP server exists...
Thanks for the prompt reply. Well i does not work on apache server that is why i am using ftp.
The ftp is functional How..! I open browser on my client machine & in the url i write
Code:
ftp://192.168.1.10/pub
It show me the share directories here which are
centos5dvd
repodata
I know there is a little mistake which i am doing..I do google but find no solution of my problem.
to troubleshoot it please let me know the steps which I check it one by one.
Thanks for the prompt reply. Well i does not work on apache server that is why i am using ftp.
The ftp is functional How..! I open browser on my client machine & in the url i write
Code:
ftp://192.168.1.10/pub
It show me the share directories here which are
centos5dvd
repodata
I know there is a little mistake which i am doing..I do google but find no solution of my problem.
to troubleshoot it please let me know the steps which I check it one by one.
thanks
gardenair
I am sorry I couldn't understand
the mistake you are talking is about "yum" if I am not wrong?
you have not yet configured yum?
before moving ahead to ftp we should clarify that everything is working fine on your machine especially "yum"
cd /etc/yum.repos.d
mv C* /tmp
cat > create.repo
[rhel-server]
name=redhat
baseurl=ftp://10.200.xx.xx/pub/server ---- put ur server side ipaddress
enabled=1
gpgcheck=0
mount /dev/cdrom /mnt
mkdir -p /var/pub/server
cd /mnt/Centos
cp -rfrv * /var/pub/server
wait for it to finished it off
move all repositoryrpm to /var/pub/server
cd /var/pub/server
rpm -ivh create.repo --install these package
rpm -ivh vsftpd ---install these package
start vsftpd service
service vsftpd restart
chkconfig vsftpd on
client side
cd /etc/yum.repos.d
touch create.repo
vi create.repo
[rhel-server]
name=redhat
baseurl=ftp://10.200.xx.xx/pub/server MENTION UR SERVER IP HERE
enabled=1
gpgcheck=0
Last edited by jsaravana87; 11-10-2011 at 06:52 AM.
Thanks "acid_kewpie" & "arun5002" for guiding. I mount centos5 iso file.You can see in my 1st post. Some people copy the contents in a folder but i use iso file.Anyway i think that is not an issue.
Well I can see the "repomd.xml" file under /var/ftp/pub/repodata/repomd.xml
Here I can also see three files i.e "filelists.xml.gz,other.xml.gz,primary.xml.gz"
These files are in the yum server.The interesting thing is that yum server is functioning proper the issue is on client side.In both side iptables are disables,they can ping also.
I think that the client is unable to see repomd.xml file ?
These files are in the yum server.The interesting thing is that yum server is functioning proper the issue is on client side.In both side iptables are disables,they can ping also.
This is what I was asking buddy.
always check for small things you will find the answer there if self.
yesterday i created my own ftp yum repository which is accessible by everyone on network, you can check attached file
Code:
1. all you need to do is mention the path of your repo in vsftpd.conf.
2. check the permissions on the directory
3. and check the authentications in vsftpd.conf
and you are done!
on server
Code:
#vi /etc/vsftpd/vsftpd.conf
anonymous_enable=YES
anon_root=/path/to/your/repository
(check the permmission on this dir)
go to your browser and check whether you can see all your repos like in the attached file.
Quote:
If yes proceed to client
If no check for the errors and logs
everything is just getting confusing without any reason or I guess I am unable to understand.
starting from the beginning of your yum server (This is how you can configure yum server as the steps you have followed is still a question mark for me and I dont wanna waste any more time in asking question)
This is the simplest method unless you don't wanna complicate it Either you follow this or just as I explained I want you to explain the steps you followed unless you don't wanna waste others as well as yours time
Give the full path of the location of packages and try
Code:
anon_root=/var/ftp/pub/centos5dvd/repodata
I asked you to change the permission of the file you mentioned in vsftpd.conf i.e repodata, don't change the permission of vsftpd.conf, in that case any user will have permission to change or delete the file
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.