Slow update, yum error

System version: NethServer release 7.7.1908 (final)
Kernel release: 3.10.0-1062.12.1.el7.x86_64

Regards,
Today I was trying to update our server, but after many retries to refresh the update, I try from console an see a lot of timeouts in some mirror.

So, I wonder where I can ‘delete’ the offending mirror:

yum update
Loaded plugins: changelog, fastestmirror, nethserver_events
Determining fastest mirrors
epel/x86_64/metalink                                                                                                                                                                                                                                      |  18 kB  00:00:00     
 * ce-base: mirrors.unifiedlayer.com
 * ce-extras: mirrors.unifiedlayer.com
 * ce-sclo-rh: mirrors.unifiedlayer.com
 * ce-sclo-sclo: mirrors.unifiedlayer.com
 * ce-updates: mirrors.unifiedlayer.com
 * epel: pubmirror2.math.uh.edu
 * nethforge: markusneuberger.at
 * nethserver-base: markusneuberger.at
 * nethserver-updates: markusneuberger.at
ce-base/7/x86_64/signature                                                                                                                                                                                                                                |  811 B  00:00:00     
ce-base/7/x86_64/signature                                                                                                                                                                                                                                | 3.6 kB  00:00:00 !!! 
ce-extras/7/x86_64/signature                                                                                                                                                                                                                              |  811 B  00:00:00     
ce-extras/7/x86_64/signature                                                                                                                                                                                                                              | 2.9 kB  00:00:00 !!! 
ce-sclo-rh                                                                                                                                                                                                                                                | 3.0 kB  00:00:00     
ce-sclo-sclo                                                                                                                                                                                                                                              | 2.9 kB  00:00:00     
ce-updates/7/x86_64/signature                                                                                                                                                                                                                             |  811 B  00:00:00     
ce-updates/7/x86_64/signature                                                                                                                                                                                                                             | 2.9 kB  00:00:00 !!! 
epel                                                                                                                                                                                                                                                      | 5.4 kB  00:00:00     
http://ns-mirror3.ibi.net.br/7.7.1908/nethforge/x86_64/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found
Trying other mirror.
To address this issue please refer to the below wiki article 

https://wiki.centos.org/yum-errors

If above article doesn't help to resolve this issue please use https://bugs.centos.org/.

