cPanel & WHM update failure in upcp script

tmunk

Member
Apr 4, 2004
18
2
153
Arizona
Hello, I've gotten this email message from my WHM/Cpanel server (CENTOS 7.6 v82.0.15):

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/rpmup”. Review the update logs to determine why the update failed.
Update log preview:
...
...
[2019-09-21 00:17:26 -0700] E [/usr/local/cpanel/scripts/rpmup] The “/usr/local/cpanel/scripts/rpmup” command (process 28849) reported error number 1 when it ended.
...
When I search for this error in the forums, I see a few posts that suggest I run:

Run "yum install git --disableexcludes=main --skip-broken"
Once that is done, run "/usr/local/cpanel/scripts/rpmup"

which I did, but this didn't fix the issue. Now when I run rpmup, it ends with this error:

Code:
---> Package mod_fcgid.x86_64 0:2.3.9-6.el7 will be an update
--> Processing Dependency: httpd-mmn = 20120211x8664 for package: mod_fcgid-2.3.9-6.el7.x86_64
--> Finished Dependency Resolution
Error: Package: mod_fcgid-2.3.9-6.el7.x86_64 (base)
           Requires: httpd-mmn = 20120211x8664
 You could try using --skip-broken to work around the problem
** Found 2 pre-existing rpmdb problem(s), 'yum check' output follows:
mod_fcgid-2.3.9-4.el7_4.1.x86_64 has missing requires of httpd-mmn = ('0', '20120211x8664', None)
2:postfix-perl-scripts-2.10.1-7.el7.x86_64 has missing requires of postfix = ('2', '2.10.1', '7.el7')
At this point, I'm not sure what to do next. There seems to be two broken packages and I don't know how to fix them. Any pointers?
 

HYUIfdheife

Registered
Sep 30, 2019
1
0
1
Netherlands
cPanel Access Level
Root Administrator
Hi,

I've the same problem and do need seem to find a solution.

My error message:

Code:
---> Package kernel.x86_64 0:3.10.0-957.5.1.el7 will be erased
---> Package mod_fcgid.x86_64 0:2.3.9-6.el7 will be an update
--> Processing Dependency: httpd-mmn = 20120211x8664 for package: mod_fcgid-2.3.9-6.el7.x86_64
--> Finished Dependency Resolution
Error: Package: mod_fcgid-2.3.9-6.el7.x86_64 (base)
           Requires: httpd-mmn = 20120211x8664
 You could try using --skip-broken to work around the problem
** Found 1 pre-existing rpmdb problem(s), 'yum check' output follows:
mod_fcgid-2.3.9-4.el7_4.1.x86_64 has missing requires of httpd-mmn = ('0', '20120211x8664', None)
 

tmunk

Member
Apr 4, 2004
18
2
153
Arizona
Does it persist if you run the following:
Code:
yum clean all
Yes, tried:
yum clean all
and
/scripts/upcp --force

and the same error still persists when update gets to "/usr/local/cpanel/scripts/rpmup":
Code:
Error: Package: mod_fcgid-2.3.9-6.el7.x86_64 (base)
 You could try using --skip-broken to work around the problem
** Found 2 pre-existing rpmdb problem(s), 'yum check' output follows:
mod_fcgid-2.3.9-4.el7_4.1.x86_64 has missing requires of httpd-mmn = ('0', '20120211x8664', None)
2:postfix-perl-scripts-2.10.1-7.el7.x86_64 has missing requires of postfix = ('2', '2.10.1', '7.el7')
info [rpmup] Completed yum execution â--assumeyes --config /etc/yum.conf updateâ
                                                                                (XID 4n4uyv) The system failed to execute yum with the arguments â--assumeyes --config /etc/yum.conf updateâ/usr/bin/yum --assumeyes --config /etc/yum.conf updateâ
           Requires: httpd-mmn = 20120211x8664
checkyum version 22.3  (excludes: bind-chroot ruby)
 

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,301
363
Houston
Looking further into this, the specific mod_fcgid package you have is unsupported by cPanel - you should have the ea-apache24_mod_fcgid package installed to be compatible. If you remove mod_fcgid and install the correct package are you able to update again?
 

tmunk

Member
Apr 4, 2004
18
2
153
Arizona
You should be able to just run:

Code:
yum remove mod_fcgid
then run:

Code:
yum install ea-apache24-mod_fcgid
Ok, did that, now I see further conflicts and one additional failed package:
(I ran "yum clean all" and "yum remove mod_fcgid" before this)

Code:
# yum install ea-apache24-mod_fcgid

Loaded plugins: fastestmirror, langpacks, universal-hooks
Determining fastest mirrors
 * EA4: 103.192.173.8
 * cpanel-addons-production-feed: 103.192.173.8
 * cpanel-plugins: 103.192.173.8
 * base: centos-distro.cavecreek.net
 * extras: centos-distro.cavecreek.net
 * updates: centos-distro.cavecreek.net
EA4                                                                                                                                   | 2.9 kB  00:00:00
cpanel-addons-production-feed                                                                                                         | 2.9 kB  00:00:00
cpanel-plugins                                                                                                                        | 2.9 kB  00:00:00
base                                                                                                                                  | 3.6 kB  00:00:00
extras                                                                                                                                | 2.9 kB  00:00:00
mysql-connectors-community                                                                                                            | 2.5 kB  00:00:00
mysql-tools-community                                                                                                                 | 2.5 kB  00:00:00
mysql57-community                                                                                                                     | 2.5 kB  00:00:00
updates                                                                                                                               | 2.9 kB  00:00:00
(1/10): cpanel-plugins/x86_64/primary_db                                                                                              |  30 kB  00:00:00
(2/10): base/7/x86_64/group_gz                                                                                                        | 165 kB  00:00:00
(3/10): cpanel-addons-production-feed/x86_64/primary_db                                                                               |  30 kB  00:00:00
(4/10): mysql-connectors-community/x86_64/primary_db                                                                                  |  48 kB  00:00:00
(5/10): mysql57-community/x86_64/primary_db                                                                                           | 190 kB  00:00:00
(6/10): extras/7/x86_64/primary_db                                                                                                    | 152 kB  00:00:00
(7/10): mysql-tools-community/x86_64/primary_db                                                                                       |  66 kB  00:00:00
(8/10): EA4/7/x86_64/primary_db                                                                                                       | 907 kB  00:00:01
(9/10): updates/7/x86_64/primary_db                                                                                                   | 1.9 MB  00:00:01
(10/10): base/7/x86_64/primary_db                                                                                                     | 6.0 MB  00:00:03
Resolving Dependencies
--> Running transaction check
---> Package ea-apache24-mod_fcgid.x86_64 0:2.3.9-10.10.18.cpanel will be installed
--> Processing Conflict: ea-apache24-mod_ruid2-0.9.8-18.18.3.cpanel.x86_64 conflicts ea-apache24-mod_fcgid
--> Restarting Dependency Resolution with new changes.
--> Running transaction check
---> Package ea-apache24-mod_ruid2.x86_64 0:0.9.8-18.18.3.cpanel will be updated
---> Package ea-apache24-mod_ruid2.x86_64 0:0.9.8-18.18.4.cpanel will be an update
--> Processing Conflict: ea-apache24-mod_ruid2-0.9.8-18.18.4.cpanel.x86_64 conflicts ea-apache24-mod_fcgid
--> Processing Conflict: ea-apache24-mod_fcgid-2.3.9-10.10.18.cpanel.x86_64 conflicts ea-apache24-mod_ruid2
--> Finished Dependency Resolution
Error: ea-apache24-mod_ruid2 conflicts with ea-apache24-mod_fcgid-2.3.9-10.10.18.cpanel.x86_64
Error: ea-apache24-mod_fcgid conflicts with ea-apache24-mod_ruid2-0.9.8-18.18.4.cpanel.x86_64
 You could try using --skip-broken to work around the problem
** Found 1 pre-existing rpmdb problem(s), 'yum check' output follows:
2:postfix-perl-scripts-2.10.1-7.el7.x86_64 has missing requires of postfix = ('2', '2.10.1', '7.el7')
it appears to me that the new fcgid and ruid2 are conflicting and that postfix is still missing a requirement.
 

tmunk

Member
Apr 4, 2004
18
2
153
Arizona
allrighty, well, it's past midnight and the Cpanel/WHM update went off ok without sending me a message about rpmup failing, so I think maybe it's fixed. I'll check again in the morning and verify, but I've checked all the sites on the server and they're still running. :)
 
  • Like
Reactions: cPanelLauren

tmunk

Member
Apr 4, 2004
18
2
153
Arizona
The biggest part there is that ea-apache24-mod_ruid2 and ea-apache24-mod_fcgi conflict - you won't be able to have them installed at the same time.
what is "ea-apache24-mod_ruid2" for, exactly? I have a couple of sites running under PHP-CGI, so I think I need "ea-apache24-mod_fcgi" (although they are running ok now, so maybe I don't??). I'm not at all sure what I should be installing/uninstalling to keep the server running with the modules that cpanel needs - normally cpanel itself has been taking care of this automatically, and I'm not at all sure why it stopped. ):
 

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,301
363
Houston

tmunk

Member
Apr 4, 2004
18
2
153
Arizona
mod_fcgid is different than the cgi php handler. Information on ea-apache24-mod_fcgid can be found here: Apache Module: FCGId - EasyApache 4 - cPanel Documentation and on the ea-apache24-mod_cgi handler here: PHP Handlers - EasyApache 4 - cPanel Documentation
huh, ok - if I'm understanding this documentation right, then I'm probably using mod_fcgid if most of my sites are currently using PHP-FPM. If I can't install it, then I should be switching the PHP-FPM setting in MultiPHP Manager for those sites to "off" before I reboot the server or they will stop working - is that correct?

This documentation is apparently suggesting that I shouldn't be using PHP-FPM at all, since I don't grok how to fine-tune it anyway.
 
Last edited:

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,301
363
Houston
Hi @tmunk

huh, ok - if I'm understanding this documentation right, then I'm probably using mod_fcgid if most of my sites are currently using PHP-FPM.
Can you clarify what you mean by this? The documentation on FCGId notes the following:
EasyApache 4 supports FCGId on system without a PHP-FPM implementation.
I think there might be some confusion in the mod_proxy_fcgi module and mod_fcgid which are different.


his documentation is apparently suggesting that I shouldn't be using PHP-FPM at all, since I don't grok how to fine-tune it anyway.
Can you clarify where you're seeing this in the documentation I sent to you? I only see that it's recommended you be an advanced system administrator for use with the FCGI daemon (mod_fcgid)

  • We recommend the mod_fcgid Apache module only for advanced system administrators who understand how to modify the performance of the mod_fcgid Apache module.
 

tmunk

Member
Apr 4, 2004
18
2
153
Arizona
Well, I'm not sure I understand why, but the server seems to run fine without mod_fcgid installed, and the error messages have stopped. I guess the answer was just to uninstall the incompatible package and not install the compatible one, so in the end the proper answer was:
run "yum remove mod_fcgid"

Thanks! :)
 
  • Like
Reactions: cPanelLauren