-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docker keeps saying that container is 'unhealty' #1582
Comments
Hmm. It will say that the container is unhealthy as long as the health check script is failing. That doesn't necessarily mean that it doesn't work, but it would be interesting to see what fails in the script. Thank you for a very well specified issue, it's nice to come to one of these compared to "it doesn't work" as some issues basically put it 😆 If you do |
First thanks for your response! Didn't have access to the machine for the last days, because of that the delay. Here is the output of
For me, it sounds simply like a problem with an unstable connection because there is packetloss? The Pi is wired, so in my private network the connection should be fine. I have a Pi-Hole-instance as local DNS, maybe this blocks some addresses? I set the DNS of the docker-container to "1.1.1.1" and "1.0.0.1" (both cloudflare-DNS-server) and restarted the container, maybe the problem is solved with that? |
Actually changing the DNS doesn't solve the issue. |
Could you try:
I'm interested to see if maybe there is a pattern for the ping fails (for example, maybe only the first is ever blocked ?) Note: your public IP (of 5 days ago) seems to be appearing in the first log message. You might want to redact it. |
Again sorry for the delayed answer. Ping from host
Ping from inside container
I also pinged for longer. No package loss from
Could the problem somewhere here? is there maybe one network to much? (Running Pihole and Transmission container on this host)
|
Hi @stempst0r, I was able to reproduce the issue manually on my container. I'm pretty sure it is related to the |
Thanks for your time! |
Hmm I cannot seem to reproduce it anymore. And the @stempst0r is the issue still present for you? |
And if it is, can you try running (in order until it works):
For me all of these work fine now, but the first one gave me the same 50% loss error last time I tried, even though 5 seconds hadn't elapsed... On my side nothing should have changed network wise. |
Here are my results:
Hope this info can help fix the bug. Tbh idk in which file I should change w 5 to w 10 so I could fix it myself. |
Ok, with your tips I was able to fix it for me. Did the following: I edited the healthcheck.sh script inside the container /etc/scripts/healtcheck.sh. Changed line 14 from Afterwards I restared the container via Don't know if this value should be changed globally? Seems like this issue only exists with VPNUnlimited as provider? Anyway thanks for all the effort. I'll close the issue with this comment :) |
I am using PIA, and I still had (at some point) the same error as you had. The timeout is just there so that we don't wait indefinitely for the ping. Bumping its duration should have no incidence on the functioning of the container and the ability to say that the connection has dropped. Note that if you ever use a new container (after a new |
I'm running the container on a raspberry pi 2 with hyperiotos.
Everything is running fine I guess, but docker says the container is unhealty.
I also checked if the VPN is running. Indeed with
curl ifconfig.io
from inside the container I get another IP than from outside the container, so VPN is working.docker-compose
Logs
Host system:
$ uname -a Linux black-pearl 5.4.72-v7+ #1356 SMP Thu Oct 22 13:56:54 BST 2020 armv7l GNU/Linux
Hope I provided everything needed, thanks for the awsome container!
The text was updated successfully, but these errors were encountered: