[Spce-user] Upgrade from 7.5.4 to 8.5.4 fails on grub

Manuel Montecelo mmontecelo at sipwise.com
Tue Apr 27 15:40:11 EDT 2021


Hello Walter,

2021-04-27 18:46 Walter Klomp via Spce-user:
>   Hi,
>   I am getting this error during a trial upgrade… how to fix ?
>   2021-04-28 00:38:40: [41/75] 'sipwise-5-2-test' Running:
>   /usr/share/ngcp-upgrade/steps/mr7.5/fix_grub_upgrade
>   Debconf configuration install_devices for grub-pc currently set to
>   '/dev/disk/by-id/scsi-0QEMU_QEMU_HARDDISK_drive-scsi0,/dev/disk/by-id/scsi-0QEMU_QEMU_HARDDISK_drive-scsi0-part1'.
>   Debconf configuration install_devices_disks_changed for grub-pc currently
>   set to
>   '/dev/disk/by-id/scsi-0QEMU_QEMU_HARDDISK_drive-scsi0,/dev/disk/by-id/scsi-0QEMU_QEMU_HARDDISK_drive-scsi0-part1'.
>   ERROR: system not running from /dev/mapper/ngcp-root nor root=UUID=….
>   Please report this problem.
>   ERROR: the step 'mr7.5/fix_grub_upgrade' failed, upgrade aborted!
>   Please fix the root of the issue and restart 'ngcp-upgrade'
>   (see error details in log file
>   /var/log/ngcp-upgrade-mr8.5.4-1619541516-failed-41-of-75.log ).

Thanks for reporting this problem.

Could you please post the output of the following commands, in the system being
upgraded?

   cat /proc/cmdline
   cat /etc/sipwise_ngcp_version
   debconf-show grub-pc


In the meantime, if you want to proceed with the upgrade while we address the
problem, and assumming that the system has been running and booting fine so far
from previous installations and upgrades, and that as a last resort you have
means to restore it if something goes wrong (e.g. boot via another partition), a
workaround to this problem is to edit this file:

   /usr/share/ngcp-upgrade/steps/mr7.5/fix_grub_upgrade

and add a new line with "exit 0", after the first line of "#!/bin/bash", and
then execute "ngcp-upgrade" again with the same options (target version and so
on), to continue the upgrade at the point where it broke.

In this way this step will simply not run, and will leave the boot process the
same that it is (without attempting to reinstall it), so it should not break
anything, while assuming that it will continue to boot fine with the current
state.  And, meanwhile, this allows you to continue with the other steps of the
upgrade.


Hope that helps, and please report back with the info requested so we can try to
improve the step to allow for your system configurations.


Cheers.
-- 
Manuel Montecelo <mmontecelo at sipwise.com>
Release Engineer

Sipwise GmbH, Campus 21/Europaring F15
AT-2345 Brunn am Gebirge

Office: +43(0)13012029 | Website: https://www.sipwise.com




More information about the Spce-user mailing list