DyonR / docker-Jackettvpn

Docker container which runs a headless Jackett Server with an optional WireGuard or OpenVPN connection
https://hub.docker.com/r/dyonr/jackettvpn/
GNU General Public License v3.0
68 stars 32 forks source link

Exiting due to fatal error #33

Closed ra-pha closed 3 years ago

ra-pha commented 3 years ago

Hi,

First: I'm not the tech saviest guy on earth but I manage to get most things to work somehow. But here I can't get my head around what might be wrong. Might be sthg blatantly obvious, so bare with me please. And thank you for your work. It's highly appreciated.

I try to run the Docker container on my Synology NAS. I've set up the docker container as far as I can tell according to the instructions. I use an .ovpn file which works all right (tested it beforehand).

Screenshot with directory mappings

Screenshot 2020-10-25 at 17 02 17

Screenshot with env variables

Screenshot 2020-10-25 at 17 03 36

When starting the container I get this in the logs.

2020-10-25 15:57:44 stdout Sun Oct 25 15:57:44 2020 Exiting due to fatal error 2020-10-25 15:57:44 stdout Sun Oct 25 15:57:44 2020 ERROR: Cannot open TUN/TAP dev /dev/net/tun: No such file or directory (errno=2) 2020-10-25 15:57:44 stdout Sun Oct 25 15:57:44 2020 Incoming Data Channel: Cipher 'AES-256-GCM' initialized with 256 bit key 2020-10-25 15:57:44 stdout Sun Oct 25 15:57:44 2020 Outgoing Data Channel: Cipher 'AES-256-GCM' initialized with 256 bit key 2020-10-25 15:57:44 stdout Sun Oct 25 15:57:44 2020 Data Channel: using negotiated cipher 'AES-256-GCM' 2020-10-25 15:57:44 stdout Sun Oct 25 15:57:43 2020 [VPN Node Server 4096] Peer Connection Initiated with [AF_INET] 2020-10-25 15:57:44 stdout Sun Oct 25 15:57:43 2020 Control Channel: TLSv1.2, cipher TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384, 4096 bit RSA 2020-10-25 15:57:44 stdout Sun Oct 25 15:57:43 2020 WARNING: 'auth' is used inconsistently, local='auth SHA512', remote='auth [null-digest]' 2020-10-25 15:57:44 stdout Sun Oct 25 15:57:43 2020 WARNING: 'cipher' is used inconsistently, local='cipher AES-256-CBC', remote='cipher AES-256-GCM' 2020-10-25 15:57:43 stdout Sun Oct 25 15:57:43 2020 WARNING: 'link-mtu' is used inconsistently, local='link-mtu 1602', remote='link-mtu 1550' 2020-10-25 15:57:43 stdout Sun Oct 25 15:57:43 2020 VERIFY OK: depth=0, 2020-10-25 15:57:43 stdout Sun Oct 25 15:57:43 2020 VERIFY EKU OK 2020-10-25 15:57:43 stdout Sun Oct 25 15:57:43 2020 ++ Certificate has EKU (str) TLS Web Server Authentication, expects TLS Web Server Authentication 2020-10-25 15:57:43 stdout Sun Oct 25 15:57:43 2020 Validating certificate extended key usage 2020-10-25 15:57:43 stdout Sun Oct 25 15:57:43 2020 VERIFY KU OK 2020-10-25 15:57:43 stdout Sun Oct 25 15:57:43 2020 VERIFY OK: depth=1, 2020-10-25 15:57:43 stdout Sun Oct 25 15:57:43 2020 WARNING: this configuration may cache passwords in memory -- use the auth-nocache option to prevent this 2020-10-25 15:57:43 stdout Sun Oct 25 15:57:43 2020 UDP link remote: [AF_INET] 2020-10-25 15:57:43 stdout Sun Oct 25 15:57:43 2020 UDP link local: (not bound) 2020-10-25 15:57:43 stdout Sun Oct 25 15:57:43 2020 TCP/UDP: Preserving recently used remote address: [AF_INET] 2020-10-25 15:57:43 stdout Sun Oct 25 15:57:43 2020 Incoming Control Channel Authentication: Using 512 bit message hash 'SHA512' for HMAC authentication 2020-10-25 15:57:43 stdout Sun Oct 25 15:57:43 2020 Outgoing Control Channel Authentication: Using 512 bit message hash 'SHA512' for HMAC authentication 2020-10-25 15:57:43 stdout Sun Oct 25 15:57:43 2020 library versions: OpenSSL 1.1.1 11 Sep 2018, LZO 2.08 2020-10-25 15:57:43 stdout Sun Oct 25 15:57:43 2020 OpenVPN 2.4.4 x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [PKCS11] [MH/PKTINFO] [AEAD] built on May 14 2019 2020-10-25 15:57:43 stdout Sun Oct 25 15:57:43 2020 WARNING: file 'credentials.conf' is group or others accessible 2020-10-25 15:57:43 stdout 2020-10-25 15:57:43.429118 [INFO] Starting OpenVPN... 2020-10-25 15:57:43 stdout 2020-10-25 15:57:43.367779 [INFO] Adding 8.8.4.4 to resolv.conf 2020-10-25 15:57:43 stdout 2020-10-25 15:57:43.306576 [INFO] Adding 1.0.0.1 to resolv.conf 2020-10-25 15:57:43 stdout 2020-10-25 15:57:43.242471 [INFO] Adding 8.8.8.8 to resolv.conf 2020-10-25 15:57:43 stdout 2020-10-25 15:57:43.179349 [INFO] Adding 1.1.1.1 to resolv.conf 2020-10-25 15:57:43 stdout 2020-10-25 15:57:43.116583 [INFO] VPN_OPTIONS not defined (via -e VPN_OPTIONS) 2020-10-25 15:57:43 stdout 2020-10-25 15:57:43.055098 [WARNING] NAME_SERVERS not defined (via -e NAME_SERVERS), defaulting to CloudFlare and Google name servers 2020-10-25 15:57:42 stdout 2020-10-25 15:57:42.991746 [INFO] LAN_NETWORK defined as '192.168.0.0/24' 2020-10-25 15:57:42 stdout 2020-10-25 15:57:42.925105 [INFO] VPN_DEVICE_TYPE defined as 'tun0' 2020-10-25 15:57:42 stdout 2020-10-25 15:57:42.826940 [INFO] VPN_PROTOCOL defined as 'protocol' 2020-10-25 15:57:42 stdout 2020-10-25 15:57:42.688931 [INFO] VPN_PORT defined as 'port_number' 2020-10-25 15:57:42 stdout 2020-10-25 15:57:42.618787 [INFO] VPN_REMOTE defined as 'name_of_vpn' 2020-10-25 15:57:42 stdout 2020-10-25 15:57:42.539994 [INFO] VPN remote line defined as 'name_of_vpn_server' 2020-10-25 15:57:42 stdout dos2unix: converting file /config/openvpn/Name_of_ovpn_file.ovpn to Unix format... 2020-10-25 15:57:42 stdout 2020-10-25 15:57:42.353723 [INFO] OpenVPN config file is found at /config/openvpn/Name_of_ovpn_file.ovpn 2020-10-25 15:57:42 stdout 2020-10-25 15:57:42.281538 [WARNING] VPN_TYPE not set, defaulting to OpenVPN. 2020-10-25 15:57:42 stdout 2020-10-25 15:57:42.213771 [INFO] Disabling IPv6 in sysctl 2020-10-25 15:57:42 stdout 2020-10-25 15:57:42.155446 [INFO] DISABLE_IPV6 is set to '' 2020-10-25 15:57:42 stdout 2020-10-25 15:57:42.093856 [INFO] VPN_ENABLED defined as 'yes'

DyonR commented 3 years ago

I'm not familiar with Synology systems, but this error often indicates that you are not running the container in privileged mode. Please check if such an option exists at the general settings.

ra-pha commented 3 years ago

You are right, there is indeed such an option. And that makes it work. Thank you for your swift feedback and help.