Upgrading 20.12 to 20.13 Fails on VMware With Error at Privileged Migrations Step

Learn how to resolve a privileged migrations error when upgrading from Oracle AVDF 20.12 to 20.13.

Problem

When upgrading from Oracle AVDF 20.12 to 20.13, the upgrade fails on VMware with the following error:

run-privileged-migrations ERROR - ODF-10001: Internal error: Fatal error running migrations

Solution

To resolve this issue, first confirm that you are experiencing the same error. If so, follow the subsequent steps:

  1. As the root user, check the integrity of the RPM database:

    cd /var/lib/rpm
    /usr/lib/rpm/rpmd_verify Packages

    If there are no errors, these instructions do not apply, contact Oracle Support.

  2. If errors are found, run the following commands to rebuild the RPM database:

    cd /var/lib
    cp -ax --backup=t rpm rpm.old
    rm -i rpm/__db.???
    rpm --rebuilddb
  3. Once you have rebuilt the RPM database, check the validity of the rebuilt package database:

    cd /var/lib/rpm
    /usr/lib/rpm/rpmdb_verify Packages
  4. Once confirmed, proceed with the upgrade according to the specific type of RPM database corruption encountered. Follow the appropriate steps based on the scenario experienced:

    • Resume the upgrade if the privileged migrations have not yet started:
      1. Reboot the system.

      2. Log in as the root user.

      3. Run the following command:

        systemctl isolate avdf-upgrade.target
      4. To review the upgrade status, re-log in on the console as the root user.

    • Resume the upgrade after the privileged migrations have started:
      1. Apply the AVDF 20.13 update to the recovery utility:

        rpm -U /media/avdf-install/bootstrap/Packages/avdf-bootstrap-20.13.0.0.0-*.noarch.rpm
      2. Check the current status:

        /opt/avdf/bin/privmigutl --status
      3. Review the output to find the failing migration and re-run it manually as the root user.

      4. Once the migration has completed successfully, run the following command:

        /opt/avdf/bin/privmigutl --resume