Description
Hello,
I am getting the following error when trying to install collections:
bash-5.1$ ansible-galaxy collection install community.general -vvv
ansible-galaxy [core 2.15.12]
config file = None
configured module search path = ['/runner/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /usr/local/lib/python3.11/site-packages/ansible
ansible collection location = /runner/.ansible/collections:/usr/share/ansible/collections
executable location = /usr/local/bin/ansible-galaxy
python version = 3.11.10 (main, Sep 9 2024, 00:00:00) [GCC 11.5.0 20240719 (Red Hat 11.5.0-2)] (/usr/bin/python3.11)
jinja version = 3.1.4
libyaml = True
No config file found; using defaults
Starting galaxy collection install process
Found installed collection theforeman.foreman:4.2.0 at '/usr/share/ansible/collections/ansible_collections/theforeman/foreman'
Found installed collection ovirt.ovirt:3.2.0 at '/usr/share/ansible/collections/ansible_collections/ovirt/ovirt'
Found installed collection ansible.windows:2.5.0 at '/usr/share/ansible/collections/ansible_collections/ansible/windows'
Found installed collection kubevirt.core:2.1.0 at '/usr/share/ansible/collections/ansible_collections/kubevirt/core'
Found installed collection openstack.cloud:2.2.0 at '/usr/share/ansible/collections/ansible_collections/openstack/cloud'
Found installed collection vmware.vmware:1.5.0 at '/usr/share/ansible/collections/ansible_collections/vmware/vmware'
Found installed collection amazon.aws:8.2.1 at '/usr/share/ansible/collections/ansible_collections/amazon/aws'
[WARNING]: Collection google.cloud does not support Ansible version 2.15.12
Found installed collection google.cloud:1.4.1 at '/usr/share/ansible/collections/ansible_collections/google/cloud'
Found installed collection ansible.posix:1.6.0 at '/usr/share/ansible/collections/ansible_collections/ansible/posix'
Found installed collection redhatinsights.insights:1.3.0 at '/usr/share/ansible/collections/ansible_collections/redhatinsights/insights'
[WARNING]: Collection community.vmware does not support Ansible version 2.15.12
Found installed collection community.vmware:5.0.0 at '/usr/share/ansible/collections/ansible_collections/community/vmware'
Found installed collection azure.azcollection:2.7.0 at '/usr/share/ansible/collections/ansible_collections/azure/azcollection'
Found installed collection awx.awx:24.6.1 at '/usr/share/ansible/collections/ansible_collections/awx/awx'
Found installed collection kubernetes.core:5.0.0 at '/usr/share/ansible/collections/ansible_collections/kubernetes/core'
Process install dependency map
Opened /runner/.ansible/galaxy_token
[WARNING]: Skipping Galaxy server https://galaxy.ansible.com. Got an unexpected error when getting available versions of collection community.general: Unknown error when attempting to call Galaxy at 'https://galaxy.ansible.com/api/': <urlopen error [Errno 104] Connection reset by peer>. <urlopen error [Errno 104] Connection
reset by peer>
ERROR! Unknown error when attempting to call Galaxy at 'https://galaxy.ansible.com/api/': <urlopen error [Errno 104] Connection reset by peer>. <urlopen error [Errno 104] Connection reset by peer>
bash-5.1$
bash-5.1$ ansible --version
ansible [core 2.15.12]
config file = None
configured module search path = ['/runner/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /usr/local/lib/python3.11/site-packages/ansible
ansible collection location = /runner/.ansible/collections:/usr/share/ansible/collections
executable location = /usr/local/bin/ansible
python version = 3.11.10 (main, Sep 9 2024, 00:00:00) [GCC 11.5.0 20240719 (Red Hat 11.5.0-2)] (/usr/bin/python3.11)
jinja version = 3.1.4
libyaml = True
bash-5.1$
Port 443 is opened in our firewall:
bash-5.1$ curl -sv https://galaxy.ansible.com/api/
- Trying 104.26.1.234:443...
- Connected to galaxy.ansible.com (104.26.1.234) port 443 (#0)
- ALPN, offering h2
- ALPN, offering http/1.1
- CAfile: /etc/pki/tls/certs/ca-bundle.crt
- TLSv1.0 (OUT), TLS header, Certificate Status (22):
- TLSv1.3 (OUT), TLS handshake, Client hello (1):
- OpenSSL SSL_connect: Connection reset by peer in connection to galaxy.ansible.com:443
- Closing connection 0
Thank you in advance