LinuxQuestions.org
Register a domain and help support LQ
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-07-2011, 05:00 PM   #1
Rohit_4739
Member
 
Registered: Oct 2010
Distribution: Red Hat
Posts: 228

Rep: Reputation: 9
Unhappy Getting error during installation via FTP


Hello LQ Folks,

I have trying to install linux on my VM via ftp but every time after entering root password during the installtion i get this error message

Quote:
Unable to read package metadata. This may be due to a missing repodata
directory. Please ensure that your install tree has been correctly generated.
Cannot retrieve repository metadata (repomd.xml) for repository:
anaconda-base-20093211313.x86_64. Please verify its path and try again.
I tried creating the repodata directory (with repomd.xml file in it) but still it is not working. I was not sure so i tried creating a repodata for Server folder (containing all rpms in it) as well as for the whole installation directory also but nothing seems to be working.

So please somebody help me in overcoming this error. Is it something i missing here ? And moreover why i am getting this error ? Is it a necessity to have repodata folder, if yes then for what files it should be created and where it should be placed.

Please please somebody explain about this. Will deeply appreciat the help and effort put.

Thanks in advance.
 
Old 07-07-2011, 05:14 PM   #2
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 476Reputation: 476Reputation: 476Reputation: 476Reputation: 476
@ Reply

Hi there,

Are you trying to install vsftp on the server or you are trying to install a server using FTP? If you are trying to install server via FTP then it won't even go till root password stage before you enter the correct path to get packages from FTP server.

If you are trying to install vsftp or ftp client on the server using yum install ftp or yum install vsftp then it appears that you have not got your respository setup correctly. You don't have to create repmod.xml file or repodata directory manually. These get created automatically when you run createrepo command on a directory that contain packages.
 
Old 07-07-2011, 05:35 PM   #3
Rohit_4739
Member
 
Registered: Oct 2010
Distribution: Red Hat
Posts: 228

Original Poster
Rep: Reputation: 9
Quote:
Originally Posted by T3RM1NVT0R View Post
Hi there,

Are you trying to install vsftp on the server or you are trying to install a server using FTP? If you are trying to install server via FTP then it won't even go till root password stage before you enter the correct path to get packages from FTP server.

If you are trying to install vsftp or ftp client on the server using yum install ftp or yum install vsftp then it appears that you have not got your respository setup correctly. You don't have to create repmod.xml file or repodata directory manually. These get created automatically when you run createrepo command on a directory that contain packages.
Hi,

Yes i am trying to install a server via FTP.I have two machines both VMs. Now one of the machines is running an instance of vsftp and on this machine i have set up the installation directory under /var/ftp/pub. Now when i try doing a ftp based installation on my 2nd VM machine after reaching root password stage it gives me that error that i mentioned.

It goes till that stage successfully but all of a sudden then it throws me that error. So could you please explain about this.

Thanks.
 
Old 07-07-2011, 05:51 PM   #4
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 476Reputation: 476Reputation: 476Reputation: 476Reputation: 476
@ Reply

It should not give you that error message unless you have mentioned wrong path. Have a look at the following link which explain step by step procedure to install server via ftp:

http://computernetworkingnotes.com/r...stallation.htm
 
1 members found this post helpful.
Old 07-08-2011, 05:49 AM   #5
Rohit_4739
Member
 
Registered: Oct 2010
Distribution: Red Hat
Posts: 228

Original Poster
Rep: Reputation: 9
Hi..

Everything i did was exactly similar to what was shown in that link you posted. But its still giving the same error ..
 
Old 07-08-2011, 06:38 AM   #6
ananthkadalur
Member
 
Registered: Mar 2011
Posts: 38

Rep: Reputation: 0
Installation through FTP

firewall may be enabled, stop the firewall service on server & restart all services.
#/sbin/service iptables stop
#/sbin/service vsftpd restart
#/sbin/service dhcpd restart
#/sbin/service network restart
 
Old 07-08-2011, 09:24 AM   #7
Rohit_4739
Member
 
Registered: Oct 2010
Distribution: Red Hat
Posts: 228

Original Poster
Rep: Reputation: 9
Quote:
Originally Posted by ananthkadalur View Post
firewall may be enabled, stop the firewall service on server & restart all services.
#/sbin/service iptables stop
#/sbin/service vsftpd restart
#/sbin/service dhcpd restart
#/sbin/service network restart
Still no success .. Absolutely nothing seems to work. Let me give some more insight on it. May be that can be helpful for you guys in understanding my issue.

Here is how the server running vsftp is configured :

