Skip to main content

Software updates

This guide explains how to troubleshoot failed software updates on the Anapaya appliances. For the update procedure, see Software updates.

Inspect the installation logs​

The appliance installer writes its logs to the systemd journal. Show the logs of the last two hours:

journalctl -u appliance-installer.service --since -2h

System package installation fails because /boot is full​

Symptoms​

  • The System package installation has the status failed. The error is Failed to post restart upgrade.

  • The installation of the Appliance package fails after this with the error system package version too old.

  • The installer logs contain the following lines:

    zstd: error 25 : Write error : No space left on device
    E: mkinitramfs failure
    dpkg: error processing package initramfs-tools (--configure)

Cause​

A System package can contain a new Linux kernel. Each installed kernel uses space in the /boot partition. If /boot holds old kernels, the free space is not sufficient for the new kernel, and the installation fails. The installer removes the old kernels only after a successful installation.

Diagnosis​

  1. Make sure that the installer logs contain the No space left on device error. See Inspect the installation logs.

  2. Show the free space in /boot:

    df -h /boot

Solution​

  1. Remove the old kernels:

    sudo apt autoremove --purge
  2. Install the System package again. Then install the Appliance package. Use the same procedure as for the update. See Update the appliance.

If the installation fails again, collect a debug dump and contact Anapaya Support.

Prevention​

Before you update the appliance, remove the old kernels:

sudo apt autoremove --purge