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

Address family not supported by protocol

Open thib3113 opened this issue 1 year ago • 0 comments

Hello, sometimes, I got the error :

2023-08-01T10:26:49.276091265Z [2023-08-01T10:26:49Z INFO  prometheus_nut_exporter::http_server] Binding to endpoint: http://[::]:9995
2023-08-01T10:26:49.279367645Z [2023-08-01T10:26:49Z ERROR prometheus_nut_exporter::http_server] Server failed to bind to endpoint: error creating server listener: Address family not supported by protocol (os error 97)

and the server doesn't answer to calls

but, it's hard to debug, because it doesn't appear each times .

So, for the moment I add an healthcheck : wget http://127.0.0.1:9995 -O /dev/null -q . Not the best solution, but it will force the container to automatically reboot if stuck on "failed to bind"

thib3113 avatar Aug 01 '23 21:08 thib3113