The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WHM DNS Only - munin install error

Discussion in 'General Discussion' started by zye, Feb 23, 2016.

  1. zye

    zye Well-Known Member

    Joined:
    Dec 6, 2002
    Messages:
    96
    Likes Received:
    1
    Trophy Points:
    8
    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
    
     
    #1 zye, Feb 23, 2016
    Last edited by a moderator: Mar 3, 2016
  2. zye

    zye Well-Known Member

    Joined:
    Dec 6, 2002
    Messages:
    96
    Likes Received:
    1
    Trophy Points:
    8
    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
     
    #2 zye, Feb 23, 2016
    Last edited by a moderator: Mar 3, 2016
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    653
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
  4. zye

    zye Well-Known Member

    Joined:
    Dec 6, 2002
    Messages:
    96
    Likes Received:
    1
    Trophy Points:
    8
    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
     
  5. syslint

    syslint Well-Known Member

    Joined:
    Oct 9, 2006
    Messages:
    249
    Likes Received:
    6
    Trophy Points:
    18
    Location:
    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))
    
     
    #5 syslint, Feb 24, 2016
    Last edited by a moderator: Mar 3, 2016
  6. zye

    zye Well-Known Member

    Joined:
    Dec 6, 2002
    Messages:
    96
    Likes Received:
    1
    Trophy Points:
    8
    yes no user mailman inside /etc/passwd
     
    #6 zye, Mar 3, 2016
    Last edited by a moderator: Mar 3, 2016
  7. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    653
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
  8. zye

    zye Well-Known Member

    Joined:
    Dec 6, 2002
    Messages:
    96
    Likes Received:
    1
    Trophy Points:
    8
    root@otto [~]# /etc/init.d/munin-node restart
    Restarting munin-node (via systemctl): [ OK ]

    still 404 error
     
  9. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    653
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
  10. zye

    zye Well-Known Member

    Joined:
    Dec 6, 2002
    Messages:
    96
    Likes Received:
    1
    Trophy Points:
    8
    Support Request ID is: 7548117
     
  11. zye

    zye Well-Known Member

    Joined:
    Dec 6, 2002
    Messages:
    96
    Likes Received:
    1
    Trophy Points:
    8
    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.
     
  12. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    653
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
Loading...

Share This Page