cPanel & WHM update failure in upcp script

frenziedfox

Well-Known Member
Mar 9, 2010
61
11
58
Hi there,

Let’s see what have this week… ;)

I’ve starting getting this error emailed to me:
Maintenance ended; however, it did not exit cleanly (256). The following events were logged: “scripts/update-packages”. Review the update logs to determine why the update failed.
In the attached log it has:
[2022-06-25 05:59:07 +0100] Processing: Running update-packages
[2022-06-25 05:59:07 +0100] - Processing command `/usr/local/cpanel/scripts/update-packages`
[2022-06-25 05:59:07 +0100] [/usr/local/cpanel/scripts/update-packages] checkyum version 22.3 (excludes: bind-chroot)
[2022-06-25 05:59:15 +0100] [/usr/local/cpanel/scripts/update-packages] Loaded plugins: fastestmirror, universal-hooks
[2022-06-25 05:59:15 +0100] [/usr/local/cpanel/scripts/update-packages] Loading mirror speeds from cached hostfile
[2022-06-25 05:59:15 +0100] [/usr/local/cpanel/scripts/update-packages] * EA4: 185.15.22.168
[2022-06-25 05:59:15 +0100] [/usr/local/cpanel/scripts/update-packages] * cpanel-addons-production-feed: 185.15.22.168
[2022-06-25 05:59:15 +0100] [/usr/local/cpanel/scripts/update-packages] * cpanel-plugins: 185.15.22.168
[2022-06-25 05:59:15 +0100] [/usr/local/cpanel/scripts/update-packages] * base: mirror.as29550.net
[2022-06-25 05:59:15 +0100] [/usr/local/cpanel/scripts/update-packages] * extras: mirrors.vinters.com
[2022-06-25 05:59:15 +0100] [/usr/local/cpanel/scripts/update-packages] * updates: mirrors.vinters.com
[2022-06-25 05:59:15 +0100] [/usr/local/cpanel/scripts/update-packages] https://download.fedoraproject.org/...94bd79237f2e676d343052a1b1-primary.sqlite.bz2: [Errno 14] HTTPS Error 404 - Not Found
[2022-06-25 05:59:15 +0100] [/usr/local/cpanel/scripts/update-packages] Trying other mirror.
[2022-06-25 05:59:15 +0100] [/usr/local/cpanel/scripts/update-packages] To address this issue please refer to the below wiki article
[2022-06-25 05:59:15 +0100] [/usr/local/cpanel/scripts/update-packages]
[2022-06-25 05:59:15 +0100] [/usr/local/cpanel/scripts/update-packages] yum-errors - CentOS Wiki
[2022-06-25 05:59:15 +0100] [/usr/local/cpanel/scripts/update-packages]
[2022-06-25 05:59:15 +0100] [/usr/local/cpanel/scripts/update-packages] If above article doesn't help to resolve this issue please use My View - CentOS Bug Tracker.
[2022-06-25 05:59:15 +0100] [/usr/local/cpanel/scripts/update-packages]
[2022-06-25 05:59:15 +0100] [/usr/local/cpanel/scripts/update-packages] https://download.fedoraproject.org/...94bd79237f2e676d343052a1b1-primary.sqlite.bz2: [Errno 14] HTTPS Error 404 - Not Found
[2022-06-25 05:59:15 +0100] [/usr/local/cpanel/scripts/update-packages] Trying other mirror.
[2022-06-25 05:59:15 +0100] [/usr/local/cpanel/scripts/update-packages] https://download.fedoraproject.org/...94bd79237f2e676d343052a1b1-primary.sqlite.bz2: [Errno 14] HTTPS Error 404 - Not Found
[2022-06-25 05:59:15 +0100] [/usr/local/cpanel/scripts/update-packages] Trying other mirror.
[2022-06-25 05:59:15 +0100] [/usr/local/cpanel/scripts/update-packages]
[2022-06-25 05:59:15 +0100] [/usr/local/cpanel/scripts/update-packages]
[2022-06-25 05:59:15 +0100] [/usr/local/cpanel/scripts/update-packages] One of the configured repositories failed (EPEL YUM repo),
[2022-06-25 05:59:15 +0100] [/usr/local/cpanel/scripts/update-packages] and yum doesn't have enough cached data to continue. At this point the only
[2022-06-25 05:59:15 +0100] [/usr/local/cpanel/scripts/update-packages] safe thing yum can do is fail. There are a few ways to work "fix" this:
[2022-06-25 05:59:15 +0100] [/usr/local/cpanel/scripts/update-packages]
[2022-06-25 05:59:15 +0100] [/usr/local/cpanel/scripts/update-packages] 1. Contact the upstream for the repository and get them to fix the problem.
[2022-06-25 05:59:15 +0100] [/usr/local/cpanel/scripts/update-packages]
[2022-06-25 05:59:15 +0100] [/usr/local/cpanel/scripts/update-packages] 2. Reconfigure the baseurl/etc. for the repository, to point to a working
[2022-06-25 05:59:15 +0100] [/usr/local/cpanel/scripts/update-packages] upstream. This is most often useful if you are using a newer
[2022-06-25 05:59:15 +0100] [/usr/local/cpanel/scripts/update-packages] distribution release than is supported by the repository (and the
[2022-06-25 05:59:15 +0100] [/usr/local/cpanel/scripts/update-packages] packages for the previous distribution release still work).
[2022-06-25 05:59:15 +0100] [/usr/local/cpanel/scripts/update-packages]
[2022-06-25 05:59:15 +0100] [/usr/local/cpanel/scripts/update-packages] 3. Run the command with the repository temporarily disabled
[2022-06-25 05:59:15 +0100] [/usr/local/cpanel/scripts/update-packages] yum --disablerepo=epel ...
[2022-06-25 05:59:15 +0100] [/usr/local/cpanel/scripts/update-packages]
[2022-06-25 05:59:15 +0100] [/usr/local/cpanel/scripts/update-packages] 4. Disable the repository permanently, so yum won't use it by default. Yum
[2022-06-25 05:59:15 +0100] [/usr/local/cpanel/scripts/update-packages] will then just ignore the repository until you permanently enable it
[2022-06-25 05:59:15 +0100] [/usr/local/cpanel/scripts/update-packages] again or use --enablerepo for temporary usage:
[2022-06-25 05:59:15 +0100] [/usr/local/cpanel/scripts/update-packages]
[2022-06-25 05:59:15 +0100] [/usr/local/cpanel/scripts/update-packages] yum-config-manager --disable epel
[2022-06-25 05:59:15 +0100] [/usr/local/cpanel/scripts/update-packages] or
[2022-06-25 05:59:15 +0100] [/usr/local/cpanel/scripts/update-packages] subscription-manager repos --disable=epel
[2022-06-25 05:59:15 +0100] [/usr/local/cpanel/scripts/update-packages]
[2022-06-25 05:59:15 +0100] [/usr/local/cpanel/scripts/update-packages] 5. Configure the failing repository to be skipped, if it is unavailable.
[2022-06-25 05:59:15 +0100] [/usr/local/cpanel/scripts/update-packages] Note that yum will try to contact the repo. when it runs most commands,
[2022-06-25 05:59:15 +0100] [/usr/local/cpanel/scripts/update-packages] so will have to try and fail each time (and thus. yum will be be much
[2022-06-25 05:59:15 +0100] [/usr/local/cpanel/scripts/update-packages] slower). If it is a very temporary problem though, this is often a nice
[2022-06-25 05:59:15 +0100] [/usr/local/cpanel/scripts/update-packages] compromise:
[2022-06-25 05:59:15 +0100] [/usr/local/cpanel/scripts/update-packages]
[2022-06-25 05:59:15 +0100] [/usr/local/cpanel/scripts/update-packages] yum-config-manager --save --setopt=epel.skip_if_unavailable=true
[2022-06-25 05:59:15 +0100] [/usr/local/cpanel/scripts/update-packages]
[2022-06-25 05:59:15 +0100] [/usr/local/cpanel/scripts/update-packages] failure: repodata/36af8553b945d113a377de82c7a7ce8b9be66394bd79237f2e676d343052a1b1-primary.sqlite.bz2 from epel: [Errno 256] No more mirrors to try.
[2022-06-25 05:59:15 +0100] [/usr/local/cpanel/scripts/update-packages] https://download.fedoraproject.org/...94bd79237f2e676d343052a1b1-primary.sqlite.bz2: [Errno 14] HTTPS Error 404 - Not Found
[2022-06-25 05:59:15 +0100] [/usr/local/cpanel/scripts/update-packages] (XID 7bqg7t) “/usr/bin/yum” reported error code “1” when it ended:
[2022-06-25 05:59:15 +0100] E [/usr/local/cpanel/scripts/update-packages] The “/usr/local/cpanel/scripts/update-packages” command (process 32437) reported error number 1 when it ended.
[2022-06-25 05:59:15 +0100] The Administrator will be notified to review this output when this script completes
I’ve tried running ‘/usr/local/cpanel/scripts/update-packages’ from the terminal and it runs fine so I don’t know why I have this error when it runs from ‘upcp’?

