n8n errors / Connectivity

getaddrinfo EAI_AGAIN

platform: n8n / category: Connectivity / code: EAI_AGAIN

Cause

DNS resolution returned a temporary failure, most often because n8n runs in an Alpine/musl Docker image whose DNS resolver is less resilient than glibc, or the container's DNS server is overwhelmed.

Fix

Add '--dns 8.8.8.8 --dns 1.1.1.1' to docker run (or 'dns:' in compose) to use reliable resolvers. If you build the image, switch from Alpine to a Debian/Ubuntu base. Enable 'Retry on Fail' as a stopgap; on n8n Cloud it is usually transient and re-running after ~2 minutes succeeds.

Source thread →

Part of the Automation Error Index — n8n errors: browse all.

Hitting an automation error we have not covered?

AutomateLab builds and debugs n8n, Make, and agent workflows as fixed-scope projects. If something is broken in production, tell us what you are seeing.

Describe the problem