SOLVED 'You must reboot the server to apply kernel updates' persists after multiple reboots

aztopdavid

Well-Known Member
Jan 1, 2016
53
9
58
Arizona
cPanel Access Level
Root Administrator
Here's the output of the command:
Code:
# grubby --info=ALL
index=0
kernel=/boot/vmlinuz-3.10.0-1127.el7.x86_64
args="ro LANG=en_US.UTF-8"
root=/dev/sda1
initrd=/boot/initramfs-3.10.0-1127.el7.x86_64.img
title=CentOS Linux (3.10.0-1127.el7.x86_64) 7 (Core)
index=1
kernel=/boot/vmlinuz-3.10.0-1062.18.1.el7.x86_64
args="ro"
root=UUID=a44fb57f-8c52-7db3-f787-3f47c406178e
initrd=/boot/initramfs-3.10.0-1062.18.1.el7.x86_64.img
title=CentOS Linux 7 (Core)
index=2
non linux entry
index=3
kernel=/boot/vmlinuz-3.10.0-1062.18.1.el7.x86_64
args="ro"
root=UUID=a44fb57f-8c52-7db3-f787-3f47c406178e
initrd=/boot/initramfs-3.10.0-1062.18.1.el7.x86_64.img
title=CentOS Linux (3.10.0-1062.18.1.el7.x86_64) 7 (Core)
index=4
kernel=/boot/vmlinuz-3.10.0-1062.18.1.el7.x86_64
args="ro single"
root=UUID=a44fb57f-8c52-7db3-f787-3f47c406178e
initrd=/boot/initramfs-3.10.0-1062.18.1.el7.x86_64.img
title=CentOS Linux (3.10.0-1062.18.1.el7.x86_64) 7 (Core) (recovery mode)
index=5
kernel=/boot/vmlinuz-3.10.0-1062.12.1.el7.x86_64
args="ro"
root=UUID=a44fb57f-8c52-7db3-f787-3f47c406178e
initrd=/boot/initramfs-3.10.0-1062.12.1.el7.x86_64.img
title=CentOS Linux (3.10.0-1062.12.1.el7.x86_64) 7 (Core)
index=6
kernel=/boot/vmlinuz-3.10.0-1062.12.1.el7.x86_64
args="ro single"
root=UUID=a44fb57f-8c52-7db3-f787-3f47c406178e
initrd=/boot/initramfs-3.10.0-1062.12.1.el7.x86_64.img
title=CentOS Linux (3.10.0-1062.12.1.el7.x86_64) 7 (Core) (recovery mode)
index=7
kernel=/boot/vmlinuz-3.10.0-862.14.4.el7.x86_64
args="ro"
root=UUID=a44fb57f-8c52-7db3-f787-3f47c406178e
initrd=/boot/initrd-3.10.0-862.14.4.el7.x86_64.img
title=CentOS Linux (3.10.0-862.14.4.el7.x86_64) 7 (Core)
index=8
kernel=/boot/vmlinuz-3.10.0-862.14.4.el7.x86_64
args="ro single"
root=UUID=a44fb57f-8c52-7db3-f787-3f47c406178e
initrd=/boot/initrd-3.10.0-862.14.4.el7.x86_64.img
title=CentOS Linux (3.10.0-862.14.4.el7.x86_64) 7 (Core) (recovery mode)
index=9
non linux entry
index=10
non linux entry
 

aztopdavid

Well-Known Member
Jan 1, 2016
53
9
58
Arizona
cPanel Access Level
Root Administrator
I've had the server a very long time, but it was migrated from ServInt to Leaseweb in October 2018.

Are you suggesting I should run "grubby --set-default-index=0" and then reboot?
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,296
1,268
313
Houston
I've had the server a very long time, but it was migrated from ServInt to Leaseweb in October 2018.
That lines up exactly with the last time this kernel was updated just FYI

Are you suggesting I should run "grubby --set-default-index=0" and then reboot?
I am suggesting you can try it but the way things are configured right now, I'm nervous to say that with confidence.

