Closed Hadatko closed 1 year ago
Please share the log output from the container.
Actually i tried reboot container and it is unhealty also without the warning above:
And failure count is increasing
I see that you are running healtcheck on different port than it is defined in minidlna enviroment variable.
curl --silent --fail 127.0.0.1:8200 || exit 1
IS this the reason for it?
Yes, that must be it. But that's not something I can modify at build time, in the image. You must override the health check at runtime, in Portainer or docker-compose, or whatever you use.
You cannot set Healtcheck to something like this? Just thinking if we can solve it easily ;)
HEALTHCHECK --interval=10s --timeout=10s --retries=6 CMD \
sh -c 'test -n "$MINIDLNA_PORT" || MINIDLNA_PORT=8200; \
curl --silent --fail "http://127.0.0.1:$MINIDLNA_PORT" || exit 1'
I see this in image:
But this in container using newer image:
I will try changes locally and see
It should work as expected:
Hi finally it is working. Not sure where was the issue, but minidlna is now using correct Healthcheck updated command (maybe i had to recreate minidlna, or do update on stack context and not container context...)
Tahnk you for helping and solving the issue ;)
Hello, thank you for this container i am trying today. I am getting this warning/error. Are we able to solve it somehow?
I don't know if this is the rootcouse of the unhealty state of container but until this message there wasn't unhealty state: