MarkusMcNugen / docker-qBittorrentvpn

Docker container which runs a headless qBittorrent client with WebUI and optional OpenVPN
https://hub.docker.com/r/markusmcnugen/qbittorrentvpn/
GNU General Public License v3.0
171 stars 92 forks source link

VPN works for few minutes and then fails with "handshake failed" #32

Open Dinth opened 4 years ago

Dinth commented 4 years ago

After running docker container, VPN connects and works fine few few minutes - sometimes 15mins, sometimes 60mins and then disconnects and fails to connect again. Restarting the container resets the cycle, VPN works again for few minutes and then gets disconnected. OVPN file im using has been automatically exported from PIA with a couple of modifications and i̶t̶ ̶w̶o̶r̶k̶s̶ ̶p̶e̶r̶f̶e̶c̶t̶l̶y̶ ̶f̶i̶n̶e̶ ̶w̶i̶t̶h̶ ̶a̶ ̶s̶i̶m̶i̶l̶a̶r̶ ̶d̶o̶c̶k̶e̶r̶ ̶c̶o̶n̶t̶a̶i̶n̶e̶r̶ ̶-̶ ̶j̶a̶c̶k̶e̶t̶v̶p̶n̶.̶ [worked perfectly fine until recently, yesterday when i was restarting qBittorrentvpn, jackettvpn also caught same behavior]

Wed Oct 16 18:11:29 2019 [6acb1a23e1777dd84ba3e0c77bdab1a0] Inactivity timeout (--ping-restart), restarting
Wed Oct 16 18:11:29 2019 SIGUSR1[soft,ping-restart] received, process restarting

...

Wed Oct 16 18:34:09 2019 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
Wed Oct 16 18:34:09 2019 TLS Error: TLS handshake failed
Wed Oct 16 18:34:09 2019 SIGUSR1[soft,tls-error] received, process restarting
Wed Oct 16 18:39:09 2019 TCP/UDP: Preserving recently used remote address: [AF_INET]188.240.220.26:1198
Wed Oct 16 18:39:09 2019 UDP link local: (not bound)
Wed Oct 16 18:39:09 2019 UDP link remote: [AF_INET]188.240.220.26:1198
Wed Oct 16 18:40:09 2019 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
Wed Oct 16 18:40:09 2019 TLS Error: TLS handshake failed
Wed Oct 16 18:40:09 2019 SIGUSR1[soft,tls-error] received, process restarting
Wed Oct 16 18:45:09 2019 TCP/UDP: Preserving recently used remote address: [AF_INET]188.240.220.26:1198
Wed Oct 16 18:45:09 2019 UDP link local: (not bound)
Wed Oct 16 18:45:09 2019 UDP link remote: [AF_INET]188.240.220.26:1198
Wed Oct 16 18:46:09 2019 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
Wed Oct 16 18:46:09 2019 TLS Error: TLS handshake failed
Wed Oct 16 18:46:09 2019 SIGUSR1[soft,tls-error] received, process restarting
Dinth commented 4 years ago

It seems that installing tzdata in the container at least partially fixes the issue.

WestEndCompute commented 3 years ago

I was having similar issues and was able to resolve them by updating my ovpn config files. If you are using PIA, I found them here and downloaded the default files. Replaced the config file and everything works now. Hope this helps.