Disk filled up with kernel update artifacts



  • Due to the many kernel updates lately for ubuntu, we have encountered a few situations where the Cloudron is down because the root filesystem gets filled up completely. This happens due tohttps://bugs.debian.org/cgi-bin/bugreport.cgi?bug=814345

    The symptoms are the root file system being 100% full as well as /boot partition nearly or entirely full. Check the state withdf -h

    The steps to fix this situation are the following:

    rm -rf /var/tmp/mkinitramfs*
    dpkg --configure -a
    apt install
    apt autoremove
    

    This will cleanup old unused kernel images and initramfs files and ensures the latest kernel will be used. Once the above commands succeed cleanly, simply reboot the server and the Cloudron processes should be started automatically.



  • @nebulon said inDisk filled up with kernel update artifacts:

    rm -rf /var/tmp/mkinitramfs*

    I had to instead do:

    cd /var/tmp
    find . -type f -delete -print
    

    This was running for like 5 hours! (and still running)