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!

/scripts/postupcp is in loop

Discussion in 'General Discussion' started by shojib, May 22, 2018.

Tags:
  1. shojib

    shojib Active Member

    Joined:
    Mar 31, 2014
    Messages:
    28
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    Sylhet, Bangladesh
    cPanel Access Level:
    Root Administrator
    Hello,
    I recently installed a new instance of cPanel v70.0.43 and noticed on the process manager that there are a lot of processes for /bin/bash /scripts/postupcp and the list keeps on growing until I kill the processes.
    I was able to recreate this problem by running /scripts/upcp --sync

    Here's a screenshot of how the process manager looks like when the problem is active:
    s7.postimg.cc/ah3t4ktgr/screenshot_31.png

    At first, I thought it was a problem with some missing files or package, so I ran /scripts/upcp --force and it didn't fix the problem.
    What can I do to fix this?
    Let me know.
    Shahriar

    It says "You must reboot the server to apply software updates." even though I have kernelcare installed and it has the latest kernel.
    Update:
    /usr/bin/needs-restarting returns following output, I will do a server reboot tonight to see if this fixes the problem.
    1 : /usr/lib/systemd/systemd --switched-root --system --deserialize 21
     
    #1 shojib, May 22, 2018
    Last edited by a moderator: May 23, 2018
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,646
    Likes Received:
    1,787
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello @shojib,

    Can you let us know the output from the following command on this system?

    Code:
    grep '' /etc/redhat-release /usr/local/cpanel/version /var/cpanel/envtype
    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. shojib

    shojib Active Member

    Joined:
    Mar 31, 2014
    Messages:
    28
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    Sylhet, Bangladesh
    cPanel Access Level:
    Root Administrator
    @cPanelMichael
    Code:
    [root@server1 ~]# grep '' /etc/redhat-release /usr/local/cpanel/version /var/cpanel/envtype
    /etc/redhat-release:CentOS Linux release 7.5.1804 (Core)
    /usr/local/cpanel/version:11.70.0.43
    /var/cpanel/envtype:standard
    I am guessing there is something wrong with the code itself?
    My system isn't CloudLinux and it's calling the same script inside the script and that's why it's in a loop?

    Code:
    [root@server1 ~]# cat /scripts/postupcp
    #!/bin/bash
    /scripts/postupcp   #cloudlinux-linksafe
    /usr/share/cloudlinux-linksafe/cpanel/hooks/cloudlinux_linksafe_hook.sh   #cloudlinux-linksafe
    
     
    #3 shojib, May 23, 2018
    Last edited by a moderator: May 23, 2018
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,646
    Likes Received:
    1,787
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello @shojib,

    The contents of your /scripts/postupcp file are not part of the standard cPanel & WHM installation. You can remove the /scripts/postupcp file in this case, since you are not using CloudLinux.

    Can you let us know how you installed cPanel & WHM? Was it part of an image offered by your hosting provider?

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. shojib

    shojib Active Member

    Joined:
    Mar 31, 2014
    Messages:
    28
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    Sylhet, Bangladesh
    cPanel Access Level:
    Root Administrator
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,646
    Likes Received:
    1,787
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello @shojib,

    Can you let us know how the operating system was installed prior to installing cPanel & WHM?

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. shojib

    shojib Active Member

    Joined:
    Mar 31, 2014
    Messages:
    28
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    Sylhet, Bangladesh
    cPanel Access Level:
    Root Administrator
    It was centos7 latest
     
  8. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,646
    Likes Received:
    1,787
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    For instance, what steps did you take to setup CentOS 7 on the server prior to installing cPanel?

    Thanks!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  9. shojib

    shojib Active Member

    Joined:
    Mar 31, 2014
    Messages:
    28
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    Sylhet, Bangladesh
    cPanel Access Level:
    Root Administrator
    The Server was from OVH and installed the centos from their control panel, they offer to use latest kernel 4.** via their netboot, but I prefer the centos kernel, so I disabled that option.
     
  10. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

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

    I recommend reporting the issue to OVH's support team to let them know the /scripts/postupcp file was included as part of the CentOS image offered in their control panel.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice