cPanel & WHM update failure in upcp script

monkey64

Well-Known Member
Nov 6, 2011
122
5
68
cPanel Access Level
Root Administrator
I'm running WHM v100.0.5 on AlmaLinux v8.5.0. For the past 2 days, I have received an email indicating me of a 'cPanel & WHM update failure in upcp script'.

Running the 'find_outdated_services' command works as expected:

Code:
/usr/local/cpanel/scripts/find_outdated_services
Looking for outdated services …
The system did not find any outdated services.
Running this command however:

Code:
awk '$4=="E"' /var/cpanel/updatelogs/update.372707.1091440708.1630597035.log
Outputs the following:

Code:
[2022-01-06 23:24:27 +0000] E    [/usr/local/cpanel/scripts/find_outdated_services] STDERR: [Errno 2] No such file or directory: '/proc/372648/stat'
[2022-01-06 23:24:27 +0000] E    [/usr/local/cpanel/scripts/find_outdated_services]
[2022-01-06 23:24:27 +0000] E    [/usr/local/cpanel/scripts/find_outdated_services]
[2022-01-06 23:24:27 +0000] E    [/usr/local/cpanel/scripts/find_outdated_services] Cpanel::Exception::ProcessFailed::Error/(XID ndrhaw) “/usr/bin/needs-restarting” reported error code “1” when it ended: [Errno 2] No such file or directory: '/proc/372648/stat'
[2022-01-06 23:24:27 +0000] E    [/usr/local/cpanel/scripts/find_outdated_services]
[2022-01-06 23:24:27 +0000] E    [/usr/local/cpanel/scripts/find_outdated_services]  at /usr/local/cpanel/Cpanel/ChildErrorStringifier.pm line 161.
[2022-01-06 23:24:27 +0000] E    [/usr/local/cpanel/scripts/find_outdated_services]     Cpanel::ChildErrorStringifier::to_exception(Cpanel::SafeRun::Object=HASH(0x17ad300)) called at /usr/local/cpanel/Cpanel/ChildErrorStringifier.pm line 140
[2022-01-06 23:24:27 +0000] E    [/usr/local/cpanel/scripts/find_outdated_services]     Cpanel::ChildErrorStringifier::die_if_error(Cpanel::SafeRun::Object=HASH(0x17ad300)) called at /usr/local/cpanel/Cpanel/SafeRun/Object.pm line 680
[2022-01-06 23:24:27 +0000] E    [/usr/local/cpanel/scripts/find_outdated_services]     Cpanel::SafeRun::Object::die_if_error(Cpanel::SafeRun::Object=HASH(0x17ad300)) called at /usr/local/cpanel/Cpanel/ProcessCheck/Outdated.pm line 274
[2022-01-06 23:24:27 +0000] E    [/usr/local/cpanel/scripts/find_outdated_services]     Cpanel::ProcessCheck::Outdated::_outdated_services_default() called at /usr/local/cpanel/Cpanel/ProcessCheck/Outdated.pm line 68
[2022-01-06 23:24:27 +0000] E    [/usr/local/cpanel/scripts/find_outdated_services]     Cpanel::ProcessCheck::Outdated::outdated_services() called at /usr/local/cpanel/scripts/find_outdated_services line 83
[2022-01-06 23:24:27 +0000] E    [/usr/local/cpanel/scripts/find_outdated_services]     scripts::find_outdated_services::__ANON__() called at /usr/local/cpanel/3rdparty/perl/532/lib/perl5/cpanel_lib/Try/Tiny.pm line 96
[2022-01-06 23:24:27 +0000] E    [/usr/local/cpanel/scripts/find_outdated_services]     eval {...} called at /usr/local/cpanel/3rdparty/perl/532/lib/perl5/cpanel_lib/Try/Tiny.pm line 91
[2022-01-06 23:24:27 +0000] E    [/usr/local/cpanel/scripts/find_outdated_services]     Try::Tiny::try(CODE(0x1bc6b10), Try::Tiny::Catch=REF(0x17d5230)) called at /usr/local/cpanel/scripts/find_outdated_services line 92
[2022-01-06 23:24:27 +0000] E    [/usr/local/cpanel/scripts/find_outdated_services]     scripts::find_outdated_services::run(scripts::find_outdated_services=HASH(0x179f660)) called at /usr/local/cpanel/scripts/find_outdated_services line 72
[2022-01-06 23:24:27 +0000] E    [/usr/local/cpanel/scripts/find_outdated_services] The “/usr/local/cpanel/scripts/find_outdated_services --auto” command (process 372835) reported error number 255 when it ended.
[2022-01-06 23:24:43 +0000] 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
Does anyone have any ideas?
 
Last edited:

splaquet

Well-Known Member
Sep 24, 2008
63
4
58
W. Hartford, CT
cPanel Access Level
Root Administrator
Twitter
I’m pretty much in an identical scenario.

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:

...
...
[2022-01-09 00:33:51 -0500] E [/usr/local/cpanel/scripts/find_outdated_services] STDOUT: This system is receiving updates from CloudLinux Network server.
[2022-01-09 00:33:51 -0500] E [/usr/local/cpanel/scripts/find_outdated_services]
[2022-01-09 00:33:51 -0500] E [/usr/local/cpanel/scripts/find_outdated_services]
[2022-01-09 00:33:51 -0500] E [/usr/local/cpanel/scripts/find_outdated_services] STDERR: [Errno 2] No such file or directory: '/proc/2607906/stat'
...
[2022-01-09 00:35:27 -0500] - Processing command `/usr/local/cpanel/bin/refresh_plugin_cache`
[2022-01-09 00:35:27 -0500] - Finished command `/usr/local/cpanel/bin/refresh_plugin_cache` in 0.144 seconds
[2022-01-09 00:35:27 -0500] Processing: Ensuring SSL certificate information for CCS is up to date.
[2022-01-09 00:35:27 -0500] - Processing command `/usr/local/cpanel/scripts/ccs-check --run --ssl`
[2022-01-09 00:35:27 -0500] [/usr/local/cpanel/scripts/ccs-check] SSL information updated.
[2022-01-09 00:35:27 -0500] - Finished command `/usr/local/cpanel/scripts/ccs-check --run --ssl` in 0.184 seconds
[2022-01-09 00:35:27 -0500] Processing: Ensure cpanel-plugins yum repo exists
[2022-01-09 00:35:28 -0500] - Finished in 0.204 seconds
[2022-01-09 00:35:28 -0500] Processing: Checking Addon Licenses
[2022-01-09 00:35:28 -0500] - Finished in 0.026 seconds
[2022-01-09 00:35:28 -0500] Processing: Updating Public Suffix List
[2022-01-09 00:35:28 -0500] Processing: Checking End Of Life for current version.
[2022-01-09 00:35:28 -0500] - Finished in 0.206 seconds
[2022-01-09 00:35:28 -0500] Processing:
[2022-01-09 00:35:28 -0500] Maintenance complete.
=> Log closed Sun Jan 9 00:35:28 2022
----------------------------------------------------------------------------------------------------
=> Log opened from cPanel Update (upcp) - Slave (2605003) at Sun Jan 9 00:35:28 2022
 

eLIANT

Active Member
Aug 14, 2006
26
1
153
mine's a little simpler, I think.
Running 100.0.5
Cron output email Subject contains: (/usr/local/cpanel/scripts/fix-cpanel-perl; /etc/upcp_control)
and email body is:
updates
Updating target version in cpupdate.conf to 11.86
cannot find /var/cpanel/sysinfo.config
 

andrew.n

Well-Known Member
Jun 9, 2020
877
329
63
EU
cPanel Access Level
Root Administrator
Interesting that file doesn't exist on a few of my systems either. If you execute these commands manually do you get the same?

/usr/local/cpanel/scripts/fix-cpanel-perl

if yes then can you try to create that file and see how it works?

touch /var/cpanel/sysinfo.config
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
10,416
1,633
363
cPanel Access Level
Root Administrator
@eLIANT - if you're already on version 100, it seems odd the updater would mention version 86. I'm wondering if there is an issue with the /etc/cpupdate.conf file on your machine. I pulled this from a system running the Current tier:

Code:
# cat /etc/cpupdate.conf
CPANEL=current
RPMUP=daily
SARULESUP=daily
STAGING_DIR=/usr/local/cpanel
UPDATES=daily
so can you see if your file is similar to that?
 

eLIANT

Active Member
Aug 14, 2006
26
1
153
was CPANEL=11.86
I changed it to CURRENT

Waiting to see if updates work correctly.
 

eLIANT

Active Member
Aug 14, 2006
26
1
153
Hmmm.... Got another email: says the same thing. CPANEL=11.86

visited /etc/cpupdate.conf and sure enough, it was set for 11.86.

Either I failed miserably, or ... what? There is no "or". I failed. I've re-enter "CURRENT" and saved the file, double-checked. Now I wait. Again.