SOLVED The cPanel & WHM update process failed for the following reason

ouki

Member
Feb 23, 2006
13
2
153
Hello,
Installed WHM version 78.0.24.
During the last couple of months I receive the following message:
Code:
=======================
The cPanel & WHM update process failed for the following reason:
  

Maintenance ended; however, it did not exit cleanly (256). The following events were logged: “scripts/find_outdated_services”. Review the update logs to determine why the update failed.

Update log preview:
...
...
[2019-05-30 03:01:04 +0300] E [/usr/local/cpanel/scripts/find_outdated_services] The “/usr/local/cpanel/scripts/find_outdated_services --auto” command (process 4507) reported error number 255 when it ended.
...
[2019-05-30 03:01:44 +0300] - Finished command `/usr/local/cpanel/scripts/migrate_local_ini_to_php_ini --run --verbose` in 0.128 seconds
[2019-05-30 03:01:44 +0300] Processing: Ensuring an "Active" MySQL profile is set
[2019-05-30 03:01:44 +0300] - Finished in 0.059 seconds
[2019-05-30 03:01:44 +0300] - Processing command `/usr/local/cpanel/scripts/check_mysql`
[2019-05-30 03:01:44 +0300] [/usr/local/cpanel/scripts/check_mysql] “check_mysql” will complete in the background (process ID 4869).
[2019-05-30 03:01:44 +0300] - Finished command `/usr/local/cpanel/scripts/check_mysql` in 0.060 seconds
[2019-05-30 03:01:44 +0300] Processing: Checking CloudLinux installation
[2019-05-30 03:01:44 +0300] - Processing command `/usr/local/cpanel/bin/cloudlinux_update`
[2019-05-30 03:01:44 +0300] - Finished command `/usr/local/cpanel/bin/cloudlinux_update` in 0.040 seconds
[2019-05-30 03:01:44 +0300] Processing: Updating plugins data cache
[2019-05-30 03:01:44 +0300] - Processing command `/usr/local/cpanel/bin/refresh_plugin_cache`
[2019-05-30 03:01:44 +0300] - Finished command `/usr/local/cpanel/bin/refresh_plugin_cache` in 0.054 seconds
[2019-05-30 03:01:44 +0300] Processing: Ensure cpanel-plugins yum repo exists
[2019-05-30 03:01:44 +0300] - Finished in 0.043 seconds
[2019-05-30 03:01:44 +0300] Processing: Checking End Of Life for current version.
[2019-05-30 03:01:44 +0300] - Finished in 0.087 seconds
[2019-05-30 03:01:44 +0300] Processing:
[2019-05-30 03:01:44 +0300] Maintenance complete.
=> Log closed Thu May 30 03:01:44 2019
----------------------------------------------------------------------------------------------------
=> Log opened from cPanel Update (upcp) - Slave (4216) at Thu May 30 03:01:44 2019


=======================
I run the following command:
awk '$4=="E"' /var/cpanel/updatelogs/update.XXXXXX.log
(Replaced "update.XXXXXX.log" with the name of the most recent log file in the /var/cpanel/updatelogs/ directory.)
and the output is:

Code:
[2019-05-30 03:00:24 +0300] E Blocker found: Upgrade to the next LTS is blocked until Monday Jun 3, 2019 in order to distribute upgrades over a number of days. If you wish to upgrade now, you can do so now with the force option.
[2019-05-30 03:00:24 +0300] E The install encountered a fatal error: An attempt to upgrade to 11.80.0.10 was blocked. Please review blockers.
[2019-05-30 03:01:04 +0300] E    [/usr/local/cpanel/scripts/find_outdated_services] The “/usr/local/cpanel/scripts/find_outdated_services --auto” command (process 4507) reported error number 255 when it ended.
[2019-05-30 03:01:44 +0300] E Pre Maintenance ended, however it did not exit cleanly (256). The following events were logged: "scripts/find_outdated_services". Please check the logs for an indication of what happened

