WHM DNS Only - munin install error

zye

Well-Known Member
Dec 6, 2002
122
4
168
i am not able to install munin on a vps whm dns only server

i get an 404 error when trying to visit munin link

can you please help as i want to setup munin dns stats - to see whats going on...

heres the install log


Code:
2016-02-23 16:11:12 +0100]  
[2016-02-23 16:11:12 +0100]   Problems were detected with cPanel-provided files which are RPM controlled.
[2016-02-23 16:11:12 +0100]   If you did not make these changes intentionally, you can correct them by running:
[2016-02-23 16:11:12 +0100]  
[2016-02-23 16:11:12 +0100]   > /usr/local/cpanel/scripts/check_cpanel_rpms --fix
[2016-02-23 16:11:12 +0100]   The following RPMs are missing from your system:
[2016-02-23 16:11:12 +0100]   cpanel-perl-514-Cache-Cache-1.06-1.cp1146
[2016-02-23 16:11:12 +0100]   cpanel-perl-514-munin-1.4.7-2.cp1150
[2016-02-23 16:11:12 +0100]   Removing 0 broken rpms:
[2016-02-23 16:11:12 +0100]   rpm: no packages given for erase
[2016-02-23 16:11:13 +0100]   Downloading http://httpupdate.cpanel.net/RPM/11.46/centos/7/x86_64/rpm.sha512
[2016-02-23 16:11:14 +0100]   Successfully verified signature for cpanel (key types: release).
[2016-02-23 16:11:14 +0100]   Downloading http://httpupdate.cpanel.net/RPM/11.50/centos/7/x86_64/rpm.sha512
[2016-02-23 16:11:14 +0100]   Successfully verified signature for cpanel (key types: release).
[2016-02-23 16:11:14 +0100]   Downloading http://httpupdate.cpanel.net/RPM/11.46/centos/7/x86_64/cpanel-perl-514-Cache-Cache-1.06-1.cp1146.x86_64.rpm
[2016-02-23 16:11:14 +0100]   Downloading http://httpupdate.cpanel.net/RPM/11.50/centos/7/x86_64/cpanel-perl-514-munin-1.4.7-2.cp1150.x86_64.rpm
[2016-02-23 16:11:14 +0100]   Disabling service monitoring.
[2016-02-23 16:11:16 +0100]   Hooks system enabled.
[2016-02-23 16:11:16 +0100]   Checking for and running RPM::Versions 'pre' hooks for any RPMs about to be installed
[2016-02-23 16:11:16 +0100]   All required 'pre' hooks have been run
[2016-02-23 16:11:16 +0100]   No RPMS need to be uninstalled
[2016-02-23 16:11:16 +0100]   Installing new rpms: cpanel-perl-514-Cache-Cache-1.06-1.cp1146.x86_64.rpm cpanel-perl-514-munin-1.4.7-2.cp1150.x86_64.rpm
[2016-02-23 16:11:16 +0100]   Preparing packages...
[2016-02-23 16:11:18 +0100]   cpanel-perl-514-Cache-Cache-1.06-1.cp1146.x86_64
[2016-02-23 16:11:18 +0100]   - checking munin user and group
[2016-02-23 16:11:18 +0100]   No filesystems with quota detected.
[2016-02-23 16:11:18 +0100]   User 'munin' already exists. ( permissions, owner and quota reset )
[2016-02-23 16:11:18 +0100]   groupadd: group 'munin' already exists
[2016-02-23 16:11:18 +0100]   useradd: user 'munin' already exists
[2016-02-23 16:11:18 +0100]   cpanel-perl-514-munin-1.4.7-2.cp1150.x86_64
[2016-02-23 16:11:20 +0100]   InnoDB access granted ok.
[2016-02-23 16:11:20 +0100]   enable was successful
[2016-02-23 16:11:20 +0100]   [2016-02-23 16:11:20 +0100] die [build_munin_conf] setuids failed: Could not resolve UID or GID (mailman mailman) at /usr/local/cpanel/Cpanel/AccessIds/SetUids.pm line 35.
[2016-02-23 16:11:20 +0100]       Cpanel::AccessIds::SetUids::setuids("mailman", "mailman") called at /usr/local/cpanel/bin/build_munin_conf line 42
[2016-02-23 16:11:20 +0100]   exit level [die] [pid=10183] (setuids failed: Could not resolve UID or GID (mailman mailman))
[2016-02-23 16:11:23 +0100]   Restarting munin-node (via systemctl):  [  OK  ]
[2016-02-23 16:11:23 +0100]   Restarting apache (gracefully)....
[2016-02-23 16:11:24 +0100]   This account is currently not available.
[2016-02-23 16:11:24 +0100]   Prelinking is disabled.
[2016-02-23 16:11:24 +0100]   Hooks system enabled.
[2016-02-23 16:11:24 +0100]   Checking for and running RPM::Versions 'post' hooks for any RPMs about to be installed
[2016-02-23 16:11:24 +0100]   All required 'post' hooks have been run
[2016-02-23 16:11:24 +0100]   Restoring service monitoring.