If I were you, I would call my hosting provider or datacenter and initiate a discussion about this. I don't know what happened here but something is very wrong and your kernel isn't updating nor has it since it was migrated to this provider which has left you two years behind on updates.
 

aztopdavid

Well-Known Member
Jan 1, 2016
53
9
58
Arizona
cPanel Access Level
Root Administrator
If I were you, I would call my hosting provider or datacenter and initiate a discussion about this. I don't know what happened here but something is very wrong and your kernel isn't updating nor has it since it was migrated to this provider which has left you two years behind on updates.
Got it, thanks. Before the acquisition of ServInt by Leaseweb, I never had to update the kernel myself, so it wasn't on my radar. Instead of doing anything particularly risky, I'll reach out to them and have them take a look at the situation. I like using WHM/cPanel, which is one reason I've not left for a host that has their own proprietary dashboard/panel system.
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,296
1,268
313
Houston
Got it, thanks. Before the acquisition of ServInt by Leaseweb, I never had to update the kernel myself, so it wasn't on my radar. Instead of doing anything particularly risky, I'll reach out to them and have them take a look at the situation. I like using WHM/cPanel, which is one reason I've not left for a host that has their own proprietary dashboard/panel system.
I wish I could tell you with confidence to update that but really it's not something that is in our scope of support and our tech support team would not be able to help you with this or I would have directed you there, because we don't have console access to your server. Luckily you have console access you could potentially boot into safe mode but I'd feel a lot better if your provider took a look since only the one kernel shows up there.

I like using WHM/cPanel, which is one reason I've not left for a host that has their own proprietary dashboard/panel system.
There are tons of hosts who offer cPanel & WHM though but we're glad you like using it :)

Let me know what they say and if you try running the grubby command, I'm feeling pretty invested in this issue now and I really want to know how it plays out.
 

aztopdavid

Well-Known Member
Jan 1, 2016
53
9
58
Arizona
cPanel Access Level
Root Administrator
Looks like I accidentally executed the "grubby --set-default-index=0" earlier and I've rebooted since then, so here are some updates:
Code:
# grub2-editenv list
saved_entry=0

# grubby --default-kernel
/boot/vmlinuz-3.10.0-1127.el7.x86_64
But I still have the "You must reboot the server to apply kernel updates" showing in WHM after reboot, and this is in the "whmapi1 system_needs_reboot" output:
Code:
      boot_version: 3.10.0-1127.el7.x86_64
      running_version: 3.10.0-862.14.4.el7.x86_64
I'll follow up with the host and will be sure to come back to update.
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,296
1,268
313
Houston
Yea boot version is set to the correct kernel and you're still running the old kernel - but i sincerely feel like we made progress :highfive:?
 

Rajeeva Lochana

Well-Known Member
Community Guide Contributor
May 27, 2019
122
38
28
India
cPanel Access Level
Root Administrator
If your data center provider has a backup system that takes a backup the whole server including grub, then you could run any command without risk I believe. But you must make sure the whole server is in the backup. And if anything happens, just restore the server backup.

Thanks
 
Last edited:

aztopdavid

Well-Known Member
Jan 1, 2016
53
9
58
Arizona
cPanel Access Level
Root Administrator
I finally submitted a ticket to the provider and here's the response:

Your server had an issue with grub2 that wasn't picking up the new update. I have fixed these issues and you can reboot at your convenience and there server will come up on the latest kernel.
I rebooted and now it's running 3.10.0-1127.e17.x86_64
"# grubby --default-kernel" now returns "/boot/vmlinuz-3.10.0-1127.e17.x86_64"
"# grubby --default-index" now returns "0"

They weren't specific about the "issue with grub2" -- I could reopen the ticket and ask if that would be helpful.
 
  • Like
Reactions: cPanelLauren

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,296
1,268
313
Houston
They weren't specific about the "issue with grub2" -- I could reopen the ticket and ask if that would be helpful.

Ahh that's a bummer, but it's quite alright, no need to do that. I am so happy to hear that they were able to get it resolved for you though :D
 
  • Like
Reactions: aztopdavid