LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   CentOS 6.3 > Creating Repos? Error. (http://www.linuxquestions.org/questions/linux-general-1/centos-6-3-creating-repos-error-4175440148/)

mikachewie 12-05-2012 10:25 AM

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 ...

smallpond 12-05-2012 11:05 AM

login from the command line on the client using ftp and do 'ls' and 'cd' to see what's there.

mikachewie 12-05-2012 11:30 AM

Quote:

Originally Posted by smallpond (Post 4843311)
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?

smallpond 12-05-2012 12:06 PM

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.

mikachewie 12-05-2012 12:12 PM

Sigh. SELinux rears it's ugly ahead again.
Anyways, ran setsebool -P ftp_home_dir=1 and it's all working now.


All times are GMT -5. The time now is 01:37 AM.