Closed DmitryShonin closed 2 years ago
@DmitryShonin thank you for the detailed report.
This does not look like a bug in the docker-driver, but rather an issue on your actual Loki server.
May 06 09:25:47 <hostname> dockerd[3292252]: time="2022-05-06T09:25:47Z" level=info msg="level=warn ts=2022-05-06T09:25:47.10806212Z caller=client.go:349 container_id=469032707cb0a41032c5518fe28d99d1a95f8f26df2a8b3dcc70ddaa0c6e15ad component=client host=loki:3100 msg=\"error sending batch, will retry\" status=-1 error=\"Post \\\"http://loki:3100/loki/api/v1/push\\\": dial tcp: lookup loki on 127.0.0.53:53: server misbehaving\"" plugin=f40de8c090ec1e24797af18a8145f39d652f19fe423fa54a5e9f4da709aef76f
This server misbehaving
error message is likely the source of the trouble. This is happening likely in Docker or lower in your OS's resolver. You should investigate why that is the case.
https://stackoverflow.com/questions/28332845/docker-network-issue-server-misbehaving
This might give you a headstart.
I'm closing this since I see no evidence of an actual bug in Loki, but please reopen if you find evidence to the contrary.
Hi, @dannykopping thank you for clarification. Although worth to notice that same setup but source container is on the separate machine reaching Loki instance via 192.168.xxx.xxx with no issues.
Describe the bug Docker compose setup with log driver loki
not able to send logs to Loki however both located in the same docker network on the same host.
To Reproduce Steps to reproduce the behavior:
Expected behavior Logs from container sending to loki instance
Environment:
Virtual Machine Linux dev.va.buildvm.prostream.ru 5.4.0-99-generic #112-Ubuntu x86_64
Screenshots, Promtail config, or terminal output
May 06 09:25:47 <hostname> dockerd[3292252]: time="2022-05-06T09:25:47Z" level=info msg="level=warn ts=2022-05-06T09:25:47.10806212Z caller=client.go:349 container_id=469032707cb0a41032c5518fe28d99d1a95f8f26df2a8b3dcc70ddaa0c6e15ad component=client host=loki:3100 msg=\"error sending batch, will retry\" status=-1 error=\"Post \\\"http://loki:3100/loki/api/v1/push\\\": dial tcp: lookup loki on 127.0.0.53:53: server misbehaving\"" plugin=f40de8c090ec1e24797af18a8145f39d652f19fe423fa54a5e9f4da709aef76f
PING loki (172.19.0.4) 56(84) bytes of data. 64 bytes from loki.default_test_net (172.19.0.4): icmp_seq=1 ttl=64 time=0.140 ms 64 bytes from loki.default_test_net (172.19.0.4): icmp_seq=2 ttl=64 time=0.096 ms 64 bytes from loki.default_test_net (172.19.0.4): icmp_seq=3 ttl=64 time=0.086 ms 64 bytes from loki.default_test_net (172.19.0.4): icmp_seq=4 ttl=64 time=0.080 ms 64 bytes from loki.default_test_net (172.19.0.4): icmp_seq=5 ttl=64 time=0.083 ms 64 bytes from loki.default_test_net (172.19.0.4): icmp_seq=6 ttl=64 time=0.083 ms 64 bytes from loki.default_test_net (172.19.0.4): icmp_seq=7 ttl=64 time=0.091 ms 64 bytes from loki.default_test_net (172.19.0.4): icmp_seq=8 ttl=64 time=0.098 ms 64 bytes from loki.default_test_net (172.19.0.4): icmp_seq=9 ttl=64 time=0.080 ms 64 bytes from loki.default_test_net (172.19.0.4): icmp_seq=10 ttl=64 time=0.079 ms 64 bytes from loki.default_test_net (172.19.0.4): icmp_seq=11 ttl=64 time=0.080 ms
Not sure if this is kind of loki's-docker-driver bug itself but not docker daemon, but anyways any help / suggestions would be great. Thank you in advance.