Any capsule sync fails with "Max retries exceeded with url" error

Solution Verified - Updated

Environment

Red Hat Satellite or Proxy 6

Issue

Any capsule sync fails with error "Max retries exceeded with url".

Resolution

Check if firewall or some permanent networking problem does not block https traffic (port 443) between the capsule and Satellite.

Check if there is no http(s) proxy defined on the capsule - output of command

env | grep proxy

on capsule should be emtpy.

For more KB articles/solutions related to Red Hat Satellite 6.x Capsule Sync Issues, please refer to the Consolidated Troubleshooting Article for Red Hat Satellite 6.x Capsule Sync Issues

Root Cause

There has to be some connectivity problem from Capsule to Satellite's Apache https server. That could be either due to TCP connectivity problem, or some http proxy configured on the capsule.

Diagnostic Steps

Any sync ends with below error:

  {"errors"=>
             [{"error_id"=>"download.unit",
               "details"=>
                {"url"=>
                  "https://satellite.example.com/pulp/nodes/https/repos/MyOrg-MyRepo/content/rpm/glibc-debuginfo-common/2.12/1.132.el6_5.2/x86_64/785f0e6409e63f5574015a6af3bb435c5837839820b55556d81f6a4feb4d21cb/glibc-debuginfo-common-2.12-1.132.el6_5.2.x86_64.rpm",
                 "message"=>
                  "HTTPSConnectionPool(host='satellite.example.com', port=443): Max retries exceeded with url: /pulp/nodes/https/repos/MyOrg-MyRepo/content/rpm/glibc-debuginfo-common/2.12/1.132.el6_5.2/x86_64/785f0e6409e63f5574015a6af3bb435c5837839820b55556d81f6a4feb4d21cb/glibc-debuginfo-common-2.12-1.132.el6_5.2.x86_64.rpm (Caused by <class 'httplib.BadStatusLine'>: )",
                 "repo_id"=>
                  "MyOrg-MyRepo"}},
                ..
SBR
Product(s)
Components
Category

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.