No repositories available error while accessing the repositories on Red Hat Satellite WebUI.
Environment
- Red Hat Satellite 6.x
Issue
- Enabling repositories on Red Hat Satellite 6 is failing with error
No repositories available. - While enabling the repository on Satellite gives the below error in
/var/log/foreman/production.log:
Failed to open TCP connection to subscription.rhsm.redhat.com:443 (Connection refused - connect(2) for "subscription.rhsm.redhat.com" port 443)
Resolution
-
Update Satellite with the missing proxy details:
-
Since Sat6.7, use
hammer http-proxy createcommand. See documentation for more. -
After configuring proxy on the Red Hat Satellite Server, configure the http_proxy created above to connect to Red Hat CDN. See documentation for more.
-
For Sat6.6 or older, set or update the proxy via:
-
# satellite-installer --scenario satellite --katello-proxy-url=http://myproxy.example.com --katello-proxy-port=8080
-
Once the proxy is properly set, refresh the manifest :
- On Satellite WebUI ->
Content->Subscriptions->Manage Manifest->Refresh
- On Satellite WebUI ->
-
Another reason can be future dated subscriptions in the manifest. Check the Start Date for the subscriptions in Satellite WebUI -> Content -> Subscriptions to see if the subscriptions are future dated.
For more KB articles/solutions related to Red Hat Satellite 6.x Repository Issues, please refer to the Red Hat Satellite Consolidated Troubleshooting Article for Red Hat Satellite 6.x Repository Issues.
Root Cause
-
The satellite server was unable to connect to Red Hat network to retrieve repositories as the proxy settings were not updated on Satellite server.
-
The repositories were not being enabled due to future dated subscriptions in the manifest which meant the subscriptions were not active yet.
Diagnostic Steps
- Check the
/var/log/foreman/production.logfor below errors:
2019-02-13T12:18:55 [I|app|83e01] Proxying request to subscription.rhsm.redhat.com via
2019-02-13T12:18:55 [E|app|83e01] Errno::ECONNREFUSED: Failed to open TCP connection to subscription.rhsm.redhat.com:443 (Connection refused - connect(2) for "subscription.rhsm.redhat.com" port 443)
2019-02-13T12:18:55 [I|app|83e01] Completed 500 Internal Server Error in 90ms (Views: 0.5ms | ActiveRecord: 4.7ms)
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.