/var/ftp/pub/RH5 : this is the location on the server conataining the installtion tree.
And on client machine i am giving the path pub/RH5 for the installation directory. No IPtables is running. NO DHCPD running.

Is there any information that i can provide you guys with that can help you have a better understanding of the issue.
 
Old 07-08-2011, 03:58 PM   #8
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 476Reputation: 476Reputation: 476Reputation: 476Reputation: 476
@ Reply

Let us know the following things:

1. How is your VMware network is set up? Like: NAT, Bridged or Host only.
2. What are the contents of the following directory: /var/ftp/pub/RH5 . Just do ls -l /var/ftp/pub/RH5 and copy paste the output here.
3. What is the status of selinux on source server (which host the RH5 folder). Type selinux status and let us know the result.
4. How you are booting the machine on which you want to install RH5 using ftp. Are you using bootable USB or CD or via network?
 
Old 07-09-2011, 02:38 AM   #9
Rohit_4739
Member
 
Registered: Oct 2010
Distribution: Red Hat
Posts: 228

Original Poster
Rep: Reputation: 9
Some how i got it working. Instead of creating the directory RH5 under /var/ftp/pub i copied the files directly under /var/ftp/pub and it worked. I am not sure whether what i have done has actually something to do with that error but it worked for me.

You guys can give a better insight on this. And here are the answers for all your questions you asked for :

1. VMware is set up as NAT.
2. Here are the contents of /var/ftp/pub/RH5 :

