Sync status not completing

Problem:
I am getting errors when attempting to synchronise some redhat repositories.

Foreman and Proxy versions:
2.3.2
Foreman and Proxy plugin versions:
katello

Distribution and version:
RHEL 7.8
Other relevant data:

Task canceledError message: the server returns an error
HTTP status code: 502
Response headers: {“date”=>“Wed, 27 Jan 2021 04:41:56 GMT”, “server”=>“Apache”, “content-length”=>“445”, “connection”=>“close”, “content-type”=>“text/html; charset=iso-8859-1”}
Response body:

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

additionally the repository with the issue seems to be https://cdn.redhat.com/content/dist/rhel/server/7/7Server/x86_64/os

This looks similar to another post. I suggested a workaround here: Issues Syncing Redhat yum repositories - #4 by Justin_Sherrill

1 Like