Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

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 update failure in upcp script

Discussion in 'General Discussion' started by ljj3, Mar 12, 2018.

Tags:
  1. ljj3

    ljj3 Active Member

    Joined:
    Nov 7, 2014
    Messages:
    29
    Likes Received:
    3
    Trophy Points:
    3
    cPanel Access Level:
    Reseller Owner
    One of my VPS' (68.0.30) has failed UUCP updates four nights in a row:

    Code:
    => Log opened from cPanel Update (upcp) - Slave (28810) at Mon Mar 12 02:13:52 2018
    [2018-03-12 02:13:52 -0400] E Pre Maintenance ended, however it did not exit cleanly (256). Please check the logs for an indication of what happened
    Reading the logs:

    Code:
    [2018-03-12 01:10:22 -0400]   Processing: Restarting any outdated services
    [2018-03-12 01:10:22 -0400]    - Processing command `/usr/local/cpanel/scripts/find_outdated_services --always-restart`
    [2018-03-12 02:10:22 -0400] E    [/usr/local/cpanel/scripts/find_outdated_services] The “/usr/local/cpanel/scripts/find_outdated_services” command (process 29497) ended prematurely because it received the “TERM” (15) signal. The process was aborted because it reached the timeout of 3,600 seconds.
    [2018-03-12 02:10:22 -0400]   The Administrator will be notified to review this output when this script completes
    [2018-03-12 02:10:22 -0400]    - Finished command `/usr/local/cpanel/scripts/find_outdated_services --always-restart` in 3600.107 seconds
    [2018-03-12 02:10:22 -0400]   27% complete
    [2018-03-12 02:10:22 -0400]   Processing: Running platform specific optimizations

    Note the update sat for an hour waiting for the obsolete cleanup script....

    Any ideas????
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,247
    Likes Received:
    1,759
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Can you try running this command manually to see if it finishes? EX:

    Code:
    /usr/local/cpanel/scripts/find_outdated_services
    Thank you.
     
  3. ljj3

    ljj3 Active Member

    Joined:
    Nov 7, 2014
    Messages:
    29
    Likes Received:
    3
    Trophy Points:
    3
    cPanel Access Level:
    Reseller Owner
    Got this:

    Code:
    Looking for outdated services …
    
    The system found 6 outdated services:
        site24x7monagent
        systemd-udevd
        tuned
        systemd-journald
        polkit
        irqbalance
    
    Would you like to restart these services? [y/n]:
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,247
    Likes Received:
    1,759
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    That suggests the command was able to run in a normal time frame. Can you verify if the issue persists upon updating cPanel again (e.g. /scripts/upcp --force)?

    Thank you.
     
  5. ljj3

    ljj3 Active Member

    Joined:
    Nov 7, 2014
    Messages:
    29
    Likes Received:
    3
    Trophy Points:
    3
    cPanel Access Level:
    Reseller Owner
    Does this and just sits:

    Code:
    [2018-03-12 12:59:17 -0400]    - Finished command `/usr/local/cpanel/scripts/sysup` in 3.119 seconds
    [2018-03-12 12:59:17 -0400]    - Finished in 3.119 seconds
    [2018-03-12 12:59:17 -0400]   Processing: Restarting any outdated services
    [2018-03-12 12:59:17 -0400]    - Processing command `/usr/local/cpanel/scripts/find_outdated_services --always-restart`
    
    
    Oddly when this happens, Site24x7 (monitoring agent) reports system down for 11 seconds.
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,247
    Likes Received:
    1,759
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Could you open a support ticket using the link in my signature so we can take a closer look?

    Thank you.
     
  7. ljj3

    ljj3 Active Member

    Joined:
    Nov 7, 2014
    Messages:
    29
    Likes Received:
    3
    Trophy Points:
    3
    cPanel Access Level:
    Reseller Owner
    The ticket system is telling me to go thru my host, which is fine...

    I am wondering if a quick test would be to remove Site24x7 and retry....???....

    Is it safe to ^C out of the uucp script or let it time out??
     
  8. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,247
    Likes Received:
    1,759
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    You could try this, and also try testing with the specific flag that upcp uses with the command:

    Code:
    /usr/local/cpanel/scripts/find_outdated_services --always-restart
    As far as killing the upcp process, you can, but you will also need to run "kill -9 PID" on any lingering upcp processes that exist after cancelling it.

    Thank you.
     
  9. ljj3

    ljj3 Active Member

    Joined:
    Nov 7, 2014
    Messages:
    29
    Likes Received:
    3
    Trophy Points:
    3
    cPanel Access Level:
    Reseller Owner
    I took out the Site24x7 monagent - and UUCP ran to 100% with no errors...

    So I will see if Site24x7 has any ideas. Wondering how did this service ended up flagged as an outdated service???


    Thank you for your help!!! :)
     
    #9 ljj3, Mar 12, 2018
    Last edited: Mar 12, 2018
  10. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,247
    Likes Received:
    1,759
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Here's a quote from the description of the script:

    Thank you.
     
Loading...

Share This Page