System update error - 404 mirror not found

TechBill

Well-Known Member
Aug 7, 2011
48
4
58
Trying to update WHM but getting this error .......


Failed to check whether active services are up-to-date: “/usr/local/cpanel/bin/needs-restarting-cpanel” reported error code “1” when it ended: failure: repodata/5fd17368f3c3cf53a864c3c5f4e57f0fdd932aafbfbfb83f4835f24dfc30e133-primary.sqlite.bz2 from epel: [Errno 256] No more mirrors to try. http://mirrors.unifiedlayer.com/epe...afbfbfb83f4835f24dfc30e133-primary.sqlite.bz2: [Errno 14] HTTP Error 404 - Not Found


When I manually execute yum, it tried several different mirror to get update from and all returned a 404 not found error.

How to fix this error?


P.S. BTW your <code> button doesn't work in this forum or the markdown ```
 

ServerHealers

Well-Known Member
Sep 21, 2015
95
53
68
India
cPanel Access Level
Root Administrator
I looks like the repo mentioned in that error is now online, and should be working fine there. I'd run an UPCP manually on the server and see how things goes at this time. For instruction on how to update cPanel/packages manually, please visit this article - https://support.cpanel.net/hc/en-us/articles/360051063574-How-to-manually-start-package-updates

In regards to the <code> block in cPanel forum, this is a known issue and cPanel team is currently building a replacement setup for it as far as I know.
 
  • Like
Reactions: cPRex

cPanelWilliam

Administrator
Staff member
Mar 13, 2018
161
23
93
Houston
cPanel Access Level
Root Administrator
Hi! The repository error from your first reply appears to come from a custom unified layer repository. When I check the repository manually, it does not appear to contain the file your server is trying to download.

If you don't need this custom repository, you can try disabling it and then running a yum update to see if the 404 errors are resolved. You can find the steps for disabling a repository in the following support article:

How do I enable or disable a repository?

Regarding the first error, do you see any error output when you run the following command?

/scripts/find_outdated_services
 

TechBill

Well-Known Member
Aug 7, 2011
48
4
58
Hi! The repository error from your first reply appears to come from a custom unified layer repository. When I check the repository manually, it does not appear to contain the file your server is trying to download.

If you don't need this custom repository, you can try disabling it and then running a yum update to see if the 404 errors are resolved. You can find the steps for disabling a repository in the following support article:

How do I enable or disable a repository?

Regarding the first error, do you see any error output when you run the following command?

/scripts/find_outdated_services
Looking for outdated services …
Loaded plugins: fastestmirror, langpacks, universal-hooks
Cleaning repos: EA4 cpanel-addons-production-feed cpanel-plugins
: UL_paper_lantern_themes Webmin base epel extras forensics
: forensics-splunk hgdedi imunify360 mysql-connectors-community
: mysql-tools-community mysql57-community ul ul_auto ul_bluehost
: updates
Cleaning up list of fastest mirrors
Other repos take up 1.1 M of disk space (use --verbose for details)
The system did not find any outdated services.
 

TechBill

Well-Known Member
Aug 7, 2011
48
4
58
Looking for outdated services …
Loaded plugins: fastestmirror, langpacks, universal-hooks
Cleaning repos: EA4 cpanel-addons-production-feed cpanel-plugins
: UL_paper_lantern_themes Webmin base epel extras forensics
: forensics-splunk hgdedi imunify360 mysql-connectors-community
: mysql-tools-community mysql57-community ul ul_auto ul_bluehost
: updates
Cleaning up list of fastest mirrors
Other repos take up 1.1 M of disk space (use --verbose for details)
The system did not find any outdated services.

I re-ran the update again after this and seems to have done the update without errors .. I assume this script was to remove old repos?

Thank you
 

cPanelWilliam

Administrator
Staff member
Mar 13, 2018
161
23
93
Houston
cPanel Access Level
Root Administrator
Hi,

Based on the output you provided from /scripts/find_outdated_services , it appears the original error during the update was temporary, as there was no error in the output you provided.

I re-ran the update again after this and seems to have done the update without errors .. I assume this script was to remove old repos?
The script I provided runs automatically during cPanel updates. Its purpose is to check all services on the system to determine whether they need to be restarted.

The "Failed to check whether active services are up-to-date" error usually comes up when this script runs during updates, so I wanted to see if running it manually would provide more information about the error. Since the error didn't re-occur, it was either a temporary issue or has been fixed.