Error connecting to repo server

Hi guys,
I will really appreciate your help on this issue I am having.

I built a repository on one of my servers using a red hat dvd . It is working fine on that server.

When I create a repo file in a client server and try to connect to the server repository, I get this error

ftp://10.0.0.200/pub/repodata/repomd.xml: [Errno 14] PYCURL ERROR 7 - "couldn't connect to host"

Please any help will be appreciated.

Thanks guys

Assuming that the FTP server is also running Redhat...

Is the ftp daemon running on the server?

Another obstacled could be the firewall.

Nothing to do with connectivity, but for file visibility, if SELinux is enabled and in enforcing mode...

# sestatus
SELinux status:                 enabled
SELinuxfs mount:                /selinux
Current mode:                   enforcing
Mode from config file:          enforcing
Policy version:                 24
Policy from config file:        targeted

...you may need to "chcon" the repodata directory.

i.e.

# chcon -R --reference /var/ftp /var/ftp/repodata

Remembering to use semanage to make it permanent:

# semanage fcontext -a -u system_u -t public_content_t /var/ftp/repodata/*

HTH

1 Like

Thanks Scott,

it was a firewall issue. Figured it out .

Thanks again for the help