Make a mirror repo : unable to mirror EPEL

Issues related to applications and software problems
Post Reply
mld
Posts: 1
Joined: 2017/12/08 17:43:12

Make a mirror repo : unable to mirror EPEL

Post by mld » 2017/12/08 18:02:19

Hi all,
I'm relatively new on linux and I'm trying to create a repo for RHEL 7, Centos 7 and EPEL.
My script successfully Mirrored RHEL7 (using RH registration) and Centos 7 repos.
But I'm unable to make a script to mirror EPEL.
I'm behind a firewall and I provided the proxy name, user and password in yum.conf

On Centos 7 I get :
http://mirrors.ircam.fr/pub/fedora/epel ... repomd.xml: [Errno 14] HTTP Error 403 - Forbidden


Here is how my script works on a RHEL 7 server :
RHEL part :
- Register to RHEL, add pools, Subscribe to some repos
- reposync
- create repo (if new repo else update)
Unregister server

Centos part :
- reposync
- create repo (if new repo else update)

EPEL :
- reposync
- create repo (if new repo else update)

On a Centos server using the same script (except the RHEL part) I get an error and yum repolist returns
# yum repolist
Loaded plugins: fastestmirror
http://mirrors.ircam.fr/pub/fedora/epel ... repomd.xml: [Errno 14] HTTP Error 403 - Forbidden
Trying other mirror.
To address this issue please refer to the below knowledge base article

https://access.redhat.com/solutions/69319

If above article doesn't help to resolve this issue please create a bug on https://bugs.centos.org/

http://mirrors.ircam.fr/pub/fedora/epel ... repomd.xml: [Errno 14] HTTP Error 403 - Forbidden
Trying other mirror.
repo id repo name status
centosplus centosplus 63
epel epel 0
extras extras 284
os os 9,591
updates updates 1,490
repolist: 11,428

# cat /etc/yum.repos.d/epel.repo
[epel]
name=epel
baseurl=http://mirrors.ircam.fr/pub/fedora/epel/7/x86_64
gpgcheck=1
enabled=1

# cat /etc/yum.repos.d/centos-os.repo
[os]
name=os
baseurl=http://centos.mirrors.ovh.net/7/os/x86_64
gpgcheck=1
enabled=1



Any idea ?
Best regards
MLD

pjsr2
Posts: 343
Joined: 2014/03/27 20:11:07

Re: Make a mirror repo : unable to mirror EPEL

Post by pjsr2 » 2017/12/08 21:10:39

Is your proxy server blocking access to the server at mirrors.ircom.fr?
Try loading the URL http://mirrors.ircam.fr/pub/fedora/epel ... repomd.xml in your web browser. That may give you a more informative error message.

Instead of providing a single baseurl, you could use metalink. This lets yum or reposync download a list of baseurl's to try:

Code: Select all

#baseurl=http://download.fedoraproject.org/pub/epel/7/$basearch
metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-7&arch=$basearch

Post Reply