nethforge/7/x86_64/signature                                                                                                                                                                                                                              |  836 B  00:00:00     
nethforge/7/x86_64/signature                                                                                                                                                                                                                              | 3.6 kB  00:00:00 !!! 
http://ns-mirror3.ibi.net.br/7.7.1908/base/x86_64/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found
Trying other mirror.
nethserver-base/7/x86_64/signature                                                                                                                                                                                                                        |  836 B  00:00:00     
nethserver-base/7/x86_64/signature                                                                                                                                                                                                                        | 2.9 kB  00:00:00 !!! 
http://ns-mirror3.ibi.net.br/7.7.1908/updates/x86_64/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found
Trying other mirror.
nethserver-updates/7/x86_64/signature                                                                                                                                                                                                                     |  836 B  00:00:00     
nethserver-updates/7/x86_64/signature                                                                                                                                                                                                                     | 3.6 kB  00:00:00 !!! 
stephdl                                                                                                                                                                                                                                                   | 2.9 kB  00:00:00     
(1/15): ce-base/7/x86_64/group_gz                                                                                                                                                                                                                         | 165 kB  00:00:06     
(2/15): ce-extras/7/x86_64/primary_db                                                                                                                                                                                                                     | 159 kB  00:00:06     
(3/15): epel/x86_64/group_gz                                                                                                                                                                                                                              |  90 kB  00:00:03     
(4/15): ce-sclo-sclo/7/x86_64/primary_db                                                                                                                                                                                                                  | 341 kB  00:00:14     
(5/15): epel/x86_64/updateinfo                                                                                                                                                                                                                            | 1.0 MB  00:00:29     
nethforge/7/x86_64/group_gz    FAILED                                                                                     19% [=====================                                                                                           ] 133 kB/s | 5.1 MB  00:02:45 ETA 
http://ns-mirror3.ibi.net.br/7.7.1908/nethforge/x86_64/repodata/030cbb956c5078e2607281934cb21414a5078a75897de8a9b7c807be82fc9b19-nethforge-groups.x86_64.xml.gz: [Errno 14] HTTP Error 404 - Not Found                                         ] 133 kB/s | 5.1 MB  00:02:45 ETA 
Trying other mirror.
nethforge/7/x86_64/primary_db  FAILED                                                                                     19% [======================                                                                                          ] 123 kB/s | 5.2 MB  00:02:57 ETA 
http://ns-mirror3.ibi.net.br/7.7.1908/nethforge/x86_64/repodata/f19f3b756eb1beae8f0360692ba9b3f81525e5e564db9e59417a0f7bb8a9a4a2-primary.sqlite.bz2: [Errno 14] HTTP Error 404 - Not Found                                                     ] 123 kB/s | 5.2 MB  00:02:57 ETA 
Trying other mirror.
nethserver-base/7/x86_64/prima FAILED                                                                                     19% [======================                                                                                          ] 124 kB/s | 5.3 MB  00:02:55 ETA 
http://ns-mirror3.ibi.net.br/7.7.1908/base/x86_64/repodata/69256b6c5ef5cfbc44ebd389afe8881a8c6e843f3f7813812dc091617c49b53b-primary.sqlite.bz2: [Errno 14] HTTP Error 404 - Not Found                                                          ] 124 kB/s | 5.3 MB  00:02:55 ETA 
Trying other mirror.
nethserver-updates/7/x86_64/gr FAILED                                                                                     20% [======================                                                                                          ] 126 kB/s | 5.3 MB  00:02:52 ETA 
http://ns-mirror3.ibi.net.br/7.7.1908/updates/x86_64/repodata/bd7f985b3708d79bac546a56c863b905cd4a1732d4665a88e9a21de28430ee68-updates-groups.x86_64.xml.gz: [Errno 14] HTTP Error 404 - Not Found                                             ] 126 kB/s | 5.3 MB  00:02:52 ETA 
Trying other mirror.
nethserver-updates/7/x86_64/pr FAILED                                                                                     20% [=======================                                                                                         ] 124 kB/s | 5.5 MB  00:02:54 ETA 
http://ns-mirror3.ibi.net.br/7.7.1908/updates/x86_64/repodata/c13e51383d1d13cce2bf3bc5059ef025333815bfc1c536764fafb7029d4c6709-primary.sqlite.bz2: [Errno 14] HTTP Error 404 - Not Found                                                       ] 124 kB/s | 5.5 MB  00:02:54 ETA 
Trying other mirror.
(6/15): stephdl/7/primary_db                                                                                                                                                                                                                              | 201 kB  00:00:06     
(7/15): nethforge/7/x86_64/group_gz                                                                                                                                                                                                                       | 1.7 kB  00:00:00     
(8/15): nethforge/7/x86_64/primary_db                                                                                                                                                                                                                     | 111 kB  00:00:02     
(9/15): ce-base/7/x86_64/primary_db                                                                                       26% [==============================                                                                                  ] 125 kB/s | 7.2 MB  00:02:39 ETA 
(9/15): nethserver-base/7/x86_64/primary_db                                                                                                                                                                                                               | 353 kB  00:00:14     
(10/15): nethserver-updates/7/x86_64/group_gz                                                                                                                                                                                                             |  22 kB  00:00:01     
(11/15): nethserver-updates/7/x86_64/primary_db                                                                                                                                                                                                           | 519 kB  00:00:37     
ce-base/7/x86_64/primary_db    FAILED                                                                                     82% [============================================================================================                    ] 130 kB/s |  22 MB  00:00:36 ETA 
http://www.mirrorservice.org/sites/mirror.centos.org/7.7.1908/os/x86_64/repodata/04efe80d41ea3d94d36294f7107709d1c8f70db11e152d6ef562da344748581a-primary.sqlite.bz2: [Errno -1] Metadata file does not match checksum=====                    ] 130 kB/s |  22 MB  00:00:36 ETA 
Trying other mirror.
ce-sclo-rh/7/x86_64/primary_db FAILED                                                                                     63% [=======================================================================                                         ] 120 kB/s |  17 MB  00:01:22 ETA 
http://mirror.overthewire.com.au/pub/centos/7.7.1908/sclo/x86_64/rh/repodata/fbaaeb61c654d2be7827ed79eecc277f067859e1a1ccfb0ac87680fdba30b884-primary.sqlite.bz2: [Errno -1] Metadata file does not match checksum                             ] 120 kB/s |  17 MB  00:01:22 ETA 
Trying other mirror.
epel/x86_64/primary_db         FAILED                                                                                     57% [================================================================                                                ] 125 kB/s |  15 MB  00:01:33 ETA 
https://mirror.vcu.edu/pub/gnu%2Blinux/epel/7/x86_64/repodata/a1ccde038857a0f63a2e4dae217dc52abdc33d1120f648bd828167e34804778a-primary.sqlite.bz2: [Errno -1] Metadata file does not match checksum                                            ] 125 kB/s |  15 MB  00:01:33 ETA 
Trying other mirror.
ce-updates/7/x86_64/primary_db FAILED                                                                                     76% [=====================================================================================-                          ] 109 kB/s |  20 MB  00:00:58 ETA 
http://mirror.overthewire.com.au/pub/centos/7.7.1908/updates/x86_64/repodata/c7e9411e163361d7a4877dbddc6e0656fb64b0a09812d6e8234ab55c8aae8e2e-primary.sqlite.bz2: [Errno -1] Metadata file does not match checksum==-                          ] 109 kB/s |  20 MB  00:00:58 ETA 
Trying other mirror.
ce-sclo-rh/7/x86_64/primary_db FAILED                                                                                     56% [===============================================================-                                                ] 128 kB/s |  15 MB  00:01:31 ETA 
http://www.mirrorservice.org/sites/mirror.centos.org/7.7.1908/sclo/x86_64/rh/repodata/fbaaeb61c654d2be7827ed79eecc277f067859e1a1ccfb0ac87680fdba30b884-primary.sqlite.bz2: [Errno -1] Metadata file does not match checksum                    ] 128 kB/s |  15 MB  00:01:31 ETA 
Trying other mirror.

