Fix for kernel bug in Ubuntu 20.04 causing various issues
-
@odie You should leave the conf file. Are you also on a home server?
Initially, I thought that support request was an exception. Maybe there is some genuine unbound configuration issue. hmmm
@girish said in Fix for kernel bug in Ubuntu 20.04 causing various issues:
@odie You should leave the conf file. Are you also on a home server?
Initially, I thought that support request was an exception. Maybe there is some genuine unbound configuration issue. hmmm
Yes, I am on a home server. Services seem to start
-
@girish said in Fix for kernel bug in Ubuntu 20.04 causing various issues:
@odie You should leave the conf file. Are you also on a home server?
Initially, I thought that support request was an exception. Maybe there is some genuine unbound configuration issue. hmmm
Yes, I am on a home server. Services seem to start
@odie said in Fix for kernel bug in Ubuntu 20.04 causing various issues:
@girish said in Fix for kernel bug in Ubuntu 20.04 causing various issues:
@odie You should leave the conf file. Are you also on a home server?
Initially, I thought that support request was an exception. Maybe there is some genuine unbound configuration issue. hmmm
Yes, I am on a home server. Services seem to start
Yup, all services have started, apps are running and everything seems to work. Thank you.
I guess that just leaves the original issue. I suddenly have a house full of family members, so I’ll have to check back later. Sorry about that, and thanks for helping me out!
-
This fix is not needed anymore. Ubuntu has released
5.4.0-135-generic
Cloudron enables automatic ubuntu security updates. Roughly around 2022-11-17, the linux kernel was updated to
5.4.0-132-generic
. You can find the automatic updates log in/var/log/apt/history.log
. This kernel has a bug causing various things like containerd, prometheus node exporter etc to fail. On Cloudron, this manifests itself as:- automatic updates appear to get stuck in 'cleaning up old install"
- cron jobs don't work anymore
- file permissions inside containers become incorrect
For the moment, it's best to revert to the previous kernel
5.4.0-131-generic
. How you do this, depends on your VPS provider. Some VPS providers allow you to change the kernel via their control panels.Please be careful with instructions below. You might have to fine tune it based on your setup/provider.
Many of the modern provider will just use Grub 2 as the kernel (digitalocean, linode, to name a few). On such VPS, please change the kernel as follows:
- Highly recommend taking a snapshot of the server, in case something goes wrong.
- SSH into the server
apt install linux-image-5.4.0-131-generic linux-modules-extra-5.4.0-131-generic
apt-mark hold linux-generic linux-image-generic linux-headers-generic
- Edit
/etc/default/grub
. Find the lineGRUB_DEFAULT=0
. Change this toGRUB_DEFAULT="Advanced options for Ubuntu>Ubuntu, with Linux 5.4.0-131-generic"
. Important you get this line right, otherwise your server may not boot! update-grub
reboot
- After reboot,
uname -nar
will say5.4.0-131-generic
.
To reverse the above changes:
apt-mark unhold linux-generic linux-image-generic linux-headers-generic
unattended-upgrade -d
- when running this you will see new kernel5.4.0-135-generic
is getting installed.- Edit
/etc/default/grub
. Change the line toGRUB_DEFAULT="Advanced options for Ubuntu>Ubuntu, with Linux 5.4.0-135-generic"
. update-grub
reboot
- After reboot,
uname -nar
will say5.4.0-135-generic
apt remove linux-image-5.4.0-131-generic linux-modules-extra-5.4.0-131-generic
- to remove the old kernel- Edit
/etc/default/grub
. Change the line to `GRUB_DEFAULT=0 update-grub
Related threads:
@girish said in Fix for kernel bug in Ubuntu 20.04 causing various issues:
Edit /etc/default/grub . Change the line to GRUB_DEFAULT=Advanced options for Ubuntu>Ubuntu, with Linux 5.4.0-135-generic.
Hello again,
Thanks for the help earlier. And apologies for having to run, suddenly 8 family members on my door expecting dinner....I think I figured out why I didn't manage to make the guide work for me when I tried to update grub. In the quoted line, there should be quotes around the "Advanced options..." line.
When doing that, the guide to revers the changes worked.
-
@girish said in Fix for kernel bug in Ubuntu 20.04 causing various issues:
Edit /etc/default/grub . Change the line to GRUB_DEFAULT=Advanced options for Ubuntu>Ubuntu, with Linux 5.4.0-135-generic.
Hello again,
Thanks for the help earlier. And apologies for having to run, suddenly 8 family members on my door expecting dinner....I think I figured out why I didn't manage to make the guide work for me when I tried to update grub. In the quoted line, there should be quotes around the "Advanced options..." line.
When doing that, the guide to revers the changes worked.
@odie said in Fix for kernel bug in Ubuntu 20.04 causing various issues:
n the quoted line, there should be quotes around the "Advanced options..." line.
@girish sounds like that needs to go in your reverse instructions in the post at the top - your commands there don't have the quotes.