nginx-prometheus-exporter icon indicating copy to clipboard operation
nginx-prometheus-exporter copied to clipboard

Enabling IPv6 causes Client.Timeout exceeded while awaiting headers since 0.9.0

Open J0WI opened this issue 4 years ago • 5 comments

Describe the bug

nginx-prometheus-exporter 0.9.0 fails frequently:

net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)

To reproduce Steps to reproduce the behavior:

  1. enable IPv6
  2. start a nginx and nginx-prometheus-exporter container
  3. run them for a while
  4. see error

Increasing the timeout or retries does not help.

Expected behavior It should work fine as with 0.7.0 or 0.8.0. I suspect that the base image changes introduced this regression. Maybe they can't handle IPv6 out of the box?

Your environment * Version of the Prometheus exporter: 0.9.0 * Version of Docker: 20.10.7 + IPv6 * Using NGINX

Aha! Link: https://nginx.aha.io/features/IC-293

J0WI avatar Jul 05 '21 17:07 J0WI

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] avatar Sep 04 '21 02:09 github-actions[bot]

bump

J0WI avatar Sep 08 '21 10:09 J0WI

I have a feeling this is related to IPv6 We have a future plan to properly support IPv6

brianehlert avatar Oct 06 '21 22:10 brianehlert

Are you IPv6 alone? or dual stack? And if dual stack is the IPv4 address being used.

brianehlert avatar Oct 06 '21 22:10 brianehlert

dual stack, both IPs used

J0WI avatar Oct 07 '21 08:10 J0WI