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.

Cpanel/Email broken after today's update

Discussion in 'General Discussion' started by droona, May 2, 2016.

  1. droona

    droona Registered

    Joined:
    May 2, 2016
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Monterrey, MX
    cPanel Access Level:
    Root Administrator
    This morning update has broken cpanel, exim, dovecot on one of my servers creating many issues for my customers. Basically only websites are operating right now.

    When I try to restart cpanel from SSH (Both WHM and Cpanel are down), I get the following:

    Stopping tailwatchd: [314007] [2016-05-02 11:16:21 -0500] [main] Current process '306747' stopped
    [ OK ]
    Stopping cPanel services: [ OK ]
    Stopping cPanel dav services: [ OK ]
    Stopping cPanel queue services: [ OK ]
    Stopping cPanel brute force detector services: [ OK ]
    Stopping dnsadmin services: [ OK ]
    Stopping cPanel log services:

    Stopping cPanel ssl services: Waiting for (?^:^(?:stunnel$|stunnel-[0-9\.]+local)) to shutdown ... not running.
    [ OK ]
    Stopping mailman services: Shutting down Mailman's master qrunner
    mailmanctl: no process killed
    [FAILED]
    Starting cpanel:
    Waiting for cpaneld to shutdown ... not running.
    Waiting for webmaild to shutdown ... not running.
    Waiting for cpdavd-ssl to shutdown ... not running.
    Waiting for cpanellogd to shutdown ... not running.
    Waiting for eximstats to shutdown ... not running.
    Shutting down Mailman's master qrunner
    No child with pid: 306792
    [Errno 3] No such process
    Stale pid file removed.
    mailmanctl: no process killed
    Waiting for eximstats to shutdown ... not running.
    Can't locate Unix/PID/Tiny.pm in @INC (you may need to install the Unix::PID::Tiny module) (@INC contains: /usr/local/cpanel /usr/local/cpanel/3rdparty/perl/522/lib64/
    perl5/cpanel_lib/x86_64-linux-64int /usr/local/cpanel/3rdparty/perl/522/lib64/perl5/cpanel_lib /usr/local/cpanel/3rdparty/perl/522/lib64/perl5/5.22.1/x86_64-linux-64in
    t /usr/local/cpanel/3rdparty/perl/522/lib64/perl5/5.22.1 /opt/cpanel/perl5/522/site_lib/x86_64-linux-64int /opt/cpanel/perl5/522/site_lib) at /usr/local/cpanel/cpgreyl
    istd.pl line 17.
    BEGIN failed--compilation aborted at /usr/local/cpanel/cpgreylistd.pl line 17.
    You may be running this update interactively from within WHM.
    It is necessary we restart cpsrvd, but this will kill the session displaying update progress.
    Please see the logs in /var/cpanel/updatelogs/ for further information if the update progress stops

    (XID eazh9k) The “cpsrvd” service failed to start.
    (XID jd5tdu) The “cpgreylistd” service failed to start.
    (XID rzvr77) The “cpanel_php_fpm” service is disabled.
    (XID jfnmnz) The “cphulkd” service is not configured.
    (XID 9yk2vv) The “cpdavd” service failed to start.
     
  2. droona

    droona Registered

    Joined:
    May 2, 2016
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Monterrey, MX
    cPanel Access Level:
    Root Administrator
    It's pretty obvious Unix::PID::Tiny is missing. As the method to reload/install perl modules has changed, how do I install it now?
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,762
    Likes Received:
    662
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello,

    I've seen this happen when the RPM database on a system is corrupted. Please try rebuilding the RPM database to see if it helps address this issue:

    Code:
    cd /var/lib
    mv rpm{,.old}
    mkdir -p rpm
    rpm --initdb
    cp rpm.old/Packages rpm
    rpm --rebuilddb
    Then, run the following command to see if any hanging RPM or upcp processes remain:

    Code:
    ps aux|grep rpm
    ps aux|grep upcp
    Kill off any hanging RPM or upcp processes with the "kill -9 $PID" command, and then run the following commands:

    Code:
    /scripts/check_cpanel_rpms --fix
    /scripts/upcp --force
    Assuming everything functions as expected after completing these steps, you can go back and remove the "/var/lib/rpm.old" directory.

    Let us know if this helps.

    Thanks!
     
  4. droona

    droona Registered

    Joined:
    May 2, 2016
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Monterrey, MX
    cPanel Access Level:
    Root Administrator
    Thank you CpanelMichael that was the fix. You guys might want to integrate that into upcp to rebuild the RPM database in case it gets corrupted.
     
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,762
    Likes Received:
    662
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    We've implemented a change with internal case CPANEL-5280 that will automatically correct these types of issues in a maintenance script included in /scripts/upcp. The changes stemming from this case are expected in cPanel version 58.

    Thank you.
     
Loading...

Share This Page