Why does the Leapp Preupgrade fails with an error 'Curl error (6): Couldn't resolve host name’?
Issue
-
The
Leapp Preupgradeon the host registered to aSatelliteor theCapsule serverfails with the below error.Stderr: Host and machine ids are equal (xxxxxxxxxxxxx): refusing to link journals Errors during downloading metadata for repository 'rhel-9-for-x86_64-appstream-eus-rpms': - Curl error (6): Couldn't resolve host name for https://satellite.example.com/pulp/content/Org/Library/content/eus/rhel9/9.4/x86_64/appstream/os/repodata/repomd.xml [Could not resolve host:satellite.example.com] Error: Failed to download metadata for repo 'rhel-9-for-x86_64-appstream-eus-rpms': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried -
If the system is registered with
CDNthen theLeapp Preupgradefails and following error occurs:stderr": "Failed to mount n/a on /var/lib/leapp/scratch/mounts/root_/system_overlay/run/systemd/resolve/resolv.conf (MS_BIND \"\"): No such file or directory Host and machine ids are equal (xxxxxxxxxxxxx): refusing to link journals Errors during downloading metadata for repository 'rhel-9-for-x86_64-baseos-rpms': - Curl error (6): Couldn't resolve host name for https://cdn.redhat.com/content/dist/rhel9/9.6/x86_64/baseos/os/repodata/repomd.xml [Could not resolve host:cdn.redhat.com] Error: Failed to download metadata for repo 'rhel-9-for-x86_64-baseos-rpms': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried.
Environment
- Red Hat Enterprise Linux 9
- Red Hat Enterprise Linux 8
- Red Hat Satellite 6
- Red Hat Subscription Manager(RHSM)
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.