Quote:
ls -l /var/ftp/pub/RH5
total 4048
dr-xr-xr-x 3 root root 4096 Mar 22 2010 Cluster
dr-xr-xr-x 3 root root 4096 Mar 22 2010 ClusterStorage
-r--r--r-- 1 root root 8445 Sep 2 2008 EULA
-r--r--r-- 1 root root 8445 Mar 10 2010 eula.en_US
-r--r--r-- 1 root root 18416 Nov 30 2006 GPL
dr-xr-xr-x 4 root root 4096 Mar 22 2010 images
dr-xr-xr-x 2 root root 4096 Mar 22 2010 isolinux
-r--r--r-- 1 root root 20873 Mar 9 2010 README-as.html
-r--r--r-- 1 root root 20946 Mar 9 2010 README-bn.html
-r--r--r-- 1 root root 20886 Mar 9 2010 README-de.html
-r--r--r-- 1 root root 0 Mar 9 2010 README-en
-r--r--r-- 1 root root 20874 Mar 9 2010 README-en.html
-r--r--r-- 1 root root 20862 Mar 9 2010 README-es.html
-r--r--r-- 1 root root 20874 Mar 9 2010 README-fr.html
-r--r--r-- 1 root root 20891 Mar 9 2010 README-gu.html
-r--r--r-- 1 root root 20900 Mar 9 2010 README-hi.html
-r--r--r-- 1 root root 20873 Mar 9 2010 README-it.html
-r--r--r-- 1 root root 20883 Mar 9 2010 README-ja.html
-r--r--r-- 1 root root 20895 Mar 9 2010 README-kn.html
-r--r--r-- 1 root root 20862 Mar 9 2010 README-ko.html
-r--r--r-- 1 root root 20873 Mar 9 2010 README-ml.html
-r--r--r-- 1 root root 20874 Mar 9 2010 README-mr.html
-r--r--r-- 1 root root 20919 Mar 9 2010 README-or.html
-r--r--r-- 1 root root 20899 Mar 9 2010 README-pa.html
-r--r--r-- 1 root root 20860 Mar 9 2010 README-pt_BR.html
-r--r--r-- 1 root root 20903 Mar 9 2010 README-ru.html
-r--r--r-- 1 root root 20875 Mar 9 2010 README-si.html
-r--r--r-- 1 root root 20933 Mar 9 2010 README-ta.html
-r--r--r-- 1 root root 20876 Mar 9 2010 README-te.html
-r--r--r-- 1 root root 20878 Mar 9 2010 README-zh_CN.html
-r--r--r-- 1 root root 20873 Mar 9 2010 README-zh_TW.html
-r--r--r-- 1 root root 64631 Mar 9 2010 RELEASE-NOTES-as.html
-r--r--r-- 1 root root 75030 Mar 9 2010 RELEASE-NOTES-bn.html
-r--r--r-- 1 root root 46484 Mar 9 2010 RELEASE-NOTES-de.html
-r--r--r-- 1 root root 21916 Mar 9 2010 RELEASE-NOTES-en
-r--r--r-- 1 root root 43052 Mar 9 2010 RELEASE-NOTES-en.html
-r--r--r-- 1 root root 45634 Mar 9 2010 RELEASE-NOTES-es.html
-r--r--r-- 1 root root 48127 Mar 9 2010 RELEASE-NOTES-fr.html
-r--r--r-- 1 root root 68031 Mar 9 2010 RELEASE-NOTES-gu.html
-r--r--r-- 1 root root 66009 Mar 9 2010 RELEASE-NOTES-hi.html
-r--r--r-- 1 root root 45837 Mar 9 2010 RELEASE-NOTES-it.html
-r--r--r-- 1 root root 51152 Mar 9 2010 RELEASE-NOTES-ja.html
-r--r--r-- 1 root root 77345 Mar 9 2010 RELEASE-NOTES-kn.html
-r--r--r-- 1 root root 47654 Mar 9 2010 RELEASE-NOTES-ko.html
-r--r--r-- 1 root root 81841 Mar 9 2010 RELEASE-NOTES-ml.html
-r--r--r-- 1 root root 69041 Mar 9 2010 RELEASE-NOTES-mr.html
-r--r--r-- 1 root root 71347 Mar 9 2010 RELEASE-NOTES-or.html
-r--r--r-- 1 root root 45087 Mar 9 2010 RELEASE-NOTES-pa.html
-r--r--r-- 1 root root 44999 Mar 9 2010 RELEASE-NOTES-pt_BR.html
-r--r--r-- 1 root root 53180 Mar 9 2010 RELEASE-NOTES-ru.html
-r--r--r-- 1 root root 42781 Mar 9 2010 RELEASE-NOTES-si.html
-r--r--r-- 1 root root 70285 Mar 9 2010 RELEASE-NOTES-ta.html
-r--r--r-- 1 root root 72262 Mar 9 2010 RELEASE-NOTES-te.html
-r--r--r-- 1 root root 64631 Mar 9 2010 RELEASE-NOTES-U5-as.html
-r--r--r-- 1 root root 75030 Mar 9 2010 RELEASE-NOTES-U5-bn.html
-r--r--r-- 1 root root 46484 Mar 9 2010 RELEASE-NOTES-U5-de.html
-r--r--r-- 1 root root 21916 Mar 9 2010 RELEASE-NOTES-U5-en
-r--r--r-- 1 root root 43052 Mar 9 2010 RELEASE-NOTES-U5-en.html
-r--r--r-- 1 root root 45634 Mar 9 2010 RELEASE-NOTES-U5-es.html
-r--r--r-- 1 root root 48127 Mar 9 2010 RELEASE-NOTES-U5-fr.html
-r--r--r-- 1 root root 68031 Mar 9 2010 RELEASE-NOTES-U5-gu.html
-r--r--r-- 1 root root 66009 Mar 9 2010 RELEASE-NOTES-U5-hi.html
-r--r--r-- 1 root root 45837 Mar 9 2010 RELEASE-NOTES-U5-it.html
-r--r--r-- 1 root root 51152 Mar 9 2010 RELEASE-NOTES-U5-ja.html
-r--r--r-- 1 root root 77345 Mar 9 2010 RELEASE-NOTES-U5-kn.html
-r--r--r-- 1 root root 47654 Mar 9 2010 RELEASE-NOTES-U5-ko.html
-r--r--r-- 1 root root 81841 Mar 9 2010 RELEASE-NOTES-U5-ml.html
-r--r--r-- 1 root root 69041 Mar 9 2010 RELEASE-NOTES-U5-mr.html
-r--r--r-- 1 root root 71347 Mar 9 2010 RELEASE-NOTES-U5-or.html
-r--r--r-- 1 root root 45087 Mar 9 2010 RELEASE-NOTES-U5-pa.html
-r--r--r-- 1 root root 44999 Mar 9 2010 RELEASE-NOTES-U5-pt_BR.html
-r--r--r-- 1 root root 53180 Mar 9 2010 RELEASE-NOTES-U5-ru.html
-r--r--r-- 1 root root 42781 Mar 9 2010 RELEASE-NOTES-U5-si.html
-r--r--r-- 1 root root 70285 Mar 9 2010 RELEASE-NOTES-U5-ta.html
-r--r--r-- 1 root root 72262 Mar 9 2010 RELEASE-NOTES-U5-te.html
-r--r--r-- 1 root root 52589 Mar 9 2010 RELEASE-NOTES-U5-zh_CN.html
-r--r--r-- 1 root root 53058 Mar 9 2010 RELEASE-NOTES-U5-zh_TW.html
-r--r--r-- 1 root root 52589 Mar 9 2010 RELEASE-NOTES-zh_CN.html
-r--r--r-- 1 root root 53058 Mar 9 2010 RELEASE-NOTES-zh_TW.html
-r--r--r-- 1 root root 1706 Mar 10 2010 RPM-GPG-KEY-redhat-beta
-r--r--r-- 1 root root 1164 Mar 10 2010 RPM-GPG-KEY-redhat-release
dr-xr-xr-x 3 root root 221184 Mar 22 2010 Server
-r--r--r-- 1 root root 19575 Mar 22 2010 TRANS.TBL
dr-xr-xr-x 3 root root 4096 Mar 22 2010 VT
3. sestatus
SELinux status: enabled
SELinuxfs mount: /selinux
Current mode: permissive
Mode from config file: permissive
Policy version: 21
Policy from config file: targeted

