Not able to Update because of epel repository

Hallo community,

I cannot update my system because of the epel-release.
Did I do something wrong, or is there currently a problem with the Server?

[user@rocky-linux ~]$ sudo dnf upgrade
Extra Packages for Enterprise Linux 9 - aarch64                                                                                                                19 kB/s | 3.3 kB     00:00    
Errors during downloading metadata for repository 'epel':
  - Status code: 503 for https://mirrors.fedoraproject.org/metalink?repo=epel-9&arch=aarch64&infra=$infra&content=pub/rocky (IP: 2a05:d014:10:7803:f774:4d7c:e277:a457)
Error: Failed to download metadata for repo 'epel': Cannot prepare internal mirrorlist: Status code: 503 for https://mirrors.fedoraproject.org/metalink?repo=epel-9&arch=aarch64&infra=$infra&content=pub/rocky (IP: 2a05:d014:10:7803:f774:4d7c:e277:a457)

Rocky Linux version

5.14.0-503.26.1.el9_5.aarch64

You can try to force it to choose another mirror:

dnf clean all
dnf update

Tried that, still same error.

This says that the mirrorlist mirrors.fedoraproject.org returns 503 for the query.
It did return a list for me a moment ago. Is it multiple machines and I just got different from the 2a05:d014:10:7803:f774:4d7c:e277:a457?

Switching from mirrorlist to baseurl ought to access specific repo directly, and that should not give same error.

1 Like

when i set the repo to:

[epel]
name=Extra Packages for Enterprise Linux $releasever - $basearch
# It is much more secure to use the metalink, but if you wish to use a local mirror
# place its address here.
baseurl=https://dl.fedoraproject.org/pub/epel/$releasever/Everything/$basearch/
#metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-$releasever&arch=$basearch&infra=$infra&content=$contentdir
enabled=1
gpgcheck=1
countme=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-$releasever

i get the following:

[root@rocky user]# dnf upgrade
Extra Packages for Enterprise Linux 9 - aarch64                                                                                                               5.7 MB/s |  23 MB     00:04    
Extra Packages for Enterprise Linux 9 openh264 (From Cisco) - aarch64                                                                                          17 kB/s | 3.3 kB     00:00    
Errors during downloading metadata for repository 'epel-cisco-openh264':
  - Status code: 503 for https://mirrors.fedoraproject.org/metalink?repo=epel-cisco-openh264-9&arch=aarch64 (IP: 2a05:d014:10:7803:f774:4d7c:e277:a457)
Error: Failed to download metadata for repo 'epel-cisco-openh264': Cannot prepare internal mirrorlist: Status code: 503 for https://mirrors.fedoraproject.org/metalink?repo=epel-cisco-openh264-9&arch=aarch64 (IP: 2a05:d014:10:7803:f774:4d7c:e277:a457)
Rocky Linux 9 - BaseOS                                                                                                                                        5.9 MB/s | 2.5 MB     00:00    
Rocky Linux 9 - AppStream                                                                                                                                      18 MB/s | 7.4 MB     00:00    
Rocky Linux 9 - CRB                                                                                                                                           5.3 MB/s | 2.0 MB     00:00    
Rocky Linux 9 - Extras                                                                                                                                         58 kB/s |  17 kB     00:00    
Ignoring repositories: epel-cisco-openh264
Dependencies resolved.
Nothing to do.
Complete!

Full epel. repo after reverting it back(original error):

[epel]
name=Extra Packages for Enterprise Linux $releasever - $basearch
# It is much more secure to use the metalink, but if you wish to use a local mirror
# place its address here.
#baseurl=https://download.example/pub/epel/$releasever/Everything/$basearch/
metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-$releasever&arch=$basearch&infra=$infra&content=$contentdir
enabled=1
gpgcheck=1
countme=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-$releasever

[epel-debuginfo]
name=Extra Packages for Enterprise Linux $releasever - $basearch - Debug
# It is much more secure to use the metalink, but if you wish to use a local mirror
# place its address here.
#baseurl=https://download.example/pub/epel/$releasever/Everything/$basearch/debug/
metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-debug-$releasever&arch=$basearch&infra=$infra&content=$contentdir
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-$releasever
gpgcheck=1

[epel-source]
name=Extra Packages for Enterprise Linux $releasever - $basearch - Source
# It is much more secure to use the metalink, but if you wish to use a local mirror
# place its address here.
#baseurl=https://download.example/pub/epel/$releasever/Everything/source/tree/
metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-source-$releasever&arch=$basearch&infra=$infra&content=$contentdir
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-$releasever
gpgcheck=1

After reverting it back to the (original file) suddenly it is working without error.

1 Like

You did change the ‘epel’ to use baseurl, but the ‘epel-cisco-openh264’ was still on metalink.
Hence the “separate” error.

I bet that whatever hiccup the metalink server had, it got its act together again (and your actions had no real effect).