Skip to content
Search openEuler

    Browse this documentation

    x2openEuler migration failure troubleshooting — metadata-timeout fault classes reproduced in testing, log localization and recovery paths

    This page’s evidence comes in two tracks: container verification (E2) — mirror-pin fixes for intermittent official-source faults verified in testing (evidence/logs/openeuler-dnf-history-rollback.log, the mirror-pin section of evidence/logs/openeuler-oemaker-custom-iso.log, 2026-11-05; both logs are successful re-runs after the fix — the fault-scene error text shape comes from the same batch’s dnf makecache failure output, see below); documentation/community positioning — the high-frequency failure case shapes from the x2openEuler forum. The tool’s own failure cases were not reproduced on real machines (no CentOS source machine; see the end of the page).

    Layer 1: network/repo faults (reproduced in testing)

    Section titled “Layer 1: network/repo faults (reproduced in testing)”

    The migration tool depends heavily on repo metadata. The error shape and fix for intermittent official-source faults (one VM verification sample in openeuler-p2-first-hour-vm.log; successful post-mirror-pin re-run output in openeuler-dnf-history-rollback.log, openeuler-oemaker-custom-iso.log):

    Error: Failed to download metadata for repository 'OS':
    Cannot download repodata/repomd.xml: All mirrors were tried
    # common shape (community reports, not this site's recording): the repo.openeuler.org 302 → dl-cdn redirect chain times out on some networks; this site's verification sample was a DNS resolution failure (see the p2-first-hour log)

    In the x2openEuler context this class of fault shows up as the assessment or upgrade phase stalling on metadata fetch (error shape: Error: Failed to download metadata for repo '<repo>': ... All mirrors were tried — one of this site’s verified samples was a VM DNS resolution failure shape (openeuler-p2-first-hour-vm.log); intermittent timeouts on 302 redirects are the class’s common shape (common community reports, not this site’s recording); the generic error format is dnf standard output). Fix order: ① pin baseurl to a reachable mirror (Huawei Cloud/Tsinghua, one sed; template on the EPOL page); ② in isolated networks, switch the tool to its offline package mode (download from the official migration page); ③ confirm it is not a proxy/DNS-layer issue (verify hop by hop with curl -sI). Re-run the assessment after the fix; do not resume the upgrade directly — repo state before and after the interruption point may be inconsistent.

    Typical shapes: packages from EPEL/third-party repos on the source machine with no openEuler counterpart (see the package name difference map: EPEL’s niche is EPOL, and package names/versions do not map one to one); or the same package name coexisting in different architectures/versions. The assessment report lists unmappable packages — three dispositions: remove (after confirming it’s unneeded), swap to an openEuler equivalent, or rebuild from source after migration. Forcing the upgrade with conflicts in place ends up interrupted inside an rpm transaction, at a recovery cost far higher than handling it during assessment.

    Layer 3: interrupted upgrade execution and recovery principles

    Section titled “Layer 3: interrupted upgrade execution and recovery principles”
    • Survey the scene before acting: tool logs (under the install directory) + dnf history to localize the interrupted transaction (the rpmdb hash in history info <ID> is the state anchor; see the dnf history page);
    • Do not blindly run the tool twice: fix the root cause first (repo/disk/dependencies), close out the interrupted transaction per dnf’s guidance (undo/complete) before continuing;
    • Reboot/boot layer (the machine won’t boot after the upgrade finishes): use the console’s rescue mode (see this site’s existing boot troubleshooting page); handle kernel/initramfs issues per the kernel governance page.
    1. Network-layer precheck: run dnf makecache against the target repos (this page’s mirror-pin step, done in advance);
    2. Disk headroom (5GB-scale and up) and inode check;
    3. Zero unmapped packages in the assessment report (or a disposition decision for every one);
    4. Rollback channel in place (snapshot/image backup — the contingency boundary of the full migration flow).
    • The tool’s own failure/recovery real-machine cases not reproduced (no CentOS source machine; this page’s network-layer fault is verified, while the dependency/execution layers are framework and community-shape inductions);
    • The actual close-out operation for interrupted upgrade transactions not executed (dnf history’s generic mechanism was verified on the container track);
    • No per-case tracing of forum cases was done (official forum/doc positioning is not labeled “verified”).