SOLVED cPanel in LXC container requesting reboots

tony_ssi

Member
Nov 3, 2017
5
0
1
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!
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
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 on CentOS 7 guests due to how LXC is provisioned, leading to the issue you have described. The solution is to reboot the host server itself (or contact your VPS provider if you do not have access to the host server).

Note that CentOS 6 does not suffer from this problem because it does not utilize the needs-restarting binary.

You can find documentation on using cPanel & WHM on Linux Containers (LXC) at:

Linux Containers - Documentation - cPanel Documentation

Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
Apart from any security implications - is this issue going to affect the functionality of cPanel?
No, as long as you don't mind seeing the reboot warning message in WHM.

Thank you.