-
Notifications
You must be signed in to change notification settings - Fork 58
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
Container stops with "API response: fatal error" but healthcheck says healthy #128
Comments
Thats an error from the port forwarding script. To keep the forwarded port active, an api request gets made every 15 mins and it looks like its timing out for some reason. If the healthcheck is still passing then the vpn connection itself would still be active, but port forwarding would no longer work. |
Hmm, is there a way to react to this? For my use case the container is broken in this state. |
You might be able to catch it via the healthcheck if you test to see if Another way would be to set The port forwarding script retires several times before dying, so simply restarting the script probably won't fix any issues. I think I've only seen it die when the vpn endpoint itself has stopped responding. Issue #69 might have a bit more info. |
Ok, so I changed my healthcheck to:
And added a "docker autoheal" container (https://github.com/willfarrell/docker-autoheal). |
Bear in mind that other containers sharing the network might also need to be restarted at the same time. If the vpn container is stopped, then I think Docker brings down the shared network stack with it, leaving the other containers networkless. When it gets re-created the other containers might remain detatched from any networking and need to be restarted to regain network access. |
The container stops working after some days with this message:
But the healthcheck for some reason says the container is healthy.
My healthcheck from the docker-compose file:
The text was updated successfully, but these errors were encountered: