While syncing centos 7 os repo below error message is shown if download policy is “Immediate”. Sync is success if the policy is “On Demand”. There is a squid proxy between katello and internet (centos mirror)
Katello::Errors::Pulp3Error: [Errno 104] Connection reset by peer
The fix will be in 3.17 (pulp 3.6) but if this is your issue, you may be able to adjust the concurrency on your existing repos by hand to workaround this problem.
Set default value for download_concurrency to 1 in below files and restarted services through foremain-maintain command, but again hit the same error. /usr/lib/python3.6/site-packages/pulpcore/app/models/repository.py /usr/lib/python3.6/site-packages/pulpcore/app/migrations/0001_initial.py /etc/pulp/server.conf