-
-
Notifications
You must be signed in to change notification settings - Fork 39
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
Dependant container stops functioning if NordLynx restarts #78
Comments
I have had this particular problem for a long time, and I get around it by adding Healthchecks to the services that don't already have it, that depend on the vpn in the docker-compose file like this:
Then I run https://hub.docker.com/r/willfarrell/autoheal/ to restart unhealthy services automatically |
It sounds like this will only restart the containers, but like I mentioned my issue is that I have to recreate the container to get it to work. Will this workaround still fix that issue? |
Based on your description of the problem it sounds like the exact same problem I had, and the solution worked. |
Okay I got it up and from what I can tell its working. I stopped the NordLynx container, waited for the qBittorrent health check to take effect, restarted NordLynx, and then waited for autoheal to restart qBittorrent. Once I did that the webui was accessible like I hoped. Thanks for your help! |
I spoke too soon. If I recreate NordLynx then qBittorrent becomes unhealthy and autoheal gives this generic failure message
Is this the issue you were mentioning when the vpn auto-updates? Is this just expected behavior when one container depends on another one? |
Yes, it's as if docker no longer recognises it as the container others depend on if you edit docker-compose or update image. |
Hmm, well at least it fixed the issue for simple restarts or interruptions to the VPN container. |
This is not a NordLynx issue but a docker issue. What I've read is that there is no solution atm. People have created workarounds such as the autoheal suggested above but from what I'm understanding is that no definitive answer to this problem has been found. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Describe the bug
I'm new to routing a container through another one like this, but I have NordLynx set up and things work fine if I create it and the other container that depends on it at the same time. However if NordLynx ever restarts for any reason then the dependent container ceases to function. Even if I restart the dependent container it fails. I have to completely remove and recreate it in order for it to work again.
To Reproduce using docker-compose
Expected behavior
If NordLynx restarts then the dependent container should continue to function like normal or be recreated automatically.
Logs
Nothing in the logs that I can find.
The text was updated successfully, but these errors were encountered: