YUM encountered errors outside of EasyApache 4
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:
[QUOTE]
[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
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.
If above article doesn't help to resolve this issue please use
-
Hey there! We did fix this in later versions of cPanel automatically, but since you're on version 102 you'll need to manually resolve this. Can you run the following commands on the server and then see if "yum update" works well? echo '142.4.217.28 yum.mariadb.org' >> /etc/hosts yum clean all yum makecache yum update0 -
Hey there! We did fix this in later versions of cPanel automatically, but since you're on version 102 you'll need to manually resolve this. Can you run the following commands on the server and then see if "yum update" works well?
Thanks, this has solved the problem.0 -
I'm glad that worked well! 0 -
First of all, the code yum upate
has a typo. Should beyum update
. And second, no, this did not solve my issue. I still get:Imunify360 ea-php Hardened repository for CentO 171 B/s | 179 B 00:01 Error: Failed to download metadata for repo 'imunify360-ea-php-hardened': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried0
Please sign in to leave a comment.
Comments
5 comments