Issue
Unable to update the system due to the following error:
Error: Failed to download metadata for repo 'cloudlinux-x86_64-server-8': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
The following can be seen in /var/log/dnf.log:
2023-12-28T15:18:25-0500 DEBUG error: Status code: 404 for https://cl-mirror.domain.tld/XMLRPC//GET-REQ/cloudlinux-x86_64-server-8/repodata/repomd.xml (IP: 62.221.251.201) (https://cl-mirror.domain.tld/XMLRPC//GET-REQ/cloudlinux-x86_64-server-8/repodata/repomd.xml).
2023-12-28T15:18:25-0500 DEBUG error: Status code: 404 for https://cl-mirror.domain.tld/XMLRPC//GET-REQ/cloudlinux-x86_64-server-8/repodata/repomd.xml (IP: 62.221.251.201) (https://cl-mirror.domain.tld/XMLRPC//GET-REQ/cloudlinux-x86_64-server-8/repodata/repomd.xml).
2023-12-28T15:18:25-0500 DEBUG error: Status code: 404 for https://cl-mirror.domain.tld/XMLRPC//GET-REQ/cloudlinux-x86_64-server-8/repodata/repomd.xml (IP: 62.221.251.201) (https://cl-mirror.domain.tld/XMLRPC//GET-REQ/cloudlinux-x86_64-server-8/repodata/repomd.xml).
2023-12-28T15:18:25-0500 WARNING Errors during downloading metadata for repository 'cloudlinux-x86_64-server-8':
- Status code: 404 for https://cl-mirror.domain.tld/XMLRPC//GET-REQ/cloudlinux-x86_64-server-8/repodata/repomd.xml (IP: 62.221.251.201)
2023-12-28T15:18:25-0500 DDEBUG Cleaning up.
2023-12-28T15:18:25-0500 DDEBUG Plugins were unloaded.
2023-12-28T15:18:25-0500 SUBDEBUG
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/dnf/repo.py", line 573, in load
ret = self._repo.load()
File "/usr/lib64/python3.6/site-packages/libdnf/repo.py", line 397, in load
return _repo.Repo_load(self)
libdnf._error.Error: Failed to download metadata for repo 'cloudlinux-x86_64-server-8': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
Environment
- CloudLinux
Solution
- Check the mirror being used:
# yum check-update
[...]
* cloudlinux-x86_64-server-8: cl-mirror.domain.tldIn the example above, cl-mirror.domain.tld is used
-
Disable affected mirror server it in the /etc/yum/pluginconf.d/fastestmirror.conf
# echo "exclude=cl-mirror.domain.tld" >> /etc/yum/pluginconf.d/fastestmirror.conf
OR
Use our main server instead of public mirrors:
# echo https://xmlrpc.cln.cloudlinux.com/XMLRPC >> /etc/mirrorlist # echo mirrorURL=file:///etc/mirrorlist >> /etc/sysconfig/rhn/up2date # yum clean all
# yum makecache
Also, you can test a certain mirror by adding it instead of https://xmlrpc.cln.cloudlinux.com/XMLRPC
to /etc/mirrorlist
,
here is the list of our mirrors: https://repo.cloudlinux.com/cloudlinux/mirrorlists/cln-mirrors.
Cause
Issues with public mirrors
Useful links
https://cloudlinux.zendesk.com/hc/en-us/articles/10882322704796-Slow-yum-repository
Comments
0 comments
Please sign in to leave a comment.