WHM v66.0.14 - You must reboot the server to apply kernel updates

CBG

Active Member
Apr 23, 2010
39
2
58
cPanel Access Level
Root Administrator
Hi,

Just did a force update to v66.0.14 and in WHM it saying:
You must reboot the server to apply kernel updates

I am running KernelCare that fully up to date and yum update doesn;t find anything.

I have also done a graceful reboot twice.

[[email protected] ~]# uname -r
3.10.0-514.26.2.el7.x86_64
[[email protected] ~]# yum install kernel
Loaded plugins: fastestmirror, universal-hooks
Loading mirror speeds from cached hostfile
* EA4: 85.13.201.2
* cpanel-addons-production-feed: 85.13.201.2
* base: mirrors.linode.com
* extras: mirrors.linode.com
* updates: mirrors.linode.com
Package kernel-3.10.0-514.26.2.el7.x86_64 already installed and latest version
Nothing to do
[[email protected] ~]#
 

CBG

Active Member
Apr 23, 2010
39
2
58
cPanel Access Level
Root Administrator
Update: just click on v66.0.14 which takes you to: Upgrade to Latest Version
I then clicked on Click to Upgrade.

After it ran and I click on the WHM image, it has now gone
 

lacivert

Member
May 6, 2011
8
0
51
Hi, I just upgraded to WHM v66.0.14 and I see a message that says "You must reboot the server to update kernel." and I did it two times!! I'm still seeing same message. Do I still have to reboot? I thought it stuck! What can we do?

Thanks.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,228
463
Hello,

Internal case CPANEL-15405 is open to address an issue where the use of non-stock kernels can result in the "You must reboot the server to update kernel" banner in WHM in cases where the active kernel is already installed and utilized. The resolution will include changes to ensure this feature isn't utilized on systems running custom kernels. I'll monitor this case and update this thread with more information as it becomes available.

Thank you.
 

lacivert

Member
May 6, 2011
8
0
51
Hello,

Internal case CPANEL-15405 is open to address an issue where the use of non-stock kernels can result in the "You must reboot the server to update kernel" banner in WHM in cases where the active kernel is already installed and utilized. The resolution will include changes to ensure this feature isn't utilized on systems running custom kernels. I'll monitor this case and update this thread with more information as it becomes available.

Thank you.
SOLVED - cPanel 66 - Reboot Message in WHM

I checked this threads and removed cache file.

rm /run/system_needs_reboot.cache




Its not showing anymore and also

[email protected]:/run # kcarectl --uname
-bash: kcarectl: command not found

Do I need to track check this later?
 

lacivert

Member
May 6, 2011
8
0
51
yes that error message appeared again. I'm not happy. :(

You must reboot the server to apply kernel updates.

 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,228
463
Hello,

Internal case CPANEL-15405 will prevent the reboot banner from appearing on any system that uses a custom kernel. I'll update this thread again once the resolution is published.

Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,228
463
Hello,

To update, the resolution is included with cPanel version 66.0.17 (available in the CURRENT build tier):

Fixed case CPANEL-15405: Don't instruct users to reboot when they're running a custom kernel.

This version should make it's way to the "RELEASE" build tier in the near future. You can read more about the product versions and release process at:

Product Versions and the Release Process - cPanel Knowledge Base - cPanel Documentation

Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,228
463
Updated to 66.0.17 last night yet the message remains.
Hello,

KernelCare updates the system to the latest kernel via its patching system, however it's possible the kernel RPM installed on the system is not updated to the latest version. Using the latest kernel RPM isn't required with KernelCare (it allows the system to run updated kernels without the latest RPM installed), however this can lead to cPanel displaying the "reboot warning" because the boot_version and running_version it detects are mismatched. A new case, CPANEL-15544, is now open to address this behavior. I'll monitor this case and update this thread with more information as it becomes available. In the meantime, you should be able to workaround this issue by installing the latest kernel RPM available from your OS (e.g. yum update kernel).

Thank you.
 

indoc0der

Member
Sep 4, 2011
18
1
53
cPanel Access Level
Root Administrator
Hello,

the message appears again on WHM/cPanel v66.0.17. Already running yum update kernel and nothing happened.

[[email protected] ~]# yum update kernel
Loaded plugins: fastestmirror, rhnplugin, universal-hooks
This system is receiving updates from CLN.
Loading mirror speeds from cached hostfile
* EA4: 104.219.172.10
* cpanel-addons-production-feed: 104.219.172.10
* cloudlinux-x86_64-server-7: cl.banahosting.com
No packages marked for update
[[email protected] ~]#

Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,228
463
the message appears again on WHM/cPanel v66.0.17. Already running yum update kernel and nothing happened.
Does this server use KernelCare? If not, didyou reboot the server after applying the kernel update?

Applied updates (yum update kernel) but warning message remains...?
Did you reboot the server after applying the kernel update?

Thank you.
 

kevinlevin

Member
Oct 27, 2011
24
0
51
cPanel Access Level
Root Administrator
Same problem here:

Running 66.0.17 + KernelCare on all servers - the message never disappears.
Had to reboot a server 5 times and still.. the message is here. This is getting very annoying.
@ cPanel Team - Please fix this ASAP.
 
Last edited by a moderator:

RobinF28

Active Member
Jun 27, 2015
42
8
58
Elgin, Scotland
cPanel Access Level
Root Administrator
Hi Michael,

Yes, I've rebooted the server more than 3 times, and the warning remains.

Also, I've updated the kernel a few more times, both the "cp hardened kernel patch" and the basic yum, (yum update kernel) and rebooted again, and the warning remains.

Also (sorry) I've updated to 66.18 - and updated kernel again, and it still show as "old" kernel...

[email protected] ~ $ uname -r
2.6.32-642.13.1.el6.x86_64

Any ideas, thank you.

Regards, Robin.
 

Attachments

RobinF28

Active Member
Jun 27, 2015
42
8
58
Elgin, Scotland
cPanel Access Level
Root Administrator
Hi Michael,

Yes, I've run "yum -y update kernel" 3 times & rebooted many times, but still the kernel refuses to upgrade, and I still get the warning message.

I've also updated to 66.18, but still no improvement.

Here is my current grub.conf info...
Code:
#########################################################
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You do not have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /, eg.
#          root (hd0,0)
#          kernel /boot/vmlinuz-version ro root=/dev/vda1
#          initrd /boot/initrd-[generic-]version.img
#boot=/dev/vda
default=0
timeout=1
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
hiddenmenu
title CentOS (2.6.32-642.13.1.el6.x86_64)
        root (hd0,0)
        kernel /boot/vmlinuz-2.6.32-642.13.1.el6.x86_64 ro root=UUID=585e41ba-db5b-4e24-9b08-e4a27476f5fa rd_NO_LUKS rd_NO_LVM LANG=en_US.UTF-8 rd_NO_MD SYSFONT=latarcyrheb-sun16 crashkernel=auto  KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM elevator=noop
        initrd /boot/initramfs-2.6.32-642.13.1.el6.x86_64.img
title CentOS 6 (2.6.32-642.el6.x86_64)
        root (hd0,0)
        kernel /boot/vmlinuz-2.6.32-642.el6.x86_64 ro root=UUID=585e41ba-db5b-4e24-9b08-e4a27476f5fa rd_NO_LUKS rd_NO_LVM LANG=en_US.UTF-8 rd_NO_MD SYSFONT=latarcyrheb-sun16 crashkernel=auto  KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM elevator=noop
        initrd /boot/initramfs-2.6.32-642.el6.x86_64.img

####################################################
Any ideas? Thank you.

Regards, Robin.
 

Attachments

Last edited by a moderator: