Replies: 2 comments 12 replies
-
It looks like the localhost FQDN part of the problem is a known issue with golang:
I can work around this with an additional line in my Dockerfile:
Though I'm still curious what is causing Kratos to attempt a localhost lookup every 30 seconds, in case anyone knows the answer to that. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Without logs / reproducible repo not possible to say. Could be anything from DB to DNS to ...
… On 15. Feb 2021, at 12:29, Jason Ertel ***@***.***> wrote:
It looks like the localhost FQDN part of the problem is a known issue with golang:
gliderlabs/docker-alpine#367
golang/go#32017.
I can work around this with an additional line in my Dockerfile:
RUN [ ! -e /etc/nsswitch.conf ] && echo 'hosts: files dns' > /etc/nsswitch.conf
Though I'm still curious what is causing Kratos to attempt a localhost lookup every 30 seconds, in case anyone knows the answer to that.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Beta Was this translation helpful? Give feedback.
12 replies
Answer selected by
vinckr
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This discussion is being posted for long-term preservation. It was originally discussed in the Ory Kratos Slack chat:
I'm seeing DNS lookups for localhost.. occuring roughly on 30 second intervals. I'm exec'd into the kratos container and it has localhost defined in /etc/hosts. Can anyone point me to why this is occurring or kratos scheduled jobs/cache timeouts that could explain this?
More details:
If I modify the dockerfile for Kratos to have an entrypoint of /bin/sh, and then apk add tcpdump there are no DNS lookups for "localhost..." If I then docker exec into the container in another terminal and startup kratos, immediately there's an outbound DNS lookup for that localhost.xxx.yyy name. It then repeats every 30 seconds. It's consistently reproducible.
The config file settings appear to not have an impact on this, as any URLs, hostnames I define in the config does not stop the "localhost." lookups.
Below is a tcpdump output (from within the container) starting right a couple minutes before I launched the kratos process inside the container. At 19:51:16 I started kratos in another terminal window, via docker exec. Immediately after that PTR request, there's a localhost.home.mypersonaldomain.com lookup. That repeats roughly every 30 seconds. If I then kill kratos in the second terminal window, the localhost lookups cease.
Beta Was this translation helpful? Give feedback.
All reactions