=======================
Then I run:
/scripts/find_outdated_services
and the output is:
Code:
Looking for outdated services …
STDERR: failure: repodata/filelists.sqlite.bz2 from dell-omsa-indep: [Errno 256] No more mirrors to try.


Cpanel::Exception::ProcessFailed/(XID qxh2mc) An unknown error in the “Cpanel::Exception::ProcessFailed” package has occurred.
 at /usr/local/cpanel/Cpanel/ProcessCheck/Outdated.pm line 248.
        Cpanel::ProcessCheck::Outdated::_handle_stderr(Cpanel::SafeRun::Object=HASH(0x2120b00)) called at /usr/local/cpanel/Cpanel/ProcessCheck/Outdated.pm line 70
        Cpanel::ProcessCheck::Outdated::eek:utdated_processes() called at /usr/local/cpanel/Cpanel/ProcessCheck/Outdated.pm line 169
        Cpanel::ProcessCheck::Outdated::_outdated_services_for_centos6() called at /usr/local/cpanel/Cpanel/ProcessCheck/Outdated.pm line 99
        Cpanel::ProcessCheck::Outdated::eek:utdated_services() called at /scripts/find_outdated_services line 71
        scripts::find_outdated_services::__ANON__() called at /usr/local/cpanel/3rdparty/perl/528/lib/perl5/cpanel_lib/Try/Tiny.pm line 93
        eval {...} called at /usr/local/cpanel/3rdparty/perl/528/lib/perl5/cpanel_lib/Try/Tiny.pm line 88
        Try::Tiny::try(CODE(0x24fb600), Try::Tiny::Catch=REF(0x1e5a9c0)) called at /scripts/find_outdated_services line 80
        scripts::find_outdated_services::run(scripts::find_outdated_services=HASH(0x1e2e078)) called at /scripts/find_outdated_services line 60

        scripts::find_outdated_services::run(scripts::find_outdated_services=HASH(0xe90088)) called at /scripts/find_outdated_services line 60

=====================
Could you please help to resolve this issue?
 
Last edited by a moderator:

kernow

Well-Known Member
Jul 23, 2004
1,020
62
178
cPanel Access Level
Root Administrator
I think you mean in the last couple of days not months? anyway the cPanel update will complete for you on Monday 3rd as indicated in the error message. This is probably the cause of the 'outdated services' entry. If you don't want to wait until Monday you can force the upgrade by going to WHM>>>cpanel>>>upgrade to latest version, and then tick the box that says 'Force a reinstall even if the system is up to date.'
Or from a terminal as root
Code:
/scripts/upcp --force
 

ouki

Member
Feb 23, 2006
13
2
153
Hello kernow,
Thank you for your answer.

The message first received on 25 February 2019.
I have this server for more than 3 years and never before received anything like this.
Update was always smooth.

The currently installed version is 78.0.24 which was released on 20 May 2019.
But version 80.0.0 was released on 09 May 2019.

Why hadn't updated to 80.x.x version and keeps on 79.x.x version?

Thank you in advance!
 

bloatedstoat

Well-Known Member
Jun 14, 2012
184
24
68
Victoria, Australia
cPanel Access Level
Root Administrator
@ouki

Have you addressed the Dell OMSA issue that is the first error reported?

You might want to update your repositories, resolve that issue and then give upcp another go.

"STDERR: failure: repodata/filelists.sqlite.bz2 from dell-omsa-indep: [Errno 256] No more mirrors to try."
 

ouki

Member
Feb 23, 2006
13
2
153
Hi bloatedstoat,
Thank you for your reply.

I've seen the error about the Dell OMSA, but I do not know how to deal with it.
You've talked about updating repositories.
How can I do it?

Thank you in advance!
 

bloatedstoat

Well-Known Member
Jun 14, 2012
184
24
68
Victoria, Australia
cPanel Access Level
Root Administrator
@ouki

As much as I'd like to offer advice on this I'm reluctant given the information you've provided is a bit thin.

Are you able to contact your data centre or the company who provisioned your server to apply this for you?

You may wish to review Dell's own documentation on this topic at Dell EMC Linux Repository

There is a section on adding/editing the repositories.

My feeling is that once you've resolved this issue upcp will advance beyond where you are right now.

Sorry I am unable to resolve this for you.
 

PenguinInternet

Well-Known Member
PartnerNOC
Jun 20, 2007
194
26
78
Cardiff, UK
cPanel Access Level
DataCenter Provider
Twitter
If you run the following it will update the dell repo key for you. Then just run a yum update afterwards:

Code:
curl -s https://linux.dell.com/repo/hardware/dsu/bootstrap.cgi | bash
 
Last edited by a moderator:

ouki

Member
Feb 23, 2006
13
2
153
@bloatedstoat, @PenguinInternet
Thank you both!

Last night, without doing something special, WHM updated to ver. 80.0.11.
"cPanel & WHM update failure in upcp script" messages kept comming. Two new during the update process.

With the invaluable help you provided, I will try to fix the cause of these error messages.

I will keep you updated.

Thank you!
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
"cPanel & WHM update failure in upcp script" messages kept comming. Two new during the update process.
Hello @ouki,

Can you open a support ticket so we can take a closer look at your system? You can post the ticket number here and we'll link this thread to it.

Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
Hello,

To update, here's a summary of the response sent by the Technical Analyst that handled the ticket:

The /usr/local/cpanel/scripts/find_outdated_services script was failing due to outdated packages in the server.

The server has "ell-omsa-indep" and "dell-omsa-specific" configured as YUM repositories with HTTPS connections which were failing. I have temporarily disabled these repositories and upgraded the server:

# yum upgrade --disablerepo=dell-omsa-indep --disablerepo=dell-omsa-specific

The script "find_outdated_services" is now working correctly.
Thank you.
 
  • Like
Reactions: ouki

ouki

Member
Feb 23, 2006
13
2
153
Hello,
I would like to thank you all for your support and answers.
Especially Roman Mcdougal from cPanel support team.

Here is what he did to fix the problem:
"
The "find_outdated_services" script was failing due to outdated packages in the server:
----
/usr/local/cpanel/scripts/find_outdated_services
----

The server has "ell-omsa-indep" and "dell-omsa-specific" configured as repositories with HTTPS connections which were failing. I have temporarirely disabled these repositories and upgraded the server:
----
yum upgrade --disablerepo=dell-omsa-indep --disablerepo=dell-omsa-specific

TRUNCATED
tzdata.noarch 0:2019a-1.el6 tzdata-java.noarch 0:2019a-1.el6 udev.x86_64 0:147-2.73.el6_8.2
unzip.x86_64 0:6.0-5.el6 upstart.x86_64 0:0.6.5-17.el6 urw-fonts.noarch 0:2.4-11.el6
usbutils.x86_64 0:003-6.el6 util-linux-ng.x86_64 0:2.17.2-12.28.el6_9.2 vim-common.x86_64 2:7.4.629-5.el6_8.1
vim-enhanced.x86_64 2:7.4.629-5.el6_8.1 vim-filesystem.x86_64 2:7.4.629-5.el6_8.1 vim-minimal.x86_64 2:7.4.629-5.el6_8.1
virt-what.x86_64 0:1.11-1.3.el6 wget.x86_64 0:1.12-10.el6 wordpress-cpaddon-php72.noarch 0:5.2.1-1.1
xorg-x11-drv-ati-firmware.noarch 0:7.6.1-4.el6 xorg-x11-proto-devel.noarch 0:7.7-14.el6 yum.noarch 0:3.2.29-81.el6.centos.0.1
yum-plugin-fastestmirror.noarch 0:1.1.30-42.el6_10 yum-plugin-security.noarch 0:1.1.30-42.el6_10 yum-plugin-universal-hooks.x86_64 0:0.1-9.9.3.cpanel
yum-utils.noarch 0:1.1.30-42.el6_10 zsh.x86_64 0:4.3.11-9.el6_10

Replaced:
wp-cli.noarch 0:1.5.1-2.2.1.cpanel
----

The script "find_outdated_services" is now working correctly:"
 
  • Like
Reactions: cPanelMichael