Configuring Red Hat Capsule 6.15 server with SSL certificates fails with `Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried` error
Environment
- Red Hat Capsule 6.15
Issue
-
Configuring a freshly installed Red Hat Capsule 6.15 server with SSL certificates using the command:
# satellite-installer --scenario capsule \ --certs-tar-file "/root/capsule_cert/capsule.example.com-certs.tar" \ --foreman-proxy-register-in-foreman "true" \ --foreman-proxy-foreman-base-url "https://satellite.example.com" \ --foreman-proxy-trusted-hosts "satellite.example.com" \ --foreman-proxy-trusted-hosts "capsule.example.com" \ --foreman-proxy-oauth-consumer-key "s97QxvUAgFNAQZNGg4F9zLq2biDsxM7f" \ --foreman-proxy-oauth-consumer-secret "6bpzAdMpRAfYaVZtaepYetomgBVQ6ehY"fails with the following error:
. . 2025-04-01 09:42:37 [ERROR ] [configure] Execution of '/bin/dnf -d 0 -e 1 -y install rubygem-smart_proxy_pulp' returned 1: Error: Unable to find a match: rubygem-smart_proxy_pulp 2025-04-01 09:42:37 [ERROR ] [configure] /Stage[main]/Foreman_proxy::Plugin::Pulp/Foreman_proxy::Plugin[pulp]/Package[rubygem-smart_proxy_pulp]/ensure: change from 'purged' to 'present' failed: Execution of '/bin/dnf -d 0 -e 1 -y install rubygem-smart_proxy_pulp' returned 1: Error: Unable to find a match: rubygem-smart_proxy_pulp . .
Resolution
- Confirm that the
satellite-capsule-6.15-for-rhel-8-x86_64-rpmsrepository is enabled on the Capsule server by examining the output of the following command:
# dnf -C repolist
- If the
satellite-capsule-6.15-for-rhel-8-x86_64-rpmsrepository is not enabled on the system enable it using the following command:
# subscription-manager repos --enable=satellite-capsule-6.15-for-rhel-8-x86_64-rpms
- Retry the failed command to configure the Capsule server with the SSL certificates.
For more KB articles/solutions related to Red Hat Satellite 6.x Installation/Upgrade/Update Issues, please refer to the Red Hat Satellite Consolidated Troubleshooting Article for Red Hat Satellite 6.x Installation/Upgrade/Update Issues.
Diagnostic Steps
-
Confirm whether the
rubygem-smart_proxy_pulppackage referred to in the error is installed on the Capsule server or not:# rpm -q rubygem-smart_proxy_pulpIf the package is not installed on the system, apply the steps in the Resolution section of the KB solution.
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.