Not a webmin issue but you may know the answer

I have 2 near identical ubuntu 20.04 servers both managed by webmin pro today a kernel update was applied to both server A told me that it needed a reboot to fully apply the upgrade but server B did not. On server B the file

/var/run/reboot-required

has not been written to inform of a reboot required so what would cause that file not to be written ?

Status: 
Active
Virtualmin version: 
614
Webmin version: 
1970

Comments

Ilia's picture
Submitted by Ilia on Wed, 01/27/2021 - 03:02

HI,

Perhaps one of the servers has live patching setup and enabled. You could check the kernel version in use with uname -a command.

jimr's picture
Submitted by jimr on Wed, 01/27/2021 - 04:05 Pro Licensee

Live patch is not set up .. check both servers (neither have been restarted yet) and are showing the same version of kernel . mystery I guess

Ilia's picture
Submitted by Ilia on Wed, 01/27/2021 - 18:23

Probably some kexec like command was run or your server silently and voluntarily rebooted while you were grabbing a coffee? How should we know? :--) We would recommend checking boot logs.

jimr's picture
Submitted by jimr on Fri, 01/29/2021 - 10:09 Pro Licensee

nothing at all ... server B is still running the old Kernel and the value stored in

/proc/uptime

doesn't indicate a restart it's like it forget to write the 2 files. unless of course someone in the data center did something strange with the vps at the same time.

Ilia's picture
Submitted by Ilia on Fri, 01/29/2021 - 10:14

What makes you think that the new kernel was applied?

What is the output of uname -a command?

jimr's picture
Submitted by jimr on Sat, 01/30/2021 - 02:41 Pro Licensee

nothing makes me think it was applied .. however rebooted the server and the new kernel was applied .. oddly enough the unattended upgrades had purged the old kernel a few days ago, according to it's log. I'll keep an eye out for the next kernel update to see if the '/var/run/reboot-required' file is created, as I can not rely on webmin to tell me but I guess my other server will

Ilia's picture
Submitted by Ilia on Sat, 01/30/2021 - 10:52

You may be interesting in installing needrestart command.

Ilia's picture
Submitted by Ilia on Sat, 01/30/2021 - 10:57

I'll keep an eye out for the next kernel update to see if the '/var/run/reboot-required' file is created, as I can not rely on webmin to tell me but I guess my other server will

Webmin simply checks for /var/run/reboot-required file existence, and if it exists, alert message is shown on the Dashboard.