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

ERROR: Cannot open TUN/TAP dev /dev/net/tun: No such file or directory (errno=2) #69

Open Caedendi opened 4 years ago

Caedendi commented 4 years ago

Hi there. I'm getting an error for which I can't find the solution. This is my first attempt at getting a docker container to run, so please forgive me if I don't understand the more advanced stuff.

Synology DS920+ Docker 18.09.0-0513

using the GUI from Synology DSM

I've found this for TUN.SH, but it's for a differnt image. And shouldn't this be included in the image anyways?

Thanks for all and any advice guys.

Logs:

markusmcnugen-qbittorrentvpn

ragnarwessels commented 4 years ago

This appears to be a dupe of issue #53. I'll comment there with my situation.

datestreamcontent
2020-08-19 16:02:13stdoutWed Aug 19 16:02:13 2020 Exiting due to fatal error
2020-08-19 16:02:13stdoutWed Aug 19 16:02:13 2020 ERROR: Cannot open TUN/TAP dev /dev/net/tun: No such file or directory (errno=2)
2020-08-19 16:02:13stdoutWed Aug 19 16:02:13 2020 ROUTE6: default_gateway=UNDEF
2020-08-19 16:02:13stdoutWed Aug 19 16:02:13 2020 GDG6: remote_host_ipv6=n/a
2020-08-19 16:02:13stdoutWed Aug 19 16:02:13 2020 ROUTE_GATEWAY 172.17.0.1/255.255.0.0 IFACE=eth0 HWADDR=02:42:ac:11:00:02
2020-08-19 16:02:13stdoutWed Aug 19 16:02:13 2020 Incoming Data Channel: Cipher 'AES-256-GCM' initialized with 256 bit key
2020-08-19 16:02:13stdoutWed Aug 19 16:02:13 2020 Outgoing Data Channel: Cipher 'AES-256-GCM' initialized with 256 bit key
2020-08-19 16:02:13stdoutWed Aug 19 16:02:13 2020 Data Channel: using negotiated cipher 'AES-256-GCM'
2020-08-19 16:02:13stdoutWed Aug 19 16:02:13 2020 OPTIONS IMPORT: data channel crypto options modified
2020-08-19 16:02:13stdoutWed Aug 19 16:02:13 2020 OPTIONS IMPORT: adjusting link_mtu to 1625
2020-08-19 16:02:13stdoutWed Aug 19 16:02:13 2020 OPTIONS IMPORT: peer-id set
2020-08-19 16:02:13stdoutWed Aug 19 16:02:13 2020 OPTIONS IMPORT: --ip-win32 and/or --dhcp-option options modified
2020-08-19 16:02:13stdoutWed Aug 19 16:02:13 2020 OPTIONS IMPORT: route-related options modified
2020-08-19 16:02:13stdoutWed Aug 19 16:02:13 2020 OPTIONS IMPORT: route options modified
2020-08-19 16:02:13stdoutWed Aug 19 16:02:13 2020 OPTIONS IMPORT: --ifconfig/up options modified
2020-08-19 16:02:13stdoutWed Aug 19 16:02:13 2020 OPTIONS IMPORT: compression parms modified
2020-08-19 16:02:13stdoutWed Aug 19 16:02:13 2020 OPTIONS IMPORT: timers and/or timeouts modified
2020-08-19 16:02:13stdoutWed Aug 19 16:02:13 2020 Note: option tun-ipv6 is ignored because modern operating systems do not need special IPv6 tun handling anymore.
2020-08-19 16:02:13stdoutWed Aug 19 16:02:13 2020 PUSH: Received control message: 'PUSH_REPLY,comp-lzo no,redirect-gateway ipv6 def1 bypass-dhcp,dhcp-option DNS 10.6.112.1,dhcp-option DNS6 fde6:7a:7d20:270::1,tun-ipv6,route-gateway 10.6.112.1,topology subnet,ping 10,ping-restart 60,ifconfig-ipv6 fde6:7a:7d20:270::1074/64 fde6:7a:7d20:270::1,ifconfig 10.6.112.118 255.255.255.0,peer-id 1,cipher AES-256-GCM'
2020-08-19 16:02:13stdoutWed Aug 19 16:02:13 2020 SENT CONTROL [Alhena]: 'PUSH_REQUEST' (status=1)
2020-08-19 16:02:12stdoutWed Aug 19 16:02:12 2020 [Alhena] Peer Connection Initiated with [AF_INET]162.219.176.2:443
2020-08-19 16:02:12stdoutWed Aug 19 16:02:12 2020 Control Channel: TLSv1.2, cipher TLSv1.2 DHE-RSA-AES256-GCM-SHA384, 4096 bit RSA
2020-08-19 16:02:11stdoutWed Aug 19 16:02:11 2020 VERIFY OK: depth=0, C=IT, ST=IT, L=Perugia, O=airvpn.org, CN=Alhena, emailAddress=info@airvpn.org
2020-08-19 16:02:11stdoutWed Aug 19 16:02:11 2020 VERIFY EKU OK
2020-08-19 16:02:11stdoutWed Aug 19 16:02:11 2020 ++ Certificate has EKU (str) TLS Web Server Authentication, expects TLS Web Server Authentication
2020-08-19 16:02:11stdoutWed Aug 19 16:02:11 2020 Validating certificate extended key usage
2020-08-19 16:02:11stdoutWed Aug 19 16:02:11 2020 VERIFY KU OK
2020-08-19 16:02:11stdoutWed Aug 19 16:02:11 2020 VERIFY OK: depth=1, C=IT, ST=IT, L=Perugia, O=airvpn.org, CN=airvpn.org CA, emailAddress=info@airvpn.org
2020-08-19 16:02:11stdoutWed Aug 19 16:02:11 2020 TLS: Initial packet from [AF_INET]162.219.176.2:443, sid=ae3261e0 71b95695
2020-08-19 16:02:11stdoutWed Aug 19 16:02:11 2020 UDP link remote: [AF_INET]162.219.176.2:443
2020-08-19 16:02:11stdoutWed Aug 19 16:02:11 2020 UDP link local: (not bound)
2020-08-19 16:02:11stdoutWed Aug 19 16:02:11 2020 Socket Buffers: R=[212992->212992] S=[212992->212992]
2020-08-19 16:02:11stdoutWed Aug 19 16:02:11 2020 TCP/UDP: Preserving recently used remote address: [AF_INET]162.219.176.2:443
2020-08-19 16:02:11stdoutWed Aug 19 16:02:11 2020 Incoming Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
2020-08-19 16:02:11stdoutWed Aug 19 16:02:11 2020 Outgoing Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
2020-08-19 16:02:11stdoutWed Aug 19 16:02:11 2020 library versions: OpenSSL 1.1.1  11 Sep 2018, LZO 2.08
2020-08-19 16:02:11stdoutWed Aug 19 16:02:11 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-08-19 16:02:11stdout2020-08-19 16:02:11.319643 [info] Starting OpenVPN...
2020-08-19 16:02:11stdout2020-08-19 16:02:11.286312 [info] PGID not defined. Defaulting to root group
2020-08-19 16:02:11stdout2020-08-19 16:02:11.253325 [info] PUID not defined. Defaulting to root user
2020-08-19 16:02:11stdout2020-08-19 16:02:11.219865 [info] Adding 37.235.1.177 to resolv.conf
2020-08-19 16:02:11stdout2020-08-19 16:02:11.184731 [info] Adding 8.8.4.4 to resolv.conf
2020-08-19 16:02:11stdout2020-08-19 16:02:11.150108 [info] Adding 37.235.1.174 to resolv.conf
2020-08-19 16:02:11stdout2020-08-19 16:02:11.115508 [info] Adding 8.8.8.8 to resolv.conf
2020-08-19 16:02:11stdout2020-08-19 16:02:11.080525 [info] VPN_OPTIONS not defined (via -e VPN_OPTIONS)
2020-08-19 16:02:11stdout2020-08-19 16:02:11.045193 [warn] NAME_SERVERS not defined (via -e NAME_SERVERS), defaulting to Google and FreeDNS name servers
2020-08-19 16:02:11stdout2020-08-19 16:02:11.010573 [info] LAN_NETWORK defined as '192.168.1.0/24'
2020-08-19 16:02:10stdout2020-08-19 16:02:10.975330 [info] VPN_DEVICE_TYPE defined as 'tun0'
2020-08-19 16:02:10stdout2020-08-19 16:02:10.940770 [info] VPN_PROTOCOL defined as 'udp'
2020-08-19 16:02:10stdout2020-08-19 16:02:10.905962 [info] VPN_PORT defined as '443'
2020-08-19 16:02:10stdout2020-08-19 16:02:10.871129 [info] VPN_REMOTE defined as 'earth.airvpn.org'
2020-08-19 16:02:10stdout2020-08-19 16:02:10.836359 [info] VPN remote line defined as 'earth.airvpn.org 443'
2020-08-19 16:02:10stdoutdos2unix: converting file /config/openvpn/AirVPN_All-servers_UDP-443.ovpn to Unix format...
2020-08-19 16:02:10stdout2020-08-19 16:02:10.798118 [info] OpenVPN config file (ovpn extension) is located at /config/openvpn/AirVPN_All-servers_UDP-443.ovpn
2020-08-19 16:02:10stdout2020-08-19 16:02:10.758917 [info] VPN_ENABLED defined as 'yes'