curl: (35) TCP connection reset by peer and 503 errors

Hi,

I’m trying to use AWX with Openstack and while running bootstrap as a adhoc command I’m getting curl: (35) TCP connection reset by peer and 503 errors but when I execute manually directly on the server everything works fine.

Any suggestion will be appreciated.

Regards,
Sammi

FYI,
yum -y install git curl autoconf gcc gcc-c++ nc python2 python2-devel openssl-devel libffi-devel libselinux-python
https://copr-be.cloud.fedoraproject.org/results/mrmeee/awx-dev/epel-7-x86_64/repodata/repomd.xml: [Errno 14] curl#35 - “TCP connection reset by peer”
Trying other mirror.
https://download.postgresql.org/pub/repos/yum/9.6/redhat/rhel-7-x86_64/repodata/repomd.xml: [Errno 14] curl#35 - “TCP connection reset by peer”
Trying other mirror.