Repo 'powertools-source': Cannot download repodata/repomd.xml: All mirrors were tried

Operating System & Version
Almalinux 8.5
cPanel & WHM Version
102.0.14

BlueSteam

Well-Known Member
Feb 21, 2013
129
22
68
cPanel Access Level
Reseller Owner
Hello,

We are running cPanel on Almalinux 8.5

This morning I woke up to the following error:

My initial thoughts are that the repo is down because of that 404 error in the output so I am wondering if there is an alternative repo to get the update through?

Maintenance ended; however, it did not exit cleanly (256). The following events were logged: “scripts/findphpversion” and “scripts/update-packages”. Review the update logs to determine why the update failed.
Update log preview:
...
...
[2022-05-07 02:14:09 +0200] E [/usr/local/cpanel/scripts/update-packages] The “/usr/local/cpanel/scripts/update-packages” command (process 3777150) reported error number 1 when it ended.
...
[2022-05-07 02:18:44 +0200] E [/usr/local/cpanel/scripts/findphpversion] “/usr/local/cpanel/bin/python-packman” reported error code “1” when it ended: Errors during downloading metadata for repository 'powertools-source':
[2022-05-07 02:18:44 +0200] E [/usr/local/cpanel/scripts/findphpversion] - Status code: 404 for http://repo.almalinux.org/vault/8/PowerTools/Source/repodata/repomd.xml (IP: 136.243.31.169)

...
[2022-05-07 02:19:05 +0200] Processing: Updating plugins data cache
[2022-05-07 02:19:05 +0200] - Processing command `/usr/local/cpanel/bin/refresh_plugin_cache`
[2022-05-07 02:19:05 +0200] - Finished command `/usr/local/cpanel/bin/refresh_plugin_cache` in 0.024 seconds
[2022-05-07 02:19:05 +0200] Processing: Ensuring SSL certificate information for CCS is up to date.
[2022-05-07 02:19:05 +0200] - Processing command `/usr/local/cpanel/scripts/ccs-check --run --ssl`
[2022-05-07 02:19:05 +0200] - Finished command `/usr/local/cpanel/scripts/ccs-check --run --ssl` in 0.006 seconds
[2022-05-07 02:19:05 +0200] Processing: Ensure cpanel-plugins yum repo exists
[2022-05-07 02:19:06 +0200] - Finished in 1.233 seconds
[2022-05-07 02:19:06 +0200] Processing: Checking Addon Licenses
[2022-05-07 02:19:06 +0200] - Finished in 0.002 seconds
[2022-05-07 02:19:06 +0200] Processing: Updating Public Suffix List
[2022-05-07 02:19:06 +0200] Processing: Checking End Of Life for current version.
[2022-05-07 02:19:52 +0200] - Finished in 45.722 seconds
[2022-05-07 02:19:52 +0200] Processing:
[2022-05-07 02:19:52 +0200] Maintenance complete.
=> Log closed Sat May 7 02:19:52 2022
----------------------------------------------------------------------------------------------------
=> Log opened from cPanel Update (upcp) - Slave (3777087) at Sat May 7 02:19:52 2022
When I retry the script/update-packages I get the following error:

[[email protected] scripts]# ./update-packages
checkyum version 22.3 (excludes: bind-chroot)
AlmaLinux 8 - PowerTools Source 70 B/s | 146 B 00:02
Error: Failed to download metadata for repo 'powertools-source': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
(XID w6pc9k) “/usr/bin/yum” reported error code “1” when it ended:
[[email protected] scripts]#
So I ran yum clean all and then yum update and tried again but the same happens repeatedly.

I would appreciate it if someone could provide me some guidance here.
 

kodeslogic

Well-Known Member
PartnerNOC
Apr 26, 2020
478
225
118
IN
cPanel Access Level
Root Administrator
I remember I resolved one such issue by rebuilding the yum cache:

Code:
yum clean all
yum makecache