-
Notifications
You must be signed in to change notification settings - Fork 30.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The getaddrinfo EAI_AGAIN error again #15780
Comments
There is no single solution because it entirely depends on why the DNS server sends that back. Maybe it's overloaded, maybe the network is down, maybe it got the same reply from its upstream server. In general, the best you can do is wait a while and try again. Hope that helps. |
I found this same situation today. Its really a DNS issue. I workaround setting up the github.com ip address temporary on the hosts file . |
Im getting this on docker, not sure why. |
I am getting this error while trying to dockerizing my Node JS app |
If you're using an image derived from alpine linux, there are known issues with the musl dns resolver. If working in Kubernetes, the alpine dns issues create additional problems with (Edited: Added K8S detail) |
- related issue: nodejs/node#15780
Centos 7 Docker Fixed by restart docker: |
I am getting this error randomly after a day or so of running, can someone tell me how to avoid the dns server all together? |
getaddrinfo EAI_AGAIN https how to solve this issue while using Auth0 |
I got this error while trying to connect 2 postgres services in my docker compose file. The problem was that the incorrect host was being passed. Context:
In this example, the host name I should be passing to my postgres connection should be |
In your case, specify a custom network service.
See also: https://docs.docker.com/compose/networking/#specify-custom-networks But when you try to access the WWW internet and getting getaddrinfo EAI_AGAIN error... I think we should update the docker/containerd systemd service files under Linux. Like adding:
And/OR adding:
|
I am getting a similar issue, this time with minikube v1.27.0. There is one pod that can't resolve the hostname, while for others is resolved: |
I am getting a similar issue: |
I am having the same issue repeatedly and every time I have to restart docker using |
DNS issues could be result of musl's lack of dns over tcp for large/frequent queries https://bell-sw.com/blog/how-to-deal-with-alpine-dns-issues/ nodejs/node#15780 (comment) alpine 3.18 includes support for dns over tcp in musl
* Updates alpine 3.17 -> 3.18 * Main reason is to potentially fix DNS issues related to musl #88 * nodejs/node#15780 (comment) and https://bell-sw.com/blog/how-to-deal-with-alpine-dns-issues/ * Resolved in musl 1.2.4 * https://gitlab.alpinelinux.org/alpine/tsc/-/issues/43 * https://www.openwall.com/lists/musl/2023/05/02/1 * Bumps npm 9.1.2 -> 9.6.6 New/changed ENVs used by LSIO may require removing "stored" ENVs if using portainer
Following this node issue nodejs/node#15780 We tried to upgrade vault action to nodejs20 to avoid it
I‘m getting this on docker with docker-compose
Here's how I solved it, I created the etc/resolv.conf file in my local directory and mounted it into the container via volumes
You can customize the content of the file
|
There are lots of similar issues but not one stated clearly how this problem can be fixed.
In run bower install --allow-root when building a Docker image and every time I get errors like this one: bower morris.js#^0.5.1 EAI_AGAIN Request to https://registry.bower.io/packages/morrisjs failed: getaddrinfo EAI_AGAIN registry.bower.io:443
The bower package raising error can be any. Some people say that the problem relates the number of libuv threads but tweaking UA_THREADPOOL_SIZE environment variable did not help.
With few packages to install there are no issues, in my case I have about 20 packages to install and the error appears somewhere in the middle of the process.
As for now I have to use this "solution":
The text was updated successfully, but these errors were encountered: