Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Support
  3. Fix for kernel bug in Ubuntu 20.04 causing various issues

Fix for kernel bug in Ubuntu 20.04 causing various issues

Scheduled Pinned Locked Moved Solved Support
44 Posts 8 Posters 6.3k Views 9 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • girishG girish

    @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

    O Offline
    O Offline
    odie
    wrote on last edited by
    #41

    @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

    O 1 Reply Last reply
    1
    • O odie

      @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

      O Offline
      O Offline
      odie
      wrote on last edited by
      #42

      @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!

      1 Reply Last reply
      1
      • girishG girish

        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 line GRUB_DEFAULT=0. Change this to GRUB_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 say 5.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 kernel 5.4.0-135-generic is getting installed.
        • Edit /etc/default/grub . Change the line to GRUB_DEFAULT="Advanced options for Ubuntu>Ubuntu, with Linux 5.4.0-135-generic".
        • update-grub
        • reboot
        • After reboot, uname -nar will say 5.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:

        • https://forum.cloudron.io/topic/8096/docker-needs-to-be-restarted-often-due-to-fail-app-updates
        • https://forum.cloudron.io/topic/8032/apps-stuck-updating-cleaning-up-old-install-even-after-stopping-restarting-task
        O Offline
        O Offline
        odie
        wrote on last edited by
        #43

        @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.

        jdaviescoatesJ 1 Reply Last reply
        3
        • O odie

          @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.

          jdaviescoatesJ Offline
          jdaviescoatesJ Offline
          jdaviescoates
          wrote on last edited by
          #44

          @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.

          I use Cloudron with Gandi & Hetzner

          1 Reply Last reply
          3
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Bookmarks
          • Search