Open bergpb opened 6 months ago
Yep i'm having the same problem
Same issue, same test and same results.
Same problem,
For time being I did create an image from the running container adjusting the health-check.
docker inspect --format '{{json .Config.Healthcheck }}' speedtest
{"Test":["CMD-SHELL","wget --no-verbose --tries=1 --spider http://localhost:${SPEEDTEST_PORT:=9798}/"],"Timeout":10000000000}
docker container commit --change='HEALTHCHECK --timeout=10s CMD wget --no-verbose --tries=1 --spider http://0.0.0.0:${SPEEDTEST_PORT:=9798}/' speedtest miguelndecarvalho/speedtest-exporter:latest
docker compose up -d
docker inspect --format '{{json .Config.Healthcheck }}' speedtest
{"Test":["CMD-SHELL","wget --no-verbose --tries=1 --spider http://0.0.0.0:${SPEEDTEST_PORT:=9798}/"],"Timeout":10000000000}
Hopefully your PR gets thru.
Regards, S.
For those running from docker-compose, healthcheck can also be overriden similar to https://github.com/MiguelNdeCarvalho/speedtest-exporter/issues/216#issuecomment-2211278303:
healthcheck:
test: "wget --no-verbose --tries=1 --spider http://0.0.0.0:9798/"
timeout: 10s
Hello, first thanks for this awesome project.
I was running this project for a while in my homelab and works fine, but the application starts to show a healthcheck error. I've tested with older images (until v3.5.0) and the healthcheck still failing.
Here the log output:
Docker environment info:
Using a custom healthcheck configuration pointing to 0.0.0.0 instead of localhost works fine:
Also, I've installed
curl
to check if this issue happens with it too, but looks like only happens withwget
command:If this is an issue that happens with other users too, I can open a PR changing the healthcheck address in Dockerfile.
Also can be similar to this one: #212