question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[DEBIAN Base] Possibly Fix Random Down, DNS Timeout, EAGAIN, EAI_AGAIN

See original GitHub issue

If you are experiencing such issues, it is worth to try this debian base docker image, and let me know whether it is solved. Thank you!

Docker Image

uptime-kuma:1.5.3-debian

Story:

There were some Uptime Kuma users who were facing weird connectivity problems which I cannot explain. #114 #274 #220

Recently, one of our contributions @chakflying found out that it may be related to Alpine Docker which Uptime Kuma is based on it. https://github.com/louislam/uptime-kuma/issues/294#issuecomment-909353979

https://github.com/gliderlabs/docker-alpine/issues/255

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:19 (8 by maintainers)

github_iconTop GitHub Comments

7reactions
oviziicommented, Sep 1, 2021

I did resolve it successfully though by ensuring kuma was going directly to my DNS server by setting DNS on the container instead of requests going through the docker gateway.

Just in case someone else wants to try this, I manually added these dns servers to uptime-kuma’s docker-compose.yml file and my response times have also gone down.

    dns:
      - 1.1.1.1
      - 9.9.9.9
      - 8.8.8.8

2reactions
louislamcommented, Sep 6, 2021

Thank you for you guys’ reports. Combining the reports here and the similar reports from the Internet, I am pretty sure Alpine Linux is having some kind of dns problem that they are not going to fix.

Plus, armv7 error in Alpine Linux >= 3.13, 3.14 (#41), I am going to fade out Alpine Linux in the next release.

If you are a developer in any other projects and to future me, my advice is that you should keep away from Alpine Linux. Imagine that your application need to call payment gateway API such as Paypal and it throws EAI_AGAIN randomly, that could be a disaster.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Solving DNS lookup failures in Kubernetes - Findmypast Tech
Our journey along the Kuberentes (K8s) road continues with the story of how we diagnosed and solved random, intermittent DNS lookup failures ...
Read more >
What's the cause of the error 'getaddrinfo EAI_AGAIN'?
EAI_AGAIN is a DNS lookup timed out error, means it is a network connectivity error or proxy related error.
Read more >
Understand and troubleshoot partial DNS failure - AWS
In this case, some clients might experience partial DNS failures, if the resolver tries to resolve the domain using the wrong name server....
Read more >
How to Troubleshoot DNS Errors (Timeouts, Codes & More)
Like troubleshooting anything, it is best to start with the item(s) that are easiest to review and check and then move down the...
Read more >
(CVE-2013-7423) getaddrinfo() writes DNS queries to random ...
The Go issue thread suggests that it's likely related to some kind of socket caching going on in glibc's resolver; if so, this...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found