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.

cPanel update hanging

Discussion in 'General Discussion' started by mvandemar, Apr 18, 2017.

Tags:
  1. mvandemar

    mvandemar Well-Known Member

    Joined:
    Jun 17, 2006
    Messages:
    45
    Likes Received:
    1
    Trophy Points:
    158
    A client of mine's server ran out of space a couple of months ago. They cleared out the offending backups, but since then the backups are failing to complete. They get this far, and then hang until the process is killed:

    Code:
    [2017-02-07 21:12:12 -0600]   Successfully verified signature for cpanel (key types: release).
    [2017-02-07 21:12:12 -0600]   Target version set to '11.62.0.8'
    [2017-02-07 21:12:12 -0600]   Target version set to '11.60.0.36'
    [2017-02-07 21:12:12 -0600]   Need to upgrade to the LTS version before switching to another major version
    [2017-02-07 21:12:12 -0600]   Switching to 11.60.0.36 to determine if we can reach that version without failure.
    => Log closed Wed Feb  8 21:12:01 2017
    ----------------------------------------------------------------------------------------------------
    => Log opened from cPanel Update (upcp) - Slave (8842) at Wed Feb  8 21:12:01 2017
    [2017-02-08 21:12:01 -0600] E User hit ^C or killed the process ( pid file '/var/run/upcp.pid' removed ).
    => Log closed Wed Feb  8 21:12:01 2017
    
    It's been the same thing in all of the log files for the past 2 months. I just killed the process that was running tonight, and ran:

    Code:
    /scripts/upcp --force
    but no difference, still hanging at the exact same spot. Any idea why, or what I can do to further debug the issue? Thanks.

    -Michael
     
  2. mvandemar

    mvandemar Well-Known Member

    Joined:
    Jun 17, 2006
    Messages:
    45
    Likes Received:
    1
    Trophy Points:
    158
    Further testing: I noticed that /usr/local/cpanel/scripts/maintenance was also something that failed when the disk was full, so I just tried running that manually to see if it might fix some issues. That is also hanging when it gets to the point of "updatesigningkey":

    Code:
    [~]# /usr/local/cpanel/scripts/maintenance
    [2017-04-18 00:45:09 -0500]   Purging cpupdate.conf of invalid entries
    [2017-04-18 00:45:09 -0500]   Purging upcp logs older than 45 days.
    [2017-04-18 00:45:11 -0500]   Processing: Assuring needed symlinks in 3rdparty/bin are in place.
    [2017-04-18 00:45:11 -0500]    - Processing command `/usr/local/cpanel/scripts/link_3rdparty_binaries`
    [2017-04-18 00:45:11 -0500]   Processing: Setting clock
    [2017-04-18 00:45:11 -0500]    - Processing command `/usr/local/cpanel/scripts/rdate`
    [2017-04-18 00:45:11 -0500]      [9682] Virtual environment detected - rdate skipped
    [2017-04-18 00:45:11 -0500]   Processing: Updating cPanel signing keys.
    [2017-04-18 00:45:11 -0500]    - Processing command `/usr/local/cpanel/scripts/updatesigningkey`
    
    Note that this did cause all of the log files in /var/cpanel/updatelogs to be deleted, even the ones not older than 45 days, but aside from that it just appears to be sitting there.

    Edit: I am also attempting to run "/usr/local/cpanel/scripts/check_cpanel_rpms --fix", but this as well appears to just be hanging and not doing anything.

    -Michael
     
    #2 mvandemar, Apr 18, 2017
    Last edited: Apr 18, 2017
  3. mvandemar

    mvandemar Well-Known Member

    Joined:
    Jun 17, 2006
    Messages:
    45
    Likes Received:
    1
    Trophy Points:
    158
    Update: I noticed that the last server restart was from before the crash in Feb, so I restarted the server. I was then able to run the
    /usr/local/cpanel/scripts/maintenance script, and now "upcp --force" appears to be running fine.

    -Michael
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,659
    Likes Received:
    1,427
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    I'm happy to see the issue is now addressed. It seems like there may have been some hanging processes that needed to be killed (the restart would have killed any hanging processes). Thank you for updating us with the outcome.
     
    mvandemar likes this.
Loading...

Share This Page