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
175 stars 93 forks source link

openvpn process autokilled #99

Closed hydkrash79 closed 3 years ago

hydkrash79 commented 3 years ago

Have recently re-setup my QNAP container station and portainer. I always use a docker compose script, so it make sit easy when I do these setups.

However, this time, am encountering a very weird issue where openvpn command is getting killed in the container and it will just hang there.

Logs as follows:

2021-07-08 11:38:09.428997 [info] VPN_ENABLED defined as 'yes', 2021-07-08 11:38:09.478876 [info] OpenVPN config file (ovpn extension) is located at /config/openvpn/sg-aes-128-cbc-udp-ip.ovpn, dos2unix: converting file /config/openvpn/sg-aes-128-cbc-udp-ip.ovpn to Unix format..., 2021-07-08 11:38:09.535998 [info] VPN remote line defined as '156.146.57.123 1198', 2021-07-08 11:38:09.588501 [info] VPN_REMOTE defined as '156.146.57.123', 2021-07-08 11:38:09.634449 [info] VPN_PORT defined as '1198', 2021-07-08 11:38:09.670781 [info] VPN_PROTOCOL defined as 'udp', 2021-07-08 11:38:09.708645 [info] VPN_DEVICE_TYPE defined as 'tun0', 2021-07-08 11:38:09.763672 [info] LAN_NETWORK defined as '192.168.10.0/24', 2021-07-08 11:38:09.801639 [info] NAME_SERVERS defined as '1.1.1.1,9.9.9.9', 2021-07-08 11:38:09.837380 [info] VPN_OPTIONS not defined (via -e VPN_OPTIONS), 2021-07-08 11:38:09.892784 [info] Adding 1.1.1.1 to resolv.conf, 2021-07-08 11:38:09.928737 [info] Adding 9.9.9.9 to resolv.conf, 2021-07-08 11:38:09.957955 [info] Starting OpenVPN..., Thu Jul 8 11:38:09 2021 WARNING: file 'credentials.conf' is group or others accessible, Thu Jul 8 11:38:09 2021 OpenVPN 2.4.7 x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [PKCS11] [MH/PKTINFO] [AEAD] built on Sep 5 2019, Thu Jul 8 11:38:09 2021 library versions: OpenSSL 1.1.1f 31 Mar 2020, LZO 2.10, Thu Jul 8 11:38:09 2021 TCP/UDP: Preserving recently used remote address: [AF_INET]156.146.57.123:1198, Thu Jul 8 11:38:09 2021 UDP link local: (not bound), Thu Jul 8 11:38:09 2021 UDP link remote: [AF_INET]156.146.57.123:1198, /etc/openvpn/start.sh: line 172: 90 Killed exec openvpn --config ${VPN_CONFIG}

hydkrash79 commented 3 years ago

Ok Figured this out. QNAP has a stupid daemon that is auto killing OpenVPN. If you've every installed or removed the QVPN service. You'll encounter this. Refer to this thread for steps. https://www.reddit.com/r/qnap/comments/gsa3tn/haugenetransmissionopenvpn/