Edit #2 Continue, and not ending yet

epel/x86_64/primary_db         FAILED                                                                                     80% [==========================================================================================                      ] 125 kB/s |  21 MB  00:00:42 ETA 
https://pubmirror1.math.uh.edu/fedora-buffet/epel/7/x86_64/repodata/a1ccde038857a0f63a2e4dae217dc52abdc33d1120f648bd828167e34804778a-primary.sqlite.bz2: [Errno -1] Metadata file does not match checksum================                      ] 125 kB/s |  21 MB  00:00:42 ETA 
Trying other mirror.
ce-base/7/x86_64/primary_db    FAILED                                                                                     65% [========================================================================-                                       ] 136 kB/s |  17 MB  00:01:09 ETA 
http://mirror.overthewire.com.au/pub/centos/7.7.1908/os/x86_64/repodata/04efe80d41ea3d94d36294f7107709d1c8f70db11e152d6ef562da344748581a-primary.sqlite.bz2: [Errno -1] Metadata file does not match checksum                                  ] 136 kB/s |  17 MB  00:01:09 ETA 
Trying other mirror.
ce-sclo-rh/7/x86_64/primary_db FAILED                                                                                     52% [==========================================================                                                      ] 129 kB/s |  14 MB  00:01:40 ETA 
http://mirror.metrocast.net/centos/7.7.1908/sclo/x86_64/rh/repodata/fbaaeb61c654d2be7827ed79eecc277f067859e1a1ccfb0ac87680fdba30b884-primary.sqlite.bz2: [Errno -1] Metadata file does not match checksum                                      ] 129 kB/s |  14 MB  00:01:40 ETA 
Trying other mirror.
ce-updates/7/x86_64/primary_db FAILED                                                                                     73% [==================================================================================                              ] 144 kB/s |  20 MB  00:00:50 ETA 
http://www.mirrorservice.org/sites/mirror.centos.org/7.7.1908/updates/x86_64/repodata/c7e9411e163361d7a4877dbddc6e0656fb64b0a09812d6e8234ab55c8aae8e2e-primary.sqlite.bz2: [Errno -1] Metadata file does not match checksum                    ] 144 kB/s |  20 MB  00:00:50 ETA 
Trying other mirror.
epel/x86_64/primary_db         FAILED                                                                                     50% [========================================================                                                        ] 148 kB/s |  13 MB  00:01:32 ETA 
https://mirror.mrjester.net/fedora/epel/7/x86_64/repodata/a1ccde038857a0f63a2e4dae217dc52abdc33d1120f648bd828167e34804778a-primary.sqlite.bz2: [Errno -1] Metadata file does not match checksum                                                ] 148 kB/s |  13 MB  00:01:32 ETA 
Trying other mirror.
....

