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!

cPanel in LXC container requesting reboots

Discussion in 'General Discussion' started by tony_ssi, Nov 3, 2017.

  1. tony_ssi

    tony_ssi Member

    Joined:
    Nov 3, 2017
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Varna, Bulgaria
    cPanel Access Level:
    DataCenter Provider
    Hello,

    We recently installed cPanel in a CentOS 7 LXC container running on Proxmox 5.1
    After the installation, cPanel is requesting reboot due to software updates.
    Rebooting the container did not solve the issue.

    whmapi1 reports the following:

    Code:
    # whmapi1 system_needs_reboot
    ---
    data:
      details:
        updates:
          glibc: 2.17-196.el7
          openssl-libs: 1:1.0.2k-8.el7
          systemd: 219-42.el7_4.4
      needs_reboot: 1
    metadata:
      command: system_needs_reboot
      reason: OK
      result: 1
      version: 1
    
    Is there any way to debug this further?
    Thank you!
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,803
    Likes Received:
    1,898
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    This was brought up recently as part of internal case CPANEL-15721. It was determined that the needs-restarting binary is seeing items outside of the container with CentOS 7 due to how LXC is provisioned, leading to the issue you have described. CentOS 6 does not suffer from this problem because it does not utilize the needs-restarting binary. The recommendation was to consider migrating the accounts to a CentOS 6 server if they're going to be in an LXC container, or to move to a virtualization platform other than Proxmox. A list of virtual environments known to work well with cPanel servers is available at:

    Installation Guide - System Requirements - Documentation - cPanel Documentation

    Also, should you decide to stay on the same environment, note the following documentation on Linux Containers:

    Linux Containers - Documentation - cPanel Documentation

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. tony_ssi

    tony_ssi Member

    Joined:
    Nov 3, 2017
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Varna, Bulgaria
    cPanel Access Level:
    DataCenter Provider
    Thank you for the clarification.
    Apart from any security implications - is this issue going to affect the functionality of cPanel?
     
  4. tony_ssi

    tony_ssi Member

    Joined:
    Nov 3, 2017
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Varna, Bulgaria
    cPanel Access Level:
    DataCenter Provider
    Apparently the problem is caused by this bug:
    github.com/lxc/lxcfs/issues/164
    btime is not virtualized in /proc/stat

    which will get resolved eventually
     
    #4 tony_ssi, Nov 4, 2017
    Last edited by a moderator: Nov 4, 2017
  5. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,803
    Likes Received:
    1,898
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    No, as long as you don't mind seeing the reboot warning message in WHM.

    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