cPanel in LXC container requesting reboots
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:
Is there any way to debug this further? Thank you!
# 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!
-
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: 0 -
Thank you for the clarification. Apart from any security implications - is this issue going to affect the functionality of cPanel? 0 -
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 0 -
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.0
Please sign in to leave a comment.
Comments
4 comments