We are running version 102.0.21. I'm currently unable to use the EasyApache 4 page as I get the following error: "YUM encountered errors outside of EasyApache 4. Log into the system via SSH to resolve them, or you can click the “Refresh” button to rebuild the system‘s cache."
I had a look at the logs and tracked it down to this:
We get the same error in a nightly email titled "cPanel & WHM update failure in upcp script" that I posted about recently (https://forums.cpanel.net/threads/c...ure-in-upcp-script.700709/page-4#post-2937813). At that time it was happening randomly but now it is every day.
What do you suggest I try?
I had a look at the logs and tracked it down to this:
I tried running "yum makecache" as it suggested but this resulted in the same error - I think your script is running the same command.[2022-09-22 06:34:02 +0100] info [xml-api] API failure: “/usr/local/cpanel/bin/python-packman” reported error code “1” when it ended: Traceback (most recent call last):
File "/usr/local/cpanel/bin/packman_get_list_json", line 15, in <module>
packman.init_yum()
File "/usr/local/cpanel/bin/packman_lib/yum_impl.py", line 78, in init_yum
yb.repos.populateSack()
File "/usr/lib/python2.7/site-packages/yum/repos.py", line 347, in populateSack
self.doSetup()
File "/usr/lib/python2.7/site-packages/yum/repos.py", line 157, in doSetup
self.retrieveAllMD()
File "/usr/lib/python2.7/site-packages/yum/repos.py", line 88, in retrieveAllMD
dl = repo._async and repo._commonLoadRepoXML(repo)
File "/usr/lib/python2.7/site-packages/yum/yumRepo.py", line 1482, in _commonLoadRepoXML
result = self._getFileRepoXML(local, text)
File "/usr/lib/python2.7/site-packages/yum/yumRepo.py", line 1259, in _getFileRepoXML
size=102400) # setting max size as 100K
File "/usr/lib/python2.7/site-packages/yum/yumRepo.py", line 1042, in _getFile
raise e
yum.Errors.NoMoreMirrorsRepoError: failure: repodata/repomd.xml from mariadb: [Errno 256] No more mirrors to try.
http://yum.mariadb.org/10.2/rhel7-amd64/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found
w/ /usr/local/cpanel/bin/packman_get_list_json installed ea-
Often errors like this can be resolved by running `yum makecache`
[ea4_list_profiles] version [1].
[2022-09-22 06:34:06 +0100] info [xml-api] “/usr/bin/yum” reported error code “1” when it ended: w/ /usr/bin/yum makecache
Loaded plugins: fastestmirror, langpacks, universal-hooks
Loading mirror speeds from cached hostfile
* EA4: 185.15.22.168
* cpanel-addons-production-feed: 185.15.22.168
* cpanel-plugins: 185.15.22.168
* base: mirrors.vinters.com
* epel: mirrors.coreix.net
* extras: mirror.as29550.net
* remi-safe: mirrors.ukfast.co.uk
* updates: uk.mirrors.clouvider.net
http://yum.mariadb.org/10.2/rhel7-amd64/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found
Trying other mirror.
To address this issue please refer to the below wiki article
If above article doesn't help to resolve this issue please use My View - CentOS Bug Tracker.
One of the configured repositories failed (MariaDB),
and yum doesn't have enough cached data to continue. At this point the only
safe thing yum can do is fail. There are a few ways to work "fix" this:
1. Contact the upstream for the repository and get them to fix the problem.
2. Reconfigure the baseurl/etc. for the repository, to point to a working
upstream. This is most often useful if you are using a newer
distribution release than is supported by the repository (and the
packages for the previous distribution release still work).
3. Run the command with the repository temporarily disabled
yum --disablerepo=mariadb ...
4. Disable the repository permanently, so yum won't use it by default. Yum
will then just ignore the repository until you permanently enable it
again or use --enablerepo for temporary usage:
yum-config-manager --disable mariadb
or
subscription-manager repos --disable=mariadb
5. Configure the failing repository to be skipped, if it is unavailable.
Note that yum will try to contact the repo. when it runs most commands,
so will have to try and fail each time (and thus. yum will be be much
slower). If it is a very temporary problem though, this is often a nice
compromise:
yum-config-manager --save --setopt=mariadb.skip_if_unavailable=true
failure: repodata/repomd.xml from mariadb: [Errno 256] No more mirrors to try.
http://yum.mariadb.org/10.2/rhel7-amd64/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found
Often errors like this can be resolved by running `yum makecache`
[package_manager_fixcache] version [1].
We get the same error in a nightly email titled "cPanel & WHM update failure in upcp script" that I posted about recently (https://forums.cpanel.net/threads/c...ure-in-upcp-script.700709/page-4#post-2937813). At that time it was happening randomly but now it is every day.
What do you suggest I try?
Last edited by a moderator: