LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 12-05-2012, 11:25 AM   #1
mikachewie
LQ Newbie
 
Registered: Dec 2012
Posts: 3

Rep: Reputation: Disabled
Unhappy CentOS 6.3 > Creating Repos? Error.


So, I've looked up this error, but none of the solutions fixed the issue from me.

I installed vsftp, started it, created /var/ftp/pub/yum-repos/centos and placed a .rpm file in there. Then I ran createrepo /var/ftp/pub/yum-repos/centos and it created the repodata and under that the repomd.xml file.

I then went on a client server (on same network & subnet) and placed the following information called local.repo;

Code:
[base-centos]
name=centos
baseurl=ftp://x.x.x.x/pub/yum-repo/centos/
enabled=1
gpgcheck=0
However, it keeps throwing;
Quote:
ftp://x.x.x.x/pub/yum-repo/centos/repodata/repomd.xml: [Errno 14] PYCURL ERROR 19 - "Given file does not exist"
Which, I can get to ftp://x.x.x.x/pub/yum-repo/centos/repodata through the browser and the file exists, so I'm not sure .. why I keep getting this error ...

Sorry, I know it's a noob question most likely, but I've never created a repo and it looks right to me e_e ...
 
Old 12-05-2012, 12:05 PM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: CentOS 6 (pre-systemd)
Posts: 1,691

Rep: Reputation: 431Reputation: 431Reputation: 431Reputation: 431Reputation: 431
login from the command line on the client using ftp and do 'ls' and 'cd' to see what's there.
 
Old 12-05-2012, 12:30 PM   #3
mikachewie
LQ Newbie
 
Registered: Dec 2012
Posts: 3

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by smallpond View Post
login from the command line on the client using ftp and do 'ls' and 'cd' to see what's there.
I logged in via FTP (on the client & the localhost aka ftp server) and got the following when I tried to descend down;

Code:
227 Entering Passive Mode (127,0,0,1,139,75).
150 Here comes the directory listing.
drwxr-xr-x    3 0        0            4096 Dec 05 14:39 yum-repo
226 Directory send OK.
ftp> cd yum-repo
250 Directory successfully changed.
ftp> ls
227 Entering Passive Mode (127,0,0,1,212,86).
150 Here comes the directory listing.
226 Transfer done (but failed to open directory).
If the permissions on centos are the same as yum-repo, why would it be failing to open the directory? Especially on the localhost?

Last edited by mikachewie; 12-05-2012 at 12:39 PM. Reason: I did this on localhost & client
 
Old 12-05-2012, 01:06 PM   #4
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: CentOS 6 (pre-systemd)
Posts: 1,691

Rep: Reputation: 431Reputation: 431Reputation: 431Reputation: 431Reputation: 431
Depending on what's in /etc/vsftpd.conf, error messages are going to either /var/log/vsftpd.log or /var/log/messages. Check and see if it shows an error. Most likely possibilities are selinux, directory permissions or config file.
 
Old 12-05-2012, 01:12 PM   #5
mikachewie
LQ Newbie
 
Registered: Dec 2012
Posts: 3

Original Poster
Rep: Reputation: Disabled
Sigh. SELinux rears it's ugly ahead again.
Anyways, ran setsebool -P ftp_home_dir=1 and it's all working now.
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to update repos in CentOS 5.6 yum.repos.d!!!!! Explore_Linux Linux - Newbie 1 09-28-2011 05:20 AM
CentOS 5 repos on RHEL 6 mhatrey Red Hat 4 08-24-2011 06:56 AM
Need help with repos on centos 5.3 (no gui) jim.thornton Linux - Newbie 2 07-31-2009 08:39 AM
CENTOS Repos siawash Fedora 4 04-19-2009 05:02 PM
using centos repos under rhel sycamorex Linux - Software 4 05-26-2008 12:35 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration