# ansible-galaxy server connection error

**URL:** <https://forum.ansible.com/t/ansible-galaxy-server-connection-error/43487>\
**Category:** Get Help\
**Tags:** vmware, galaxy-ng\
**Created:** [June 20, 2025, 3:12am UTC](https://forum.ansible.com/t/ansible-galaxy-server-connection-error/43487 "2025-06-20T03:12:44Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![jaquayla](https://avatars.discourse-cdn.com/v4/letter/j/919ad9/32.png) [@jaquayla](https://forum.ansible.com/u/jaquayla)\
**Post date:** [June 20, 2025, 3:12am UTC](https://forum.ansible.com/t/ansible-galaxy-server-connection-error/43487/1 "2025-06-20T03:12:44Z")

</div>

```auto
[root@user ansible_quickstart]# ansible-galaxy collection install community.vmware
Starting galaxy collection install process
Process install dependency map
[WARNING]: Skipping Galaxy server https://galaxy.ansible.com. Got an unexpected error when getting available versions of collection community.vmware:
Unknown error when attempting to call Galaxy at 'https://galaxy.ansible.com/api/': <urlopen error [Errno -2] Name or service not known>. <urlopen error
[Errno -2] Name or service not known>
ERROR! Unknown error when attempting to call Galaxy at 'https://galaxy.ansible.com/api/': <urlopen error [Errno -2] Name or service not known>. <urlopen erro r [Errno -2] Name or service not known>

```

---

<div class="post-metadata">

**Author:** ![Denney-tech](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/denney-tech/32/1556_2.png) [@Denney-tech](https://forum.ansible.com/u/Denney-tech)\
**Post date:** [June 20, 2025, 3:12pm UTC](https://forum.ansible.com/t/ansible-galaxy-server-connection-error/43487/2 "2025-06-20T15:12:53Z")

</div>

“Name or service not known” suggests that DNS is not resolvable for [galaxy.ansible.com](http://galaxy.ansible.com).

---

<div class="post-metadata">

**Author:** ![mariolenz](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/mariolenz/32/108_2.png) [@mariolenz](https://forum.ansible.com/u/mariolenz)\
**Post date:** [June 20, 2025, 3:46pm UTC](https://forum.ansible.com/t/ansible-galaxy-server-connection-error/43487/3 "2025-06-20T15:46:42Z")

</div>

Sounds like a private network with no direct internet access to me. Otherwise, [galaxy.ansible.com](http://galaxy.ansible.com) should be resolvable.

Or your DNS servers filter [galaxy.ansible.com](http://galaxy.ansible.com) for whatever reason.

---

<div class="post-metadata">

**Author:** ![jaquayla](https://avatars.discourse-cdn.com/v4/letter/j/919ad9/32.png) [@jaquayla](https://forum.ansible.com/u/jaquayla)\
**Post date:** [June 23, 2025, 7:29pm UTC](https://forum.ansible.com/t/ansible-galaxy-server-connection-error/43487/4 "2025-06-23T19:29:50Z")

</div>

Thank you, this was the issue. Just needed confirmation that I was on the right path to fixing this error.

---

<div class="post-metadata">

**Author:** ![jaquayla](https://avatars.discourse-cdn.com/v4/letter/j/919ad9/32.png) [@jaquayla](https://forum.ansible.com/u/jaquayla)\
**Post date:** [June 23, 2025, 7:30pm UTC](https://forum.ansible.com/t/ansible-galaxy-server-connection-error/43487/5 "2025-06-23T19:30:42Z")

</div>

Thank you, this was the issue. Needed confirmation that I was on the right path to fixing this error.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/ansible/original/1X/1882d9a01da5d8996a862359b0913cc568a39b84.svg) [@system](https://forum.ansible.com/u/system)\
**Post date:** [July 23, 2025, 7:31pm UTC](https://forum.ansible.com/t/ansible-galaxy-server-connection-error/43487/6 "2025-07-23T19:31:19Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
