Issues Syncing Redhat yum repositories

first query came back

[root@foreman /]# time curl -vv “https://foreman.btecau.com/pulp/api/v3/content/rpm/packages/?limit=2000” --cert /etc/pki/katello/certs/pulp-client.crt --key /etc/pki/katello/private/pulp-client.key

  • About to connect() to foreman.btecau.com port 443 (#0)
  • Trying 192.168.0.85…
  • Connected to foreman.btecau.com (192.168.0.85) port 443 (#0)
  • Initializing NSS with certpath: sql:/etc/pki/nssdb
  • CAfile: /etc/pki/tls/certs/ca-bundle.crt
    CApath: none
  • NSS: client certificate from file
  • subject: CN=admin,OU=NODES,O=PULP,ST=North Carolina,C=US
  • start date: Jan 28 07:42:55 2021 GMT
  • expire date: Jan 18 07:42:55 2038 GMT
  • common name: admin
  • issuer: CN=foreman.btecau.com,OU=SomeOrgUnit,O=Katello,L=Raleigh,ST=North Carolina,C=US
  • SSL connection using TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
  • Server certificate:
  • subject: CN=foreman.btecau.com,OU=SomeOrgUnit,O=Katello,ST=North Carolina,C=US
  • start date: Jan 28 07:42:44 2021 GMT
  • expire date: Jan 18 07:42:46 2038 GMT
  • common name: foreman.btecau.com
  • issuer: CN=foreman.btecau.com,OU=SomeOrgUnit,O=Katello,L=Raleigh,ST=North Carolina,C=US

GET /pulp/api/v3/content/rpm/packages/?limit=2000 HTTP/1.1
User-Agent: curl/7.29.0
Host: foreman.btecau.com
Accept: /

< HTTP/1.1 502 Proxy Error
< Date: Thu, 04 Feb 2021 15:27:20 GMT
< Server: Apache
< Content-Length: 445
< Content-Type: text/html; charset=iso-8859-1
<

502 Proxy Error

Proxy Error

The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request GET /pulp/api/v3/content/rpm/packages/.

Reason: Error reading from remote server

* Connection #0 to host foreman.btecau.com left intact

real 0m31.003s
user 0m0.159s
sys 0m0.091s

Second command filled the window with text i have only captured some of it as below
the last part was as follows

itialize hpet timer before irq is registered (Pratyush Anand) [1299001]\n- [x86] Add support for missing Kabylake Sunrise Point PCH (David Arcari) [1379401]\n- [x86] pci: vmd: Request userspace control of PCIe hotplug indicators (Myron Stowe) [1380181]\n- [pci] pciehp: Allow exclusive userspace control of indicators (Myron Stowe) [1380181]\n- [acpi] acpica: Fix for a Store->ArgX when ArgX contains a reference to a field (Lenny Szubowicz) [1330897]\n- [misc] cxl: Flush PSL cache before resetting the adapter (Steve Best) [1383478]\n- [scsi] ibmvfc: Fix I/O hang when port is not mapped (Steve Best) [1378001]\n- [netdrv] xen-netfront: avoid packet loss when ethernet header crosses page boundary (Vitaly Kuznetsov) [1348581]\n- [powerpc] ppc64: Fix incorrect return value from __copy_tofrom_user (Steve Best) [1387244]\n- [powerpc] pseries: use pci_host_bridge.release_fn() to kfree(phb) (Steve Best) [1385635]\n- [powerpc] pseries: Fix stack corruption in htpe code (Steve Best) [1384099]\n- [powerpc] eeh: Fix stale cached primary bus (Steve Best) [1383281]\n- [infiniband] ib/ipoib: move back IB LL address into the hard header (Jonathan Toppins) [1378656]“],[“Rafael Aquini aquini@redhat.com [3.10.0-517.el7]”,1477915201,”- [fs] fanotify: fix list corruption in fanotify_get_response() (Miklos Szeredi) [1362421]\n-* transfer closed with 146931790 bytes remaining to read

  • Closing connection 0
    curl: (18) transfer closed with 146931790 bytes remaining to read
    [fs] fsnotify: add a way to stop queueing events on group shutdown (Miklos Szeredi) [1362421]\n- [fs] dlm: Remove lock_sock to avoid scheduling while atomic (Robert S Peterson) [1377391]\n- [fs] sunrpc: move NO_CRKEY_TIMEOUT to the auth->au_flags (Dave Wysochanski) [1384666]\n- [fs] rbd: don’t retry watch reregistration if header object is gone (Ilya Dryomov) [1378186]\n- [fs] rbd: don’t wait for the lock forever if blacklisted (Ilya Dryomov) [1378186]\n- [fs] rbd: lock_on_read map option (Ilya Dryomov) [1378186]\n- [fs] ovl: during copy up, switch to mounter’s creds e
    real 0m32.360s
    user 0m3.875s
    sys 0m1.597s
    [root@foreman /]#