4. And i am using a bottable cd to boot up the client machine.
 
Old 07-12-2011, 04:23 PM   #10
Rohit_4739
Member
 
Registered: Oct 2010
Distribution: Red Hat
Posts: 228

Original Poster
Rep: Reputation: 9
Please reply guys... Help me figuring this error out
 
Old 07-12-2011, 04:28 PM   #11
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 476Reputation: 476Reputation: 476Reputation: 476Reputation: 476
@ Reply

Well you only said that you got it working ;-)

Anyways try to give this path /pub/RH5/Server instead of /pub/RH5 and see if it works because your install is looking for exact package location which is under /pub/RH5/Server and not under /pub/RH5

Last edited by T3RM1NVT0R; 07-12-2011 at 04:29 PM.
 
Old 07-12-2011, 04:29 PM   #12
prayag_pjs
Senior Member
 
Registered: Feb 2008
Location: Pune - India
Distribution: Fedora,RedHat,CentOS,Gentoo
Posts: 1,138
Blog Entries: 4

Rep: Reputation: 147Reputation: 147
Angry

Hi,

Try chmod -R 777 /var/ftp/pub/RH

also give path as only pub ;then pub/RH (trial and error method for path)
 
Old 07-12-2011, 04:32 PM   #13
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 476Reputation: 476Reputation: 476Reputation: 476Reputation: 476
@ Reply

@ prayag_pjs

Could you please explain what difference chmod 777 /var/ftp/pub/RH (wrong location) chmod 777 /var/ftp/pub/RH5 (right location) will make. OP already said that it works when he copy the packages directory under /var/ftp/pub so I don't think so it is a permission issue.

Edit: You said that OP should use just /pub and should not give /pub/RH5 then how will install come to know where are the packages. As he is doing an FTP install (and as far as I am aware) you have to give the exact package location not just the top level directory.

Last edited by T3RM1NVT0R; 07-12-2011 at 04:36 PM.
 
Old 07-12-2011, 04:39 PM   #14
prayag_pjs
Senior Member
 
Registered: Feb 2008
Location: Pune - India
Distribution: Fedora,RedHat,CentOS,Gentoo
Posts: 1,138
Blog Entries: 4

Rep: Reputation: 147Reputation: 147
Hi,

Ya sorry for the wrong location.

And if it works in /var/ftp/pub then why to copy it in different location /var/ftp/pub/RH5?

And hope THIS link helps
 
Old 07-12-2011, 04:41 PM   #15
Rohit_4739
Member
 
Registered: Oct 2010
Distribution: Red Hat
Posts: 228

Original Poster
Rep: Reputation: 9
Quote:
Originally Posted by prayag_pjs View Post
Hi,

Try chmod -R 777 /var/ftp/pub/RH

also give path as only pub ;then pub/RH (trial and error method for path)
NO it dint worked yar. just one more question here.. I have created installation directory now under /home/rohit/ftp and using non-anonymous access during installation, so the path in this case would be full path like /home/rohit/ftp or relative path /ftp.
 
  


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
Fedora 10 install via Windows XP filezilla ftp server; ftp Url error in kickstart O(V)eGA_l2el) Fedora 2 09-28-2009 10:40 AM
stalled error threw ftp installation (openBSD) klemen *BSD 1 08-22-2005 11:34 AM
anonymous ftp installation error lucky123 Linux - Networking 2 06-24-2005 03:44 AM
Slackware FTP installation: the FTP server IP jaakkop Slackware 2 06-09-2005 10:11 AM
installation via ftp N_A_J_M Linux - Networking 3 11-20-2002 03:05 AM


All times are GMT -5. The time now is 02:52 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration