In Progress CPANEL-42060 - Error message upon installing Munin on new servers

Kent Brockman

Well-Known Member
PartnerNOC
Jan 20, 2008
1,354
80
178
Buenos Aires, Argentina
cPanel Access Level
Root Administrator
Hello guys. I found this error when trying to install Munin on 2 new servers. One running CentOS 7 and the other with Almalinux 8.7:

The log transmission for “Munin for cPanel” included a failure status (1) for the installation.
I've already tried the RPM Rebuild Database option, but the error txt remains the same.

And this is the full log copied from the status window on the Centos7 server:

The system will install the “cpanel-munin” plugin.
[2022-12-12 03:30:50 -0300]
[2022-12-12 03:30:50 -0300] Problems were detected with cPanel-provided files which are controlled by packages.
[2022-12-12 03:30:50 -0300] If you did not make these changes intentionally, you can correct them by running:
[2022-12-12 03:30:50 -0300]
[2022-12-12 03:30:50 -0300] > /usr/local/cpanel/scripts/check_cpanel_pkgs --fix
[2022-12-12 03:30:50 -0300] The following packages are missing from your system:
[2022-12-12 03:30:50 -0300] cpanel-munin-2.0.30-2.cp11104
[2022-12-12 03:30:50 -0300] cpanel-perl-532-date-manip-6.82-1.cp1198
[2022-12-12 03:30:50 -0300] cpanel-perl-532-net-server-2.009-1.cp1198
[2022-12-12 03:30:50 -0300] cpanel-perl-532-rrds-1.5.5-1.cp1198
[2022-12-12 03:30:50 -0300] cpanel-rrdtool-1.5.5-1.cp1198
[2022-12-12 03:30:50 -0300] Maximum sync children set to 16 based on 2306M available memory.
[2022-12-12 03:30:50 -0300] Downloading http://httpupdate.cpanel.net/RPM/11.104/centos/7/x86_64/sha512
[2022-12-12 03:30:50 -0300] Downloading http://httpupdate.cpanel.net/RPM/11.98/centos/7/x86_64/sha512
[2022-12-12 03:30:51 -0300] Successfully verified signature for cpanel (key types: release).
[2022-12-12 03:30:51 -0300] Successfully verified signature for cpanel (key types: release).
[2022-12-12 03:30:51 -0300] Downloading http://httpupdate.cpanel.net/RPM/11...-perl-532-date-manip-6.82-1.cp1198.noarch.rpm
[2022-12-12 03:30:51 -0300] Downloading http://httpupdate.cpanel.net/RPM/11.104/centos/7/x86_64/cpanel-munin-2.0.30-2.cp11104.x86_64.rpm
[2022-12-12 03:30:51 -0300] Downloading http://httpupdate.cpanel.net/RPM/11...panel-perl-532-rrds-1.5.5-1.cp1198.x86_64.rpm
[2022-12-12 03:30:51 -0300] Downloading http://httpupdate.cpanel.net/RPM/11...perl-532-net-server-2.009-1.cp1198.noarch.rpm
[2022-12-12 03:30:51 -0300] Downloading http://httpupdate.cpanel.net/RPM/11.98/centos/7/x86_64/cpanel-rrdtool-1.5.5-1.cp1198.x86_64.rpm
[2022-12-12 03:30:52 -0300] Disabling service monitoring.
[2022-12-12 03:30:53 -0300] Hooks system enabled.
[2022-12-12 03:30:53 -0300] Checking for and running RPM::Versions 'pre' hooks for any Packages about to be installed
[2022-12-12 03:30:53 -0300] All required 'pre' hooks have been run
[2022-12-12 03:30:53 -0300] No packages need to be uninstalled
[2022-12-12 03:30:53 -0300] Installing new rpms: cpanel-munin-2.0.30-2.cp11104.x86_64.rpm cpanel-perl-532-date-manip-6.82-1.cp1198.noarch.rpm cpanel-perl-532-net-server-2.009-1.cp1198.noarch.rpm cpanel-perl-532-rrds-1.5.5-1.cp1198.x86_64.rpm cpanel-rrdtool-1.5.5-1.cp1198.x86_64.rpm
[2022-12-12 03:30:53 -0300] error: Failed dependencies:
[2022-12-12 03:30:53 -0300] pango is needed by cpanel-rrdtool-1.5.5-1.cp1198.x86_64
[2022-12-12 03:30:53 -0300] cairo is needed by cpanel-rrdtool-1.5.5-1.cp1198.x86_64
[2022-12-12 03:30:53 -0300] pixman is needed by cpanel-rrdtool-1.5.5-1.cp1198.x86_64
[2022-12-12 03:30:53 -0300] W The “/usr/bin/rpm -Uv --replacepkgs --oldpackage cpanel-perl-532-rrds-1.5.5-1.cp1198.x86_64.rpm cpanel-perl-532-net-server-2.009-1.cp1198.noarch.rpm cpanel-rrdtool-1.5.5-1.cp1198.x86_64.rpm cpanel-perl-532-date-manip-6.82-1.cp1198.noarch.rpm cpanel-munin-2.0.30-2.cp11104.x86_64.rpm” command (process 5103) reported error number 5 when it ended. error: Failed dependencies:
[2022-12-12 03:30:53 -0300] pango is needed by cpanel-rrdtool-1.5.5-1.cp1198.x86_64
[2022-12-12 03:30:53 -0300] cairo is needed by cpanel-rrdtool-1.5.5-1.cp1198.x86_64
[2022-12-12 03:30:53 -0300] pixman is needed by cpanel-rrdtool-1.5.5-1.cp1198.x86_64
[2022-12-12 03:30:53 -0300] E The following possible errors were detected while installing RPMs:
[2022-12-12 03:30:53 -0300] E Failed dependencies
[2022-12-12 03:30:53 -0300] The Administrator will be notified to review this output when this script completes
[2022-12-12 03:30:53 -0300] Hooks system enabled.
[2022-12-12 03:30:53 -0300] Checking for and running RPM::Versions 'post' hooks for any Packages about to be installed
[2022-12-12 03:30:53 -0300] All required 'post' hooks have been run
[2022-12-12 03:30:53 -0300] Restoring service monitoring.
The “/usr/local/cpanel/scripts/check_cpanel_pkgs --fix --targets=munin” command (process 5074) reported error number 2 when it ended. at /usr/local/cpanel/Whostmgr/API/1/Plugins.pm line 150.
Any idea on how to make it work?
Thanks in advance.
Marcelo
 
