Closed rogerfar closed 4 years ago
more likely this is an issue with the vpn provider..you could add a dns check and mark container unhealthy and have it auto-restart when this happens.
But OpenVPN isn't connected to anything at that point, I don't see how that could be an issue?
The container reports itself already as unhealthly at that point.
Sorry, you wrote that after a few days you cannot connect, right? So, it will connect and work fine for a while and then stop..and then it cannot reconnect? so for some reason you are being disconnected and this is causing some issue with openvpn it seems. A more deeper look into logs and debugging openvpn sound like what is necessary, you can see if you can enable debug logging or such and analyse the logs next time this happens. It seems you are running the ubuntu release, perhaps try this with the alpine image and see if the same things occurs? Perhaps the openvpn versions needs updating or such, in which case it would be an issue with the image, otherwise it's more openvpn related and not much we can do (except give advice perhaps)
I've been monitoring it for a bit now, installed the dig tools just in case, but so far I haven't had a freeze anymore.
One change I made was disable Ipv6 on the host completely, could be that throws things off.
I added DNS parameters to my docker-compose.yaml because I am having issues with OpenVPN not able to connect after a few days anymore:
My config has hardcoded DNS in it:
When I start the container everything works fine, remote access is available, torrents work and when I remote in the shell I can do a DNS lookups.
But after a few days it stops, it's hard to pinpoint when exactly but usually it's about 3-4 days. Remote access still works, I can shell in the container, but DNS seems to have stopped.
When I do something simple like
ping google.com
it can't resolve the hostname.I'm running docker on Windows, this my docker-compose.yaml:
What would be the way to troubleshoot this issue?