Done
 
Last edited by a moderator:

zye

Well-Known Member
Dec 6, 2002
122
4
168
Code:
[2016-02-23 16:26:39 +0100] warn [mainipcheck] [URL]https://myip.cpanel.net/v1.0/[/URL] detects system IP as XXX.XX.229.207 and system local IP detected as XXX.XX.1.100. Please verify your network configuration. at /usr/local/cpanel/scripts/mainipcheck line 65.
from /usr/local/cpanel/logs/error_log
 
Last edited by a moderator:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,908
2,216
463
Hello :)

Could you verify if you made any other attempts to install Munin in the past? Please post the output from:

Code:
rpm -qa|grep munin
Also, please verify which method you are now using to install Munin.

Thank you.
 

zye

Well-Known Member
Dec 6, 2002
122
4
168
i installed whn dns only on a centos 7.2 vps - right after setting up dns cluster i tried to install munin but in failed

CENTOS 7.2 x86_64 standard
WHM 11.52.3 (build 1)


rpm -qa|grep munin
cpanel-perl-514-munin-1.4.7-2.cp1150.x86_64
 

syslint

Well-Known Member
Verifed Vendor
Oct 9, 2006
268
7
168
India
cPanel Access Level
Root Administrator
Twitter
You are running cpanel dns only right ? The error logs show no mailman user available in your server. Can you confirm it from /etc/password

Code:
=====================
[2016-02-23 16:11:20 +0100] [2016-02-23 16:11:20 +0100] die [build_munin_conf] setuids failed: Could not resolve UID or GID (mailman mailman) at /usr/local/cpanel/Cpanel/AccessIds/SetUids.pm line 35.
[2016-02-23 16:11:20 +0100] Cpanel::AccessIds::SetUids::setuids("mailman", "mailman") called at /usr/local/cpanel/bin/build_munin_conf line 42
[2016-02-23 16:11:20 +0100] exit level [die] [pid=10183] (setuids failed: Could not resolve UID or GID (mailman mailman))
 
Last edited by a moderator:

zye

Well-Known Member
Dec 6, 2002
122
4
168
You are running cpanel dns only right ? The error logs show no mailman user available in your server. Can you confirm it from /etc/password
Code:
=====================
[2016-02-23 16:11:20 +0100] [2016-02-23 16:11:20 +0100] die [build_munin_conf] setuids failed: Could not resolve UID or GID (mailman mailman) at /usr/local/cpanel/Cpanel/AccessIds/SetUids.pm line 35.
[2016-02-23 16:11:20 +0100] Cpanel::AccessIds::SetUids::setuids("mailman", "mailman") called at /usr/local/cpanel/bin/build_munin_conf line 42
[2016-02-23 16:11:20 +0100] exit level [die] [pid=10183] (setuids failed: Could not resolve UID or GID (mailman mailman))
yes no user mailman inside /etc/passwd
 
Last edited by a moderator:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,908
2,216
463
i get an 404 error when trying to visit munin link
Hello :)

Please let us know the output from the following command:

Code:
/etc/init.d/munin-node restart
Is the page still displaying a 404 page? Typically, it's simply a matter of waiting for the initial munin cron job to run.

Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,908
2,216
463
Feel free to open a support ticket using the link in my signature so we can take a closer look. You can post the ticket number here so we can update this thread with the outcome.

Thank you.
 

zye

Well-Known Member
Dec 6, 2002
122
4
168
issue solved:

Hello,
I have isolated the reason for this issue. The munin service configured for centos 7 does not start if it is a dns only server. This is aused by this line in the service file, /etc/systemd/system/munin-node.service:
ConditionPathExists=!/var/cpanel/dnsonly
This causes munin-node not to start, which is required by the munin service for basically all operations. A workaround is removing this line from the service file, allows it to work again.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,908
2,216
463
Hello,

CPANEL-6171 is open to address an issue where munin-node cannot start on cPanel DNS-Only servers using CentOS 7. I'll update this thread with more information once a resolution is complete, but in the meantime, the temporary workaround is to remove 'ConditionPathExists=!/var/cpanel/dnsonly' from /etc/systemd/system/munin-node.service, then restart munin-node via 'systemctl start munin-node'.

Thank you.