Problem:
Fresh installation of foreman. Can’t sync rhel7 repos. We get 502 error.
Foreman and Proxy versions:
2.3
Foreman and Proxy plugin versions:
Distribution and version:
CentOS 7
Other relevant data:
Log message:
Errors:
Error message: the server returns an error
HTTP status code: 502
Response headers: {“date”=>“Thu, 25 Feb 2021 11:16:09 GMT”, “server”=>“Apache”, “content-length”=>“445”, “connection”=>“close”, “content-type”=>“text/html; charset=iso-8859-1”}
Response body:
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