…Waiting for yum update to end

As you found out that mirror is having problems and is not in sync at the moment ( http://mirror-status.nethserver.org/ ).

You can remove /var/cache/yum/x86_64/7/timedhosts.txt for fastestmirror yum plugin to check speed of mirrors and regenerate the file. In case it does not work you can exclude a specific mirror adding it to /etc/yum/pluginconf.d/fastestmirror.conf (exclude=ns-mirror3.ibi.net.br).

Or if it is a temporary measure, you disable fastestmirror plugin at runtime with:

yum --disableplugin=fastestmirror update

Is the server behind a proxy?
You can try with:

yum --setopt=http_caching=none update
3 Likes

Thank you @dnutan !
The server is behind a fortigate, but not as proxy, strange, anyway I need to mix both instructions, successfully:

EDIT: even I write an erroneous parameter it works, I suppose the correct one is this:
yum --disableplugin=fastestmirror --setopt=http_caching=none update

yum --disableplugin=fastestmirror --setopt=none update
Loaded plugins: changelog, nethserver_events
Setopt argument has no value: none
nethserver-updates/7/x86_64/pr FAILED                                                                                      9% [==========-                                                                                                     ]  0.0 B/s | 2.3 MB  --:--:-- ETA 
http://ns-mirror3.ibi.net.br/7.7.1908/updates/x86_64/repodata/c13e51383d1d13cce2bf3bc5059ef025333815bfc1c536764fafb7029d4c6709-primary.sqlite.bz2: [Errno 14] HTTP Error 404 - Not Found                                                       ]  0.0 B/s | 2.3 MB  --:--:-- ETA 
Trying other mirror.
To address this issue please refer to the below wiki article 

https://wiki.centos.org/yum-errors

If above article doesn't help to resolve this issue please use https://bugs.centos.org/.

(1/5): nethserver-updates/7/x86_64/primary_db                                                                                                                                                                                                             | 519 kB  00:00:04     
(2/5): ce-sclo-rh/7/x86_64/primary_db                                                                                                                                                                                                                     | 4.2 MB  00:00:29     
(3/5): epel/x86_64/primary_db                                                                                                                                                                                                                             | 6.7 MB  00:01:03     
(4/5): ce-base/7/x86_64/primary_db                                                                                                                                                                                                                        | 6.0 MB  00:01:03     
(5/5): ce-updates/7/x86_64/primary_db                                                                                                                                                                                                                     | 6.7 MB  00:01:09     
Resolving Dependencies
--> Running transaction check
---> Package nethserver-firewall-base.noarch 0:3.8.6-1.ns7 will be updated
---> Package nethserver-firewall-base.noarch 0:3.8.7-1.ns7 will be an update
---> Package nethserver-firewall-base-ui.noarch 0:3.8.6-1.ns7 will be updated
---> Package nethserver-firewall-base-ui.noarch 0:3.8.7-1.ns7 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

=================================================================================================================================================================================================================================================================================
 Package                                                                       Arch                                                     Version                                                       Repository                                                            Size
=================================================================================================================================================================================================================================================================================
Updating:
 nethserver-firewall-base                                                      noarch                                                   3.8.7-1.ns7                                                   nethserver-updates                                                   133 k
 nethserver-firewall-base-ui                                                   noarch                                                   3.8.7-1.ns7                                                   nethserver-updates                                                   1.6 M

Transaction Summary
=================================================================================================================================================================================================================================================================================
Upgrade  2 Packages

Total download size: 1.7 M
Is this ok [y/d/N]: