# "Retry on Fail" not working for "getaddrinfo EAI\_AGAIN" failures?

**URL:** <https://community.n8n.io/t/retry-on-fail-not-working-for-getaddrinfo-eai-again-failures/46589>\
**Category:** Questions\
**Tags:** node, http-request\
**Created:** [May 23, 2024, 1:26pm UTC](https://community.n8n.io/t/retry-on-fail-not-working-for-getaddrinfo-eai-again-failures/46589 "2024-05-23T13:26:07Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![monkeemunk](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/monkeemunk/32/39672_2.png) [@monkeemunk](https://community.n8n.io/u/monkeemunk)\
**Post date:** [May 23, 2024, 1:26pm UTC](https://community.n8n.io/t/retry-on-fail-not-working-for-getaddrinfo-eai-again-failures/46589/1 "2024-05-23T13:26:07Z")

</div>

Does the “retry on fail” option not work to retry `getaddrinfo EAI_AGAIN` failures? I have selected 5 tries and 5000 ms in between tries, but the node is failing much sooner than it would take to retry 5 times with 5 seconds in between each try.

---

<div class="post-metadata">

**Author:** ![n8n](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/n8n/32/196425_2.png) [@n8n](https://community.n8n.io/u/n8n)\
**Post date:** [May 23, 2024, 1:26pm UTC](https://community.n8n.io/t/retry-on-fail-not-working-for-getaddrinfo-eai-again-failures/46589/2 "2024-05-23T13:26:08Z")

</div>

It looks like your topic is missing some important information. Could you provide the following if applicable.

- **n8n version:**
- **Database (default: SQLite):**
- **n8n EXECUTIONS\_PROCESS setting (default: own, main):**
- **Running n8n via (Docker, npm, n8n cloud, desktop app):**
- **Operating system:**

---

<div class="post-metadata">

**Author:** ![EmeraldHerald](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/emeraldherald/32/35355_2.png) [@EmeraldHerald](https://community.n8n.io/u/EmeraldHerald)\
**Post date:** [May 28, 2024, 4:12pm UTC](https://community.n8n.io/t/retry-on-fail-not-working-for-getaddrinfo-eai-again-failures/46589/3 "2024-05-28T16:12:07Z")

</div>

Hi @monkeemunk 👋 Welcome to the community 🍰

`EAI_AGAIN` isn’t an n8n-specific error but suggests a network problem instead. If you aren’t using n8n cloud and instead are self-hosting, is there any chance your NAS system restricts DNS lookups from docker containers or other network traffic? This also could have been a temporary problem with the name resolution in your network 🙇‍♂️

---

<div class="post-metadata">

**Author:** ![monkeemunk](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/monkeemunk/32/39672_2.png) [@monkeemunk](https://community.n8n.io/u/monkeemunk)\
**Post date:** [June 5, 2024, 10:01am UTC](https://community.n8n.io/t/retry-on-fail-not-working-for-getaddrinfo-eai-again-failures/46589/4 "2024-06-05T10:01:57Z")

</div>

I agree it is definitely a DNS issue and not n8n-specific; I’ve found that rebooting the Ubuntu server that my n8n docker container is running on helps to alleviate the errors. However, I would expect that this failure should be treated like all others in that the retry option should still apply; is that not the case?

---

<div class="post-metadata">

**Author:** ![EmeraldHerald](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/emeraldherald/32/35355_2.png) [@EmeraldHerald](https://community.n8n.io/u/EmeraldHerald)\
**Post date:** [June 6, 2024, 10:09am UTC](https://community.n8n.io/t/retry-on-fail-not-working-for-getaddrinfo-eai-again-failures/46589/5 "2024-06-06T10:09:46Z")

</div>

Hi @monkeemunk 👋 Retry can work with some nodes on network issues, but I’m not sure which node you’re using. There are other nodes that it won’t work as you expect on. 🙇‍♂️

Could you try to set Docker to use a different DNS server and see if this fixes it?

---

<div class="post-metadata">

**Author:** ![monkeemunk](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/monkeemunk/32/39672_2.png) [@monkeemunk](https://community.n8n.io/u/monkeemunk)\
**Post date:** [June 6, 2024, 11:49am UTC](https://community.n8n.io/t/retry-on-fail-not-working-for-getaddrinfo-eai-again-failures/46589/6 "2024-06-06T11:49:02Z")

</div>

Sorry for not including that information — I’m using the HTTP Request node.

I’ve configured the Ubuntu server to use a few different DNS servers (1.1.1.1, 9.9.9.9, 8.8.8.8) and the issue always seems to come back. Rebooting the server or leveraging the host file to prevent DNS lookups altogether seem to be the only two reliable workarounds so far.

---

<div class="post-metadata">

**Author:** ![EmeraldHerald](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/emeraldherald/32/35355_2.png) [@EmeraldHerald](https://community.n8n.io/u/EmeraldHerald)\
**Post date:** [June 6, 2024, 2:15pm UTC](https://community.n8n.io/t/retry-on-fail-not-working-for-getaddrinfo-eai-again-failures/46589/7 "2024-06-06T14:15:29Z")

</div>

Hi @monkeemunk 👋 Thanks for confirming, that’s odd 🤔 Can you let me know what env variables you’ve set?

---

<div class="post-metadata">

**Author:** ![monkeemunk](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/monkeemunk/32/39672_2.png) [@monkeemunk](https://community.n8n.io/u/monkeemunk)\
**Post date:** [June 9, 2024, 4:19am UTC](https://community.n8n.io/t/retry-on-fail-not-working-for-getaddrinfo-eai-again-failures/46589/8 "2024-06-09T04:19:42Z")

</div>

Are you asking about Ubuntu env variables? There are not any, aside from the default path variable.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/system/32/195824_2.png) [@system](https://community.n8n.io/u/system)\
**Post date:** [September 7, 2024, 4:20am UTC](https://community.n8n.io/t/retry-on-fail-not-working-for-getaddrinfo-eai-again-failures/46589/9 "2024-09-07T04:20:22Z")

</div>

Closed on September 7, 2024, 4:20am UTC

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