Issue
During yum update, or install new php version and extension via EasyApache4:
Update Error: “/usr/bin/dnf” reported error code “1” when it ended: w/ /usr/bin/dnf --assumeno shell /tmp/nEsryQOg_e This system is receiving updates from CloudLinux Network server. cloudlinux-x86_64-server-8 257 B/s | 179 B 00:00
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 Often errors like this can be resolved by running `dnf makecache`
Environment
- CloudLinux
Solution
- Try re-registering the server by following instructions from the article: How to Register CloudLinux OS with Key-based/IP-based Licenses?
- Clean yum cache:
# yum clean all
# yum makecache
If that doesn't correct the issue, make sure that port "443" is open and that the "stat-api.cloudlinux.com" server can be reached:
# curl https://stat-api.cloudlinux.com/
curl: (7) Failed to connect to stat-api.cloudlinux.com port 443: Connection refused
After opening the port (expected behavior):
# curl https://stat-api.cloudlinux.com/ && echo
404: Not Found
Comments
0 comments
Please sign in to leave a comment.