Last edited by a moderator:

Kent Brockman

Well-Known Member
PartnerNOC
Jan 20, 2008
1,354
80
178
Buenos Aires, Argentina
cPanel Access Level
Root Administrator
Whoa, I made it work after thoroughly read the errors. This command helped install the missing modules:

yum install -y cairo pango
May you wish to add this to the support docs to help others with the same trouble? be my guest.
 

Kent Brockman

Well-Known Member
PartnerNOC
Jan 20, 2008
1,354
80
178
Buenos Aires, Argentina
cPanel Access Level
Root Administrator
Yes, I always use that WHM interface. But as I stated on the second post, I found those packages were missing.

I guess you guys simply need to add that verification for pango and cairo in the preflight script so you can be sure it will be correctly installed.
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
17,470
2,843
363
cPanel Access Level
Root Administrator
I did some more testing with this and confirmed that a plain AlmaLinux 8 server with cPanel, before installing Munin, that pango and cairo were installed, so I'm wondering if they were removed from your system at some point as they are provided by the OS repositories and not cPanel.
 

Kent Brockman

Well-Known Member
PartnerNOC
Jan 20, 2008
1,354
80
178
Buenos Aires, Argentina
cPanel Access Level
Root Administrator
Weird, but it could happen, I guess. The OS was Almalinux 8.7 provided on AWS EC2 as AMI image built on Nov 12 by the Almalinux Organization itself.
 

Kent Brockman

Well-Known Member
PartnerNOC
Jan 20, 2008
1,354
80
178
Buenos Aires, Argentina
cPanel Access Level
Root Administrator
Anyways, testing beforehand if cairo and pango are installed would do no harm to the installation script. I would highly recommend to take this in account to avoid breaking the install process.
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
17,470
2,843
363
cPanel Access Level
Root Administrator
I created case CPANEL-42060 with our developers to see if cairo and pango are something we can just auto-install as part of the Munin installation process if they are missing. Since those packages are provided by the OS, *I* don't see why we can't do that, but there could be other things happening behind the scenes I'm not aware of. If I hear back from them, I'll post an update!
 

Kent Brockman

Well-Known Member
PartnerNOC
Jan 20, 2008
1,354
80
178
Buenos Aires, Argentina
cPanel Access Level
Root Administrator
Almost forgot: in both cases I used the minimal version of those OS install images. In my older servers I used the full version until I found I can save a couple gigs of space by reducing the base OS to the minimum needed components.
 

HostYourNet

Registered
Nov 27, 2023
1
0
1
United Kingdom
cPanel Access Level
DataCenter Provider
I created case CPANEL-42060 with our developers to see if cairo and pango are something we can just auto-install as part of the Munin installation process if they are missing. Since those packages are provided by the OS, *I* don't see why we can't do that, but there could be other things happening behind the scenes I'm not aware of. If I hear back from them, I'll post an update!
HI cpRex,
I had the same issue.
New install Almalinux 9 (latest) minimal installer used, Munin refused to install. Fixed by manually install the prerequires of all 3 packages before it installed.
I had to roll back install due to other issue OS related when i installed
Packages are below,
pango
cairo
pixman

Regards Daniel