Any assistance with this?

thanks,

Alex
 
Last edited:

kodeslogic

Well-Known Member
PartnerNOC
Apr 26, 2020
476
223
118
IN
cPanel Access Level
Root Administrator
Try running the following commands to see if it fixes the issue:

Code:
# yum clean all
# yum update
# /scripts/update-packages
 

frenziedfox

Well-Known Member
Mar 9, 2010
61
11
58
Thanks @kodeslogic,

Yes, I tried running from the terminal before and it worked fine, then overnight cron ran upcp and it "Error 404" again. Is it possible a mirror might be at fault?

I've run your commands and everything looks ok.

Alex
 

kodeslogic

Well-Known Member
PartnerNOC
Apr 26, 2020
476
223
118
IN
cPanel Access Level
Root Administrator
What is the output of


Code:
cat /etc/cpsources.conf
 

frenziedfox

Well-Known Member
Mar 9, 2010
61
11
58
I don't have that file, there is:
Code:
[[email protected] etc]# ls cp*
cpanel_exim_system_filter  cpanel_mail_netblocks  cpanelsync.exclude  cpbackup-exclude.conf  cpspamd.conf  cpupdate.conf
I'm on CentOS 7
 

kodeslogic

Well-Known Member
PartnerNOC
Apr 26, 2020
476
223
118
IN
cPanel Access Level
Root Administrator
Did the below command give you an error?

Code:
# /scripts/update-packages
 

frenziedfox

Well-Known Member
Mar 9, 2010
61
11
58
No errors at all...

Code:
[[email protected] ~]# /scripts/update-packages
checkyum version 22.3  (excludes: bind-chroot)
Loaded plugins: fastestmirror, 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.coreix.net
 * extras: mirrors.coreix.net
 * updates: uk.mirror.nsec.pt
No packages marked for update
 
  • Like
Reactions: cPRex

kodeslogic

Well-Known Member
PartnerNOC
Apr 26, 2020
476
223
118
IN
cPanel Access Level
Root Administrator
You should fine now
 

kodeslogic

Well-Known Member
PartnerNOC
Apr 26, 2020
476
223
118
IN
cPanel Access Level
Root Administrator
I am glad I was able to help.
 
  • Like
Reactions: cPRex