Trigus42 / alpine-qbittorrentvpn

Multiarch docker image with the latest qBittorrent-nox client (WEB UI) and WireGuard/OpenVPN tunnel
GNU General Public License v3.0
69 stars 10 forks source link

qBittorrent client is not reachable #11

Closed tiritibambix closed 2 years ago

tiritibambix commented 2 years ago

Hello.

I've been using your image for a couple of months and I love it :)

But suddenly it stopped working. I can't remember doing anything to mess things up.

Here's my log. Any help would be greatly appreciated.

192.168.0.0/24 via 172.30.0.1 dev eth0 ,
--------------------,
2021-12-29 12:46:32 [ERROR INFO] 'ip rule' output:,
--------------------,
0:  from all lookup local,
32764:  from all lookup main suppress_prefixlength 0,
32765:  not from all fwmark 0xca6c lookup 51820,
32766:  from all lookup main,
32767:  from all lookup default,
--------------------,
2021-12-29 12:46:32 [ERROR INFO] 'netstat -lpn' output:,
--------------------,
Active Internet connections (only servers),
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name    ,
tcp        0      0 10.100.0.179:39811      0.0.0.0:*               LISTEN      492/qbittorrent-nox ,
tcp        0      0 127.0.0.1:34541         0.0.0.0:*               LISTEN      492/qbittorrent-nox ,
tcp        0      0 172.30.0.2:37487        0.0.0.0:*               LISTEN      492/qbittorrent-nox ,
tcp        0      0 127.0.0.11:37043        0.0.0.0:*               LISTEN      -                   ,
tcp6       0      0 :::8080                 :::*                    LISTEN      492/qbittorrent-nox ,
udp        0      0 127.0.0.11:51414        0.0.0.0:*                           -                   ,
udp        0      0 0.0.0.0:51820           0.0.0.0:*                           -                   ,
udp        0      0 172.30.0.2:37487        0.0.0.0:*                           492/qbittorrent-nox ,
udp        0      0 0.0.0.0:6771            0.0.0.0:*                           492/qbittorrent-nox ,
udp        0      0 0.0.0.0:6771            0.0.0.0:*                           492/qbittorrent-nox ,
udp        0      0 0.0.0.0:6771            0.0.0.0:*                           492/qbittorrent-nox ,
udp        0      0 0.0.0.0:47829           0.0.0.0:*                           492/qbittorrent-nox ,
udp        0      0 10.100.0.179:39811      0.0.0.0:*                           492/qbittorrent-nox ,
udp        0      0 127.0.0.1:34541         0.0.0.0:*                           492/qbittorrent-nox ,
udp6       0      0 :::51820                :::*                                -                   ,
Active UNIX domain sockets (only servers),
Proto RefCnt Flags       Type       State         I-Node   PID/Program name     Path,
unix  2      [ ACC ]     STREAM     LISTENING     6380864  492/qbittorrent-nox  /tmp/.YmLmAb/s,
--------------------,
[cont-finish.d] executing container finish scripts...,
[cont-finish.d] done.,
[s6-finish] waiting for services.,
[s6-finish] sending all processes the TERM signal.,
[s6-finish] sending all processes the KILL signal and exiting.,
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.,
[s6-init] ensuring user provided files have correct perms...exited 0.,
[fix-attrs.d] applying ownership & permissions fixes...,
[fix-attrs.d] done.,
[cont-init.d] executing container initialization scripts...,
[cont-init.d] 01-environment: executing... ,
2021-12-29 12:46:41 [INFO] LAN_NETWORK defined as '192.168.0.0/24',
2021-12-29 12:46:41 [INFO] PUID defined as 998,
2021-12-29 12:46:41 [INFO] PGID defined as 100,
2021-12-29 12:46:41 [INFO] An user with PUID 998 already exists in /etc/passwd, nothing to do.,
2021-12-29 12:46:41 [INFO] VPN_ENABLED defined as 'yes',
2021-12-29 12:46:41 [WARNING] VPN_TYPE not set, defaulting to Wireguard.,
2021-12-29 12:46:41 [INFO] NAME_SERVERS defined as '1.1.1.1,1.0.0.1',
2021-12-29 12:46:41 [INFO] Adding 1.1.1.1 to resolv.conf,
2021-12-29 12:46:41 [INFO] Adding 1.0.0.1 to resolv.conf,
[cont-init.d] 01-environment: exited 0.,
[cont-init.d] 02-vpn: executing... ,
2021-12-29 12:46:41 [INFO] Choosen VPN config: 'wg0.conf',
dos2unix: converting file /config/wireguard/wg0.conf to Unix format...,
2021-12-29 12:46:41 [INFO] VPN remote line defined as '195.154.xxx.xxx:51820',
2021-12-29 12:46:41 [INFO] VPN_REMOTE defined as '195.154.xxx.xxx',
2021-12-29 12:46:41 [INFO] VPN_PORT defined as '51820',
2021-12-29 12:46:41 [INFO] VPN_PROTOCOL set as 'udp', since WireGuard is always udp.,
2021-12-29 12:46:41 [INFO] VPN_DEVICE_TYPE set as 'wg0',
2021-12-29 12:46:41 [INFO] Starting WireGuard...,
--------------------,
Warning: `/config/wireguard/wg0.conf' is world accessible,
[#] ip link add wg0 type wireguard,
[#] wg setconf wg0 /dev/fd/63,
[#] ip -4 address add 10.100.0.179/32 dev wg0,
[#] ip link set mtu 1420 up dev wg0,
[#] resolvconf -a wg0 -m 0 -x,
[#] wg set wg0 fwmark 51820,
[#] ip -4 route add 0.0.0.0/0 dev wg0 table 51820,
[#] ip -4 rule add not fwmark 51820 table 51820,
[#] ip -4 rule add table main suppress_prefixlength 0,
[#] sysctl -q net.ipv4.conf.all.src_valid_mark=1,
[#] iptables-restore -n,
--------------------,
[cont-init.d] 02-vpn: exited 0.,
[cont-init.d] 03-network: executing... ,
2021-12-29 12:46:41 [INFO] Docker network defined as 172.30.0.0/16,
2021-12-29 12:46:41 [INFO] Adding 192.168.0.0/24 as route via docker eth0,
[cont-init.d] 03-network: exited 0.,
[cont-init.d] 04-qbittorrent-setup: executing... ,
2021-12-29 12:46:41 [WARNING] ENABLE_SSL is set to , SSL is not enabled. This could cause issues with logging if other apps use the same Cookie name (SID).,
2021-12-29 12:46:41 [WARNING] If you manage the SSL config yourself, you can ignore this.,
2021-12-29 12:46:41 [WARNING] UMASK not defined (via -e UMASK), defaulting to '002',
[cont-init.d] 04-qbittorrent-setup: exited 0.,
[cont-init.d] 05-install: executing... ,
[cont-init.d] 05-install: exited 0.,
[cont-init.d] done.,
[services.d] starting services,
2021-12-29 12:46:41 [INFO] Logging to /config/qBittorrent/data/logs/qbittorrent.log.,
[services.d] done.,
2021-12-29 12:46:41 [INFO] Trying to ping 1.1.1.1 and 8.8.8.8 over the docker interface for 500ms each...,
Terminated,
Terminated,
2021-12-29 12:46:43 [INFO] Success: Could not connect. This means the firewall is most likely working properly.,
2021-12-29 12:46:43 [INFO] qBittorrent started with PID 491,
2021-12-29 12:46:43 [INFO] HEALTH_CHECK_HOST is not set. Using default host one.one.one.one,
2021-12-29 12:46:43 [INFO] HEALTH_CHECK_INTERVAL is not set. Using default interval of 5s
Trigus42 commented 2 years ago

What do you mean exactly by "it stopped working"? Are you not able to access the web UI, is it constantly restarting, ..?
Can you please provide the full log and your compose file or the docker command you used?

tiritibambix commented 2 years ago

Thank you for your answer.

I can access webui, but I got the error message "qBittorrent client is not reachable" after a few seconds. It won't download any torrent and gets frozen. It used to work very well.

The log I provided is the full log.

Here's my compose file

version: "3.3"
services:
  qbittorrentvpn:
    image: trigus42/qbittorrentvpn
    container_name: qbittorrentvpn
    privileged: true   
    environment:
      - PUID=998
      - PGID=100
      - VPN_ENABLED=yes
      - LAN_NETWORK=192.168.0.0/24
      - NAME_SERVERS=1.1.1.1,1.0.0.1
    ports:
      - 8991:8080
    volumes:
      - /srv/.../QBittorentVPN/config:/config
      - /srv/.../QBittorentVPN/downloads:/downloads
    restart: unless-stopped
Trigus42 commented 2 years ago

This probably means that the container is constantly restarting. A full log should look like this:

Log ``` [root@PC test]# docker logs qbittorrent --follow [s6-init] making user provided files available at /var/run/s6/etc...exited 0. [s6-init] ensuring user provided files have correct perms...exited 0. [fix-attrs.d] applying ownership & permissions fixes... [fix-attrs.d] done. [cont-init.d] executing container initialization scripts... [cont-init.d] 01-environment: executing... 2021-12-29 14:44:15 [INFO] LAN_NETWORK defined as '192.168.178.0/24' 2021-12-29 14:44:15 [INFO] PUID defined as 1001 2021-12-29 14:44:15 [INFO] PGID defined as 1001 2021-12-29 14:44:15 [INFO] An user with PUID 1001 does not exist, adding an user called 'qbittorrent' with PUID 1001 2021-12-29 14:44:15 [INFO] VPN_ENABLED defined as 'yes' 2021-12-29 14:44:15 [INFO] VPN_TYPE defined as 'wireguard' 2021-12-29 14:44:15 [WARNING] NAME_SERVERS not defined (via -e NAME_SERVERS), defaulting to CloudFlare and Google name servers 2021-12-29 14:44:15 [INFO] Adding 1.1.1.1 to resolv.conf 2021-12-29 14:44:15 [INFO] Adding 8.8.8.8 to resolv.conf 2021-12-29 14:44:15 [INFO] Adding 1.0.0.1 to resolv.conf 2021-12-29 14:44:15 [INFO] Adding 8.8.4.4 to resolv.conf [cont-init.d] 01-environment: exited 0. [cont-init.d] 02-vpn: executing... 2021-12-29 14:44:15 [INFO] Choosen VPN config: 'wg0.conf' dos2unix: converting file /config/wireguard/wg0.conf to Unix format... 2021-12-29 14:44:15 [INFO] VPN remote line defined as ':65142' 2021-12-29 14:44:15 [INFO] VPN_REMOTE defined as '' 2021-12-29 14:44:15 [INFO] VPN_PORT defined as '65142' 2021-12-29 14:44:15 [INFO] VPN_PROTOCOL set as 'udp', since WireGuard is always udp. 2021-12-29 14:44:15 [INFO] VPN_DEVICE_TYPE set as 'wg0' 2021-12-29 14:44:19 [INFO] Starting WireGuard... -------------------- Warning: `/config/wireguard/wg0.conf' is world accessible [#] ip link add wg0 type wireguard [#] wg setconf wg0 /dev/fd/63 [#] ip -4 address add 100.76.177.86/32 dev wg0 [#] ip link set mtu 1420 up dev wg0 [#] resolvconf -a wg0 -m 0 -x [#] wg set wg0 fwmark 51820 [#] ip -4 route add 0.0.0.0/0 dev wg0 table 51820 [#] ip -4 rule add not fwmark 51820 table 51820 [#] ip -4 rule add table main suppress_prefixlength 0 [#] iptables-restore -n -------------------- [cont-init.d] 02-vpn: exited 0. [cont-init.d] 03-network: executing... 2021-12-29 14:44:19 [INFO] Docker network defined as 172.19.0.0/16 2021-12-29 14:44:19 [INFO] Adding 192.168.178.0/24 as route via docker eth0 [cont-init.d] 03-network: exited 0. [cont-init.d] 04-qbittorrent-setup: executing... 2021-12-29 14:44:19 [WARNING] qBittorrent.conf is missing, this is normal for the first launch! Copying template. 2021-12-29 14:44:19 [INFO] ENABLE_SSL is set to yes 2021-12-29 14:44:19 [WARNING] WebUI Certificate is missing, generating a new Certificate and Key Generating a RSA private key .................................................................................................................................................+++++ ..................................+++++ writing new private key to '/config/qBittorrent/config/WebUIKey.key' ----- req: No value provided for Subject Attribute O, skipped req: No value provided for Subject Attribute OU, skipped req: No value provided for Subject Attribute CN, skipped 2021-12-29 14:44:19 [WARNING] /config/qBittorrent/config/qBittorrent.conf doesn't have the WebUICertificate.crt loaded. Added it to the config. 2021-12-29 14:44:19 [WARNING] /config/qBittorrent/config/qBittorrent.conf doesn't have the WebUIKey.key loaded. Added it to the config. 2021-12-29 14:44:19 [WARNING] /config/qBittorrent/config/qBittorrent.conf doesn't have the WebUI\HTTPS\Enabled loaded. Added it to the config. 2021-12-29 14:44:19 [INFO] UMASK defined as '002' [cont-init.d] 04-qbittorrent-setup: exited 0. [cont-init.d] 05-install: executing... [cont-init.d] 05-install: exited 0. [cont-init.d] done. [services.d] starting services [services.d] done. 2021-12-29 14:44:19 [INFO] Log file /config/qBittorrent/data/logs/qbittorrent.log doesn't exist. Creating it... 2021-12-29 14:44:19 [INFO] Logfile created. Logging to /config/qBittorrent/data/logs/qbittorrent.log 2021-12-29 14:44:19 [INFO] Trying to ping 1.1.1.1 and 8.8.8.8 over the docker interface for 500ms each... Terminated Terminated 2021-12-29 14:44:21 [INFO] Success: Could not connect. This means the firewall is most likely working properly. 2021-12-29 14:44:21 [INFO] qBittorrent started with PID 565 2021-12-29 14:44:21 [INFO] HEALTH_CHECK_HOST is not set. Using default host one.one.one.one 2021-12-29 14:44:21 [INFO] HEALTH_CHECK_INTERVAL is not set. Using default interval of 5s 2021-12-29 14:52:51 [ERROR] Network is down. Exiting.. 2021-12-29 14:52:51 [ERROR INFO] 'ip addr show' output: -------------------- 1: lo: mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever 31: eth0@if32: mtu 1500 qdisc noqueue state UP group default link/ether 02:42:ac:13:00:02 brd ff:ff:ff:ff:ff:ff link-netnsid 0 inet 172.19.0.2/16 brd 172.19.255.255 scope global eth0 valid_lft forever preferred_lft forever -------------------- 2021-12-29 14:52:51 [ERROR INFO] 'ip route show table main' output: -------------------- default via 172.19.0.1 dev eth0 172.19.0.0/16 dev eth0 proto kernel scope link src 172.19.0.2 192.168.178.0/24 via 172.19.0.1 dev eth0 -------------------- 2021-12-29 14:52:51 [ERROR INFO] 'ip rule' output: -------------------- 0: from all lookup local 32766: from all lookup main 32767: from all lookup default -------------------- 2021-12-29 14:52:51 [ERROR INFO] 'netstat -lpn' output: -------------------- Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 127.0.0.1:8999 0.0.0.0:* LISTEN - tcp 0 0 172.19.0.2:8999 0.0.0.0:* LISTEN - tcp 0 0 127.0.0.11:39853 0.0.0.0:* LISTEN - tcp6 0 0 :::8080 :::* LISTEN - udp 0 0 0.0.0.0:6771 0.0.0.0:* - udp 0 0 0.0.0.0:6771 0.0.0.0:* - udp 0 0 127.0.0.11:48258 0.0.0.0:* - udp 0 0 172.19.0.2:8999 0.0.0.0:* - udp 0 0 127.0.0.1:8999 0.0.0.0:* - Active UNIX domain sockets (only servers) Proto RefCnt Flags Type State I-Node PID/Program name Path unix 2 [ ACC ] STREAM LISTENING 747500 - /tmp/.zEQvly/s -------------------- [cont-finish.d] executing container finish scripts... [cont-finish.d] done. [s6-finish] waiting for services. [s6-finish] sending all processes the TERM signal. [s6-finish] sending all processes the KILL signal and exiting. ```
Trigus42 commented 2 years ago

You seem to be using a fairly recent image, but please try docker-compose pull to ensure that you use the newest one (the commits I just pushed should have nothing to do with your problem though).

tiritibambix commented 2 years ago

I tried qbt4.3.9-20211229. Still "qBittorrent client is not reachable".

Here's the full log. Sorry for the missunderstanding.

Log ``` [s6-init] making user provided files available at /var/run/s6/etc...exited 0., [s6-init] ensuring user provided files have correct perms...exited 0., [fix-attrs.d] applying ownership & permissions fixes..., [fix-attrs.d] done., [cont-init.d] executing container initialization scripts..., [cont-init.d] 01-environment: executing... , 2021-12-29 15:44:31 [INFO] LAN_NETWORK defined as '192.168.0.0/24', 2021-12-29 15:44:31 [INFO] PUID defined as 998, 2021-12-29 15:44:31 [INFO] PGID defined as 100, 2021-12-29 15:44:31 [INFO] An user with PUID 998 does not exist, adding an user called 'qbittorrent' with PUID 998, 2021-12-29 15:44:31 [INFO] VPN_ENABLED defined as 'yes', 2021-12-29 15:44:31 [WARNING] VPN_TYPE not set, defaulting to Wireguard., 2021-12-29 15:44:31 [INFO] NAME_SERVERS defined as '1.1.1.1,1.0.0.1', 2021-12-29 15:44:31 [INFO] Adding 1.1.1.1 to resolv.conf, 2021-12-29 15:44:31 [INFO] Adding 1.0.0.1 to resolv.conf, [cont-init.d] 01-environment: exited 0., [cont-init.d] 02-vpn: executing... , 2021-12-29 15:44:31 [INFO] Choosen VPN config: 'wg0.conf', dos2unix: converting file /config/wireguard/wg0.conf to Unix format..., 2021-12-29 15:44:31 [INFO] VPN remote line defined as '195.154.xxx.xxx:51820', 2021-12-29 15:44:31 [INFO] VPN_REMOTE defined as '195.154.xxx.xxx', 2021-12-29 15:44:31 [INFO] VPN_PORT defined as '51820', 2021-12-29 15:44:31 [INFO] VPN_PROTOCOL set as 'udp', since WireGuard is always udp., 2021-12-29 15:44:31 [INFO] VPN_DEVICE_TYPE set as 'wg0', 2021-12-29 15:44:31 [INFO] Starting WireGuard..., --------------------, Warning: `/config/wireguard/wg0.conf' is world accessible, [#] ip link add wg0 type wireguard, [#] wg setconf wg0 /dev/fd/63, [#] ip -4 address add 10.100.0.179/32 dev wg0, [#] ip link set mtu 1420 up dev wg0, [#] resolvconf -a wg0 -m 0 -x, [#] wg set wg0 fwmark 51820, [#] ip -4 route add 0.0.0.0/0 dev wg0 table 51820, [#] ip -4 rule add not fwmark 51820 table 51820, [#] ip -4 rule add table main suppress_prefixlength 0, [#] sysctl -q net.ipv4.conf.all.src_valid_mark=1, [#] iptables-restore -n, --------------------, [cont-init.d] 02-vpn: exited 0., [cont-init.d] 03-network: executing... , 2021-12-29 15:44:31 [INFO] Docker network defined as 172.30.0.0/16, 2021-12-29 15:44:31 [INFO] Adding 192.168.0.0/24 as route via docker eth0, [cont-init.d] 03-network: exited 0., [cont-init.d] 04-qbittorrent-setup: executing... , 2021-12-29 15:44:31 [WARNING] ENABLE_SSL is set to , SSL is not enabled. This could cause issues with logging if other apps use the same Cookie name (SID)., 2021-12-29 15:44:31 [WARNING] If you manage the SSL config yourself, you can ignore this., 2021-12-29 15:44:31 [WARNING] UMASK not defined (via -e UMASK), defaulting to '002', [cont-init.d] 04-qbittorrent-setup: exited 0., [cont-init.d] 05-install: executing... , [cont-init.d] 05-install: exited 0., [cont-init.d] done., [services.d] starting services, 2021-12-29 15:44:32 [INFO] Logging to /config/qBittorrent/data/logs/qbittorrent.log., [services.d] done., 2021-12-29 15:44:32 [INFO] Trying to ping 1.1.1.1 and 8.8.8.8 over the docker interface for 500ms each..., Terminated, Terminated, 2021-12-29 15:44:34 [INFO] Success: Could not connect. This means the firewall is most likely working properly., 2021-12-29 15:44:34 [INFO] qBittorrent started with PID 532, 2021-12-29 15:44:34 [INFO] HEALTH_CHECK_HOST is not set. Using default host one.one.one.one, 2021-12-29 15:44:34 [INFO] HEALTH_CHECK_INTERVAL is not set. Using default interval of 5s, 2021-12-29 15:45:07 [ERROR] Network is down. Exiting.., 2021-12-29 15:45:07 [ERROR INFO] 'ip addr show' output:, --------------------, 1: lo: mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000, link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00, inet 127.0.0.1/8 scope host lo, valid_lft forever preferred_lft forever, 2: wg0: mtu 1420 qdisc noqueue state UNKNOWN group default qlen 1000, link/none , inet 10.100.0.179/32 scope global wg0, valid_lft forever preferred_lft forever, 3834: eth0@if3835: mtu 1500 qdisc noqueue state UP group default , link/ether 02:42:ac:1e:00:02 brd ff:ff:ff:ff:ff:ff link-netnsid 0, inet 172.30.0.2/16 brd 172.30.255.255 scope global eth0, valid_lft forever preferred_lft forever, --------------------, 2021-12-29 15:45:07 [ERROR INFO] 'ip route show table main' output:, --------------------, default via 172.30.0.1 dev eth0 , 172.30.0.0/16 dev eth0 proto kernel scope link src 172.30.0.2 , 192.168.0.0/24 via 172.30.0.1 dev eth0 , --------------------, 2021-12-29 15:45:07 [ERROR INFO] 'ip rule' output:, --------------------, 0: from all lookup local, 32764: from all lookup main suppress_prefixlength 0, 32765: not from all fwmark 0xca6c lookup 51820, 32766: from all lookup main, 32767: from all lookup default, --------------------, 2021-12-29 15:45:07 [ERROR INFO] 'netstat -lpn' output:, --------------------, Active Internet connections (only servers), Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name , tcp 0 0 10.100.0.179:46173 0.0.0.0:* LISTEN 532/qbittorrent-nox , tcp 0 0 172.30.0.2:42207 0.0.0.0:* LISTEN 532/qbittorrent-nox , tcp 0 0 127.0.0.1:45921 0.0.0.0:* LISTEN 532/qbittorrent-nox , tcp 0 0 127.0.0.11:45349 0.0.0.0:* LISTEN - , tcp6 0 0 :::8080 :::* LISTEN 532/qbittorrent-nox , udp 0 0 127.0.0.1:45921 0.0.0.0:* 532/qbittorrent-nox , udp 0 0 10.100.0.179:46173 0.0.0.0:* 532/qbittorrent-nox , udp 0 0 172.30.0.2:42207 0.0.0.0:* 532/qbittorrent-nox , udp 0 0 127.0.0.11:40934 0.0.0.0:* - , udp 0 0 0.0.0.0:53371 0.0.0.0:* 532/qbittorrent-nox , udp 0 0 0.0.0.0:51820 0.0.0.0:* - , udp 0 0 0.0.0.0:6771 0.0.0.0:* 532/qbittorrent-nox , udp 0 0 0.0.0.0:6771 0.0.0.0:* 532/qbittorrent-nox , udp 0 0 0.0.0.0:6771 0.0.0.0:* 532/qbittorrent-nox , udp6 0 0 :::51820 :::* - , Active UNIX domain sockets (only servers), Proto RefCnt Flags Type State I-Node PID/Program name Path, unix 2 [ ACC ] STREAM LISTENING 7295481 532/qbittorrent-nox /tmp/.WSqXGW/s, --------------------, [cont-finish.d] executing container finish scripts..., [cont-finish.d] done., [s6-finish] waiting for services., [s6-finish] sending all processes the TERM signal., [s6-finish] sending all processes the KILL signal and exiting., [s6-init] making user provided files available at /var/run/s6/etc...exited 0., [s6-init] ensuring user provided files have correct perms...exited 0., [fix-attrs.d] applying ownership & permissions fixes..., [fix-attrs.d] done., [cont-init.d] executing container initialization scripts..., [cont-init.d] 01-environment: executing... , 2021-12-29 15:45:12 [INFO] LAN_NETWORK defined as '192.168.0.0/24', 2021-12-29 15:45:12 [INFO] PUID defined as 998, 2021-12-29 15:45:12 [INFO] PGID defined as 100, 2021-12-29 15:45:12 [INFO] An user with PUID 998 already exists in /etc/passwd, nothing to do., 2021-12-29 15:45:12 [INFO] VPN_ENABLED defined as 'yes', 2021-12-29 15:45:12 [WARNING] VPN_TYPE not set, defaulting to Wireguard., 2021-12-29 15:45:12 [INFO] NAME_SERVERS defined as '1.1.1.1,1.0.0.1', 2021-12-29 15:45:12 [INFO] Adding 1.1.1.1 to resolv.conf, 2021-12-29 15:45:12 [INFO] Adding 1.0.0.1 to resolv.conf, [cont-init.d] 01-environment: exited 0., [cont-init.d] 02-vpn: executing... , 2021-12-29 15:45:12 [INFO] Choosen VPN config: 'wg0.conf', dos2unix: converting file /config/wireguard/wg0.conf to Unix format..., 2021-12-29 15:45:12 [INFO] VPN remote line defined as '195.154.199.155:51820', 2021-12-29 15:45:12 [INFO] VPN_REMOTE defined as '195.154.199.155', 2021-12-29 15:45:12 [INFO] VPN_PORT defined as '51820', 2021-12-29 15:45:12 [INFO] VPN_PROTOCOL set as 'udp', since WireGuard is always udp., 2021-12-29 15:45:12 [INFO] VPN_DEVICE_TYPE set as 'wg0', 2021-12-29 15:45:12 [INFO] Starting WireGuard..., --------------------, Warning: `/config/wireguard/wg0.conf' is world accessible, [#] ip link add wg0 type wireguard, [#] wg setconf wg0 /dev/fd/63, [#] ip -4 address add 10.100.0.179/32 dev wg0, [#] ip link set mtu 1420 up dev wg0, [#] resolvconf -a wg0 -m 0 -x, [#] wg set wg0 fwmark 51820, [#] ip -4 route add 0.0.0.0/0 dev wg0 table 51820, [#] ip -4 rule add not fwmark 51820 table 51820, [#] ip -4 rule add table main suppress_prefixlength 0, [#] sysctl -q net.ipv4.conf.all.src_valid_mark=1, [#] iptables-restore -n, --------------------, [cont-init.d] 02-vpn: exited 0., [cont-init.d] 03-network: executing... , 2021-12-29 15:45:12 [INFO] Docker network defined as 172.30.0.0/16, 2021-12-29 15:45:12 [INFO] Adding 192.168.0.0/24 as route via docker eth0, [cont-init.d] 03-network: exited 0., [cont-init.d] 04-qbittorrent-setup: executing... , 2021-12-29 15:45:12 [WARNING] ENABLE_SSL is set to , SSL is not enabled. This could cause issues with logging if other apps use the same Cookie name (SID)., 2021-12-29 15:45:12 [WARNING] If you manage the SSL config yourself, you can ignore this., 2021-12-29 15:45:12 [WARNING] UMASK not defined (via -e UMASK), defaulting to '002', [cont-init.d] 04-qbittorrent-setup: exited 0., [cont-init.d] 05-install: executing... , [cont-init.d] 05-install: exited 0., [cont-init.d] done., [services.d] starting services, 2021-12-29 15:45:12 [INFO] Logging to /config/qBittorrent/data/logs/qbittorrent.log., [services.d] done., 2021-12-29 15:45:12 [INFO] Trying to ping 1.1.1.1 and 8.8.8.8 over the docker interface for 500ms each..., Terminated, Terminated, 2021-12-29 15:45:14 [INFO] Success: Could not connect. This means the firewall is most likely working properly., 2021-12-29 15:45:14 [INFO] qBittorrent started with PID 492, 2021-12-29 15:45:14 [INFO] HEALTH_CHECK_HOST is not set. Using default host one.one.one.one, 2021-12-29 15:45:14 [INFO] HEALTH_CHECK_INTERVAL is not set. Using default interval of 5s, 2021-12-29 15:45:47 [ERROR] Network is down. Exiting.., 2021-12-29 15:45:47 [ERROR INFO] 'ip addr show' output:, --------------------, 1: lo: mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000, link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00, inet 127.0.0.1/8 scope host lo, valid_lft forever preferred_lft forever, 2: wg0: mtu 1420 qdisc noqueue state UNKNOWN group default qlen 1000, link/none , inet 10.100.0.179/32 scope global wg0, valid_lft forever preferred_lft forever, 3836: eth0@if3837: mtu 1500 qdisc noqueue state UP group default , link/ether 02:42:ac:1e:00:02 brd ff:ff:ff:ff:ff:ff link-netnsid 0, inet 172.30.0.2/16 brd 172.30.255.255 scope global eth0, valid_lft forever preferred_lft forever, --------------------, 2021-12-29 15:45:47 [ERROR INFO] 'ip route show table main' output:, --------------------, default via 172.30.0.1 dev eth0 , 172.30.0.0/16 dev eth0 proto kernel scope link src 172.30.0.2 , 192.168.0.0/24 via 172.30.0.1 dev eth0 , --------------------, 2021-12-29 15:45:47 [ERROR INFO] 'ip rule' output:, --------------------, 0: from all lookup local, 32764: from all lookup main suppress_prefixlength 0, 32765: not from all fwmark 0xca6c lookup 51820, 32766: from all lookup main, 32767: from all lookup default, --------------------, 2021-12-29 15:45:47 [ERROR INFO] 'netstat -lpn' output:, --------------------, Active Internet connections (only servers), Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name , tcp 0 0 172.30.0.2:42529 0.0.0.0:* LISTEN 492/qbittorrent-nox , tcp 0 0 127.0.0.1:44867 0.0.0.0:* LISTEN 492/qbittorrent-nox , tcp 0 0 127.0.0.11:45923 0.0.0.0:* LISTEN - , tcp 0 0 10.100.0.179:33833 0.0.0.0:* LISTEN 492/qbittorrent-nox , tcp6 0 0 :::8080 :::* LISTEN 492/qbittorrent-nox , udp 0 0 0.0.0.0:51820 0.0.0.0:* - , udp 0 0 0.0.0.0:6771 0.0.0.0:* 492/qbittorrent-nox , udp 0 0 0.0.0.0:6771 0.0.0.0:* 492/qbittorrent-nox , udp 0 0 0.0.0.0:6771 0.0.0.0:* 492/qbittorrent-nox , udp 0 0 127.0.0.11:39581 0.0.0.0:* - , udp 0 0 0.0.0.0:54132 0.0.0.0:* 492/qbittorrent-nox , udp 0 0 10.100.0.179:33833 0.0.0.0:* 492/qbittorrent-nox , udp 0 0 172.30.0.2:42529 0.0.0.0:* 492/qbittorrent-nox , udp 0 0 127.0.0.1:44867 0.0.0.0:* 492/qbittorrent-nox , udp6 0 0 :::51820 :::* - , Active UNIX domain sockets (only servers), Proto RefCnt Flags Type State I-Node PID/Program name Path, unix 2 [ ACC ] STREAM LISTENING 7306119 492/qbittorrent-nox /tmp/.fqxoel/s, --------------------, [cont-finish.d] executing container finish scripts..., [cont-finish.d] done., [s6-finish] waiting for services., [s6-finish] sending all processes the TERM signal., [s6-finish] sending all processes the KILL signal and exiting., [s6-init] making user provided files available at /var/run/s6/etc...exited 0., [s6-init] ensuring user provided files have correct perms...exited 0., [fix-attrs.d] applying ownership & permissions fixes..., [fix-attrs.d] done., [cont-init.d] executing container initialization scripts..., [cont-init.d] 01-environment: executing... , 2021-12-29 15:45:56 [INFO] LAN_NETWORK defined as '192.168.0.0/24', 2021-12-29 15:45:56 [INFO] PUID defined as 998, 2021-12-29 15:45:56 [INFO] PGID defined as 100, 2021-12-29 15:45:56 [INFO] An user with PUID 998 already exists in /etc/passwd, nothing to do., 2021-12-29 15:45:56 [INFO] VPN_ENABLED defined as 'yes', 2021-12-29 15:45:56 [WARNING] VPN_TYPE not set, defaulting to Wireguard., 2021-12-29 15:45:56 [INFO] NAME_SERVERS defined as '1.1.1.1,1.0.0.1', 2021-12-29 15:45:56 [INFO] Adding 1.1.1.1 to resolv.conf, 2021-12-29 15:45:56 [INFO] Adding 1.0.0.1 to resolv.conf, [cont-init.d] 01-environment: exited 0., [cont-init.d] 02-vpn: executing... , 2021-12-29 15:45:56 [INFO] Choosen VPN config: 'wg0.conf', dos2unix: converting file /config/wireguard/wg0.conf to Unix format..., 2021-12-29 15:45:56 [INFO] VPN remote line defined as '195.154.199.155:51820', 2021-12-29 15:45:56 [INFO] VPN_REMOTE defined as '195.154.199.155', 2021-12-29 15:45:56 [INFO] VPN_PORT defined as '51820', 2021-12-29 15:45:56 [INFO] VPN_PROTOCOL set as 'udp', since WireGuard is always udp., 2021-12-29 15:45:56 [INFO] VPN_DEVICE_TYPE set as 'wg0', 2021-12-29 15:45:56 [INFO] Starting WireGuard..., --------------------, Warning: `/config/wireguard/wg0.conf' is world accessible, [#] ip link add wg0 type wireguard, [#] wg setconf wg0 /dev/fd/63, [#] ip -4 address add 10.100.0.179/32 dev wg0, [#] ip link set mtu 1420 up dev wg0, [#] resolvconf -a wg0 -m 0 -x, [#] wg set wg0 fwmark 51820, [#] ip -4 route add 0.0.0.0/0 dev wg0 table 51820, [#] ip -4 rule add not fwmark 51820 table 51820, [#] ip -4 rule add table main suppress_prefixlength 0, [#] sysctl -q net.ipv4.conf.all.src_valid_mark=1, [#] iptables-restore -n, --------------------, [cont-init.d] 02-vpn: exited 0., [cont-init.d] 03-network: executing... , 2021-12-29 15:45:56 [INFO] Docker network defined as 172.30.0.0/16, 2021-12-29 15:45:56 [INFO] Adding 192.168.0.0/24 as route via docker eth0, [cont-init.d] 03-network: exited 0., [cont-init.d] 04-qbittorrent-setup: executing... , 2021-12-29 15:45:56 [WARNING] ENABLE_SSL is set to , SSL is not enabled. This could cause issues with logging if other apps use the same Cookie name (SID)., 2021-12-29 15:45:56 [WARNING] If you manage the SSL config yourself, you can ignore this., 2021-12-29 15:45:56 [WARNING] UMASK not defined (via -e UMASK), defaulting to '002', [cont-init.d] 04-qbittorrent-setup: exited 0., [cont-init.d] 05-install: executing... , [cont-init.d] 05-install: exited 0., [cont-init.d] done., [services.d] starting services, 2021-12-29 15:45:56 [INFO] Logging to /config/qBittorrent/data/logs/qbittorrent.log., [services.d] done., 2021-12-29 15:45:56 [INFO] Trying to ping 1.1.1.1 and 8.8.8.8 over the docker interface for 500ms each..., Terminated, Terminated, 2021-12-29 15:45:58 [INFO] Success: Could not connect. This means the firewall is most likely working properly., 2021-12-29 15:45:58 [INFO] qBittorrent started with PID 493, 2021-12-29 15:45:58 [INFO] HEALTH_CHECK_HOST is not set. Using default host one.one.one.one, 2021-12-29 15:45:58 [INFO] HEALTH_CHECK_INTERVAL is not set. Using default interval of 5s, 2021-12-29 15:46:31 [ERROR] Network is down. Exiting.., 2021-12-29 15:46:31 [ERROR INFO] 'ip addr show' output:, --------------------, 1: lo: mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000, link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00, inet 127.0.0.1/8 scope host lo, valid_lft forever preferred_lft forever, 2: wg0: mtu 1420 qdisc noqueue state UNKNOWN group default qlen 1000, link/none , inet 10.100.0.179/32 scope global wg0, valid_lft forever preferred_lft forever, 3838: eth0@if3839: mtu 1500 qdisc noqueue state UP group default , link/ether 02:42:ac:1e:00:02 brd ff:ff:ff:ff:ff:ff link-netnsid 0, inet 172.30.0.2/16 brd 172.30.255.255 scope global eth0, valid_lft forever preferred_lft forever, --------------------, 2021-12-29 15:46:31 [ERROR INFO] 'ip route show table main' output:, --------------------, default via 172.30.0.1 dev eth0 , 172.30.0.0/16 dev eth0 proto kernel scope link src 172.30.0.2 , 192.168.0.0/24 via 172.30.0.1 dev eth0 , --------------------, 2021-12-29 15:46:31 [ERROR INFO] 'ip rule' output:, --------------------, 0: from all lookup local, 32764: from all lookup main suppress_prefixlength 0, 32765: not from all fwmark 0xca6c lookup 51820, 32766: from all lookup main, 32767: from all lookup default, --------------------, 2021-12-29 15:46:31 [ERROR INFO] 'netstat -lpn' output:, --------------------, Active Internet connections (only servers), Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name , tcp 0 0 127.0.0.11:35103 0.0.0.0:* LISTEN - , tcp 0 0 172.30.0.2:43489 0.0.0.0:* LISTEN 493/qbittorrent-nox , tcp 0 0 127.0.0.1:40361 0.0.0.0:* LISTEN 493/qbittorrent-nox , tcp 0 0 10.100.0.179:38387 0.0.0.0:* LISTEN 493/qbittorrent-nox , tcp6 0 0 :::8080 :::* LISTEN 493/qbittorrent-nox , udp 0 0 127.0.0.1:40361 0.0.0.0:* 493/qbittorrent-nox , udp 0 0 10.100.0.179:38387 0.0.0.0:* 493/qbittorrent-nox , udp 0 0 172.30.0.2:43489 0.0.0.0:* 493/qbittorrent-nox , udp 0 0 127.0.0.11:49696 0.0.0.0:* - , udp 0 0 0.0.0.0:51820 0.0.0.0:* - , udp 0 0 0.0.0.0:6771 0.0.0.0:* 493/qbittorrent-nox , udp 0 0 0.0.0.0:6771 0.0.0.0:* 493/qbittorrent-nox , udp 0 0 0.0.0.0:6771 0.0.0.0:* 493/qbittorrent-nox , udp 0 0 0.0.0.0:33441 0.0.0.0:* 493/qbittorrent-nox , udp6 0 0 :::51820 :::* - , Active UNIX domain sockets (only servers), Proto RefCnt Flags Type State I-Node PID/Program name Path, unix 2 [ ACC ] STREAM LISTENING 7317810 493/qbittorrent-nox /tmp/.wYiVaH/s, --------------------, [cont-finish.d] executing container finish scripts..., [cont-finish.d] done., [s6-finish] waiting for services., [s6-finish] sending all processes the TERM signal., [s6-finish] sending all processes the KILL signal and exiting., [s6-init] making user provided files available at /var/run/s6/etc...exited 0., [s6-init] ensuring user provided files have correct perms...exited 0., [fix-attrs.d] applying ownership & permissions fixes..., [fix-attrs.d] done., [cont-init.d] executing container initialization scripts..., [cont-init.d] 01-environment: executing... , 2021-12-29 15:46:40 [INFO] LAN_NETWORK defined as '192.168.0.0/24', 2021-12-29 15:46:40 [INFO] PUID defined as 998, 2021-12-29 15:46:40 [INFO] PGID defined as 100, 2021-12-29 15:46:40 [INFO] An user with PUID 998 already exists in /etc/passwd, nothing to do., 2021-12-29 15:46:40 [INFO] VPN_ENABLED defined as 'yes', 2021-12-29 15:46:40 [WARNING] VPN_TYPE not set, defaulting to Wireguard., 2021-12-29 15:46:40 [INFO] NAME_SERVERS defined as '1.1.1.1,1.0.0.1', 2021-12-29 15:46:40 [INFO] Adding 1.1.1.1 to resolv.conf, 2021-12-29 15:46:40 [INFO] Adding 1.0.0.1 to resolv.conf, [cont-init.d] 01-environment: exited 0., [cont-init.d] 02-vpn: executing... , 2021-12-29 15:46:40 [INFO] Choosen VPN config: 'wg0.conf', dos2unix: converting file /config/wireguard/wg0.conf to Unix format..., 2021-12-29 15:46:40 [INFO] VPN remote line defined as '195.154.199.155:51820', 2021-12-29 15:46:40 [INFO] VPN_REMOTE defined as '195.154.199.155', 2021-12-29 15:46:40 [INFO] VPN_PORT defined as '51820', 2021-12-29 15:46:40 [INFO] VPN_PROTOCOL set as 'udp', since WireGuard is always udp., 2021-12-29 15:46:40 [INFO] VPN_DEVICE_TYPE set as 'wg0', 2021-12-29 15:46:40 [INFO] Starting WireGuard..., --------------------, Warning: `/config/wireguard/wg0.conf' is world accessible, [#] ip link add wg0 type wireguard, [#] wg setconf wg0 /dev/fd/63, [#] ip -4 address add 10.100.0.179/32 dev wg0, [#] ip link set mtu 1420 up dev wg0, [#] resolvconf -a wg0 -m 0 -x, [#] wg set wg0 fwmark 51820, [#] ip -4 route add 0.0.0.0/0 dev wg0 table 51820, [#] ip -4 rule add not fwmark 51820 table 51820, [#] ip -4 rule add table main suppress_prefixlength 0, [#] sysctl -q net.ipv4.conf.all.src_valid_mark=1, [#] iptables-restore -n, --------------------, [cont-init.d] 02-vpn: exited 0., [cont-init.d] 03-network: executing... , 2021-12-29 15:46:40 [INFO] Docker network defined as 172.30.0.0/16, 2021-12-29 15:46:40 [INFO] Adding 192.168.0.0/24 as route via docker eth0, [cont-init.d] 03-network: exited 0., [cont-init.d] 04-qbittorrent-setup: executing... , 2021-12-29 15:46:41 [WARNING] ENABLE_SSL is set to , SSL is not enabled. This could cause issues with logging if other apps use the same Cookie name (SID)., 2021-12-29 15:46:41 [WARNING] If you manage the SSL config yourself, you can ignore this., 2021-12-29 15:46:41 [WARNING] UMASK not defined (via -e UMASK), defaulting to '002', [cont-init.d] 04-qbittorrent-setup: exited 0., [cont-init.d] 05-install: executing... , [cont-init.d] 05-install: exited 0., [cont-init.d] done., [services.d] starting services, 2021-12-29 15:46:41 [INFO] Logging to /config/qBittorrent/data/logs/qbittorrent.log., [services.d] done., 2021-12-29 15:46:41 [INFO] Trying to ping 1.1.1.1 and 8.8.8.8 over the docker interface for 500ms each..., Terminated, Terminated, 2021-12-29 15:46:43 [INFO] Success: Could not connect. This means the firewall is most likely working properly., 2021-12-29 15:46:43 [INFO] qBittorrent started with PID 492, 2021-12-29 15:46:43 [INFO] HEALTH_CHECK_HOST is not set. Using default host one.one.one.one, 2021-12-29 15:46:43 [INFO] HEALTH_CHECK_INTERVAL is not set. Using default interval of 5s, 2021-12-29 15:47:16 [ERROR] Network is down. Exiting.., 2021-12-29 15:47:16 [ERROR INFO] 'ip addr show' output:, --------------------, 3840: eth0@if3841: mtu 1500 qdisc noqueue state UP group default , link/ether 02:42:ac:1e:00:02 brd ff:ff:ff:ff:ff:ff link-netnsid 0, inet 172.30.0.2/16 brd 172.30.255.255 scope global eth0, valid_lft forever preferred_lft forever, 1: lo: mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000, link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00, inet 127.0.0.1/8 scope host lo, valid_lft forever preferred_lft forever, 2: wg0: mtu 1420 qdisc noqueue state UNKNOWN group default qlen 1000, link/none , inet 10.100.0.179/32 scope global wg0, valid_lft forever preferred_lft forever, --------------------, 2021-12-29 15:47:16 [ERROR INFO] 'ip route show table main' output:, --------------------, default via 172.30.0.1 dev eth0 , 172.30.0.0/16 dev eth0 proto kernel scope link src 172.30.0.2 , 192.168.0.0/24 via 172.30.0.1 dev eth0 , --------------------, 2021-12-29 15:47:16 [ERROR INFO] 'ip rule' output:, --------------------, 0: from all lookup local, 32764: from all lookup main suppress_prefixlength 0, 32765: not from all fwmark 0xca6c lookup 51820, 32766: from all lookup main, 32767: from all lookup default, --------------------, 2021-12-29 15:47:16 [ERROR INFO] 'netstat -lpn' output:, --------------------, Active Internet connections (only servers), Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name , tcp 0 0 172.30.0.2:36755 0.0.0.0:* LISTEN 492/qbittorrent-nox , tcp 0 0 10.100.0.179:33177 0.0.0.0:* LISTEN 492/qbittorrent-nox , tcp 0 0 127.0.0.1:36963 0.0.0.0:* LISTEN 492/qbittorrent-nox , tcp 0 0 127.0.0.11:36931 0.0.0.0:* LISTEN - , tcp6 0 0 :::8080 :::* LISTEN 492/qbittorrent-nox , udp 0 0 172.30.0.2:36755 0.0.0.0:* 492/qbittorrent-nox , udp 0 0 127.0.0.1:36963 0.0.0.0:* 492/qbittorrent-nox , udp 0 0 127.0.0.11:35050 0.0.0.0:* - , udp 0 0 0.0.0.0:49423 0.0.0.0:* 492/qbittorrent-nox , udp 0 0 10.100.0.179:33177 0.0.0.0:* 492/qbittorrent-nox , udp 0 0 0.0.0.0:51820 0.0.0.0:* - , udp 0 0 0.0.0.0:6771 0.0.0.0:* 492/qbittorrent-nox , udp 0 0 0.0.0.0:6771 0.0.0.0:* 492/qbittorrent-nox , udp 0 0 0.0.0.0:6771 0.0.0.0:* 492/qbittorrent-nox , udp6 0 0 :::51820 :::* - , Active UNIX domain sockets (only servers), Proto RefCnt Flags Type State I-Node PID/Program name Path, unix 2 [ ACC ] STREAM LISTENING 7327574 492/qbittorrent-nox /tmp/.uGNzga/s, --------------------, [cont-finish.d] executing container finish scripts..., [cont-finish.d] done., [s6-finish] waiting for services., [s6-finish] sending all processes the TERM signal., [s6-finish] sending all processes the KILL signal and exiting., [s6-init] making user provided files available at /var/run/s6/etc...exited 0., [s6-init] ensuring user provided files have correct perms...exited 0., [fix-attrs.d] applying ownership & permissions fixes..., [fix-attrs.d] done., [cont-init.d] executing container initialization scripts..., [cont-init.d] 01-environment: executing... , 2021-12-29 15:47:25 [INFO] LAN_NETWORK defined as '192.168.0.0/24', 2021-12-29 15:47:25 [INFO] PUID defined as 998, 2021-12-29 15:47:25 [INFO] PGID defined as 100, 2021-12-29 15:47:25 [INFO] An user with PUID 998 already exists in /etc/passwd, nothing to do., 2021-12-29 15:47:25 [INFO] VPN_ENABLED defined as 'yes', 2021-12-29 15:47:25 [WARNING] VPN_TYPE not set, defaulting to Wireguard., 2021-12-29 15:47:25 [INFO] NAME_SERVERS defined as '1.1.1.1,1.0.0.1', 2021-12-29 15:47:25 [INFO] Adding 1.1.1.1 to resolv.conf, 2021-12-29 15:47:25 [INFO] Adding 1.0.0.1 to resolv.conf, [cont-init.d] 01-environment: exited 0., [cont-init.d] 02-vpn: executing... , 2021-12-29 15:47:25 [INFO] Choosen VPN config: 'wg0.conf', dos2unix: converting file /config/wireguard/wg0.conf to Unix format..., 2021-12-29 15:47:25 [INFO] VPN remote line defined as '195.154.199.155:51820', 2021-12-29 15:47:25 [INFO] VPN_REMOTE defined as '195.154.199.155', 2021-12-29 15:47:25 [INFO] VPN_PORT defined as '51820', 2021-12-29 15:47:25 [INFO] VPN_PROTOCOL set as 'udp', since WireGuard is always udp., 2021-12-29 15:47:25 [INFO] VPN_DEVICE_TYPE set as 'wg0', 2021-12-29 15:47:25 [INFO] Starting WireGuard..., --------------------, Warning: `/config/wireguard/wg0.conf' is world accessible, [#] ip link add wg0 type wireguard, [#] wg setconf wg0 /dev/fd/63, [#] ip -4 address add 10.100.0.179/32 dev wg0, [#] ip link set mtu 1420 up dev wg0, [#] resolvconf -a wg0 -m 0 -x, [#] wg set wg0 fwmark 51820, [#] ip -4 route add 0.0.0.0/0 dev wg0 table 51820, [#] ip -4 rule add not fwmark 51820 table 51820, [#] ip -4 rule add table main suppress_prefixlength 0, [#] sysctl -q net.ipv4.conf.all.src_valid_mark=1, [#] iptables-restore -n, --------------------, [cont-init.d] 02-vpn: exited 0., [cont-init.d] 03-network: executing... , 2021-12-29 15:47:25 [INFO] Docker network defined as 172.30.0.0/16, 2021-12-29 15:47:25 [INFO] Adding 192.168.0.0/24 as route via docker eth0, [cont-init.d] 03-network: exited 0., [cont-init.d] 04-qbittorrent-setup: executing... , 2021-12-29 15:47:26 [WARNING] ENABLE_SSL is set to , SSL is not enabled. This could cause issues with logging if other apps use the same Cookie name (SID)., 2021-12-29 15:47:26 [WARNING] If you manage the SSL config yourself, you can ignore this., 2021-12-29 15:47:26 [WARNING] UMASK not defined (via -e UMASK), defaulting to '002', [cont-init.d] 04-qbittorrent-setup: exited 0., [cont-init.d] 05-install: executing... , [cont-init.d] 05-install: exited 0., [cont-init.d] done., [services.d] starting services, 2021-12-29 15:47:26 [INFO] Logging to /config/qBittorrent/data/logs/qbittorrent.log., [services.d] done., 2021-12-29 15:47:26 [INFO] Trying to ping 1.1.1.1 and 8.8.8.8 over the docker interface for 500ms each..., Terminated, Terminated, 2021-12-29 15:47:28 [INFO] Success: Could not connect. This means the firewall is most likely working properly., 2021-12-29 15:47:28 [INFO] qBittorrent started with PID 491, 2021-12-29 15:47:28 [INFO] HEALTH_CHECK_HOST is not set. Using default host one.one.one.one, 2021-12-29 15:47:28 [INFO] HEALTH_CHECK_INTERVAL is not set. Using default interval of 5s, 2021-12-29 15:48:01 [ERROR] Network is down. Exiting.., 2021-12-29 15:48:01 [ERROR INFO] 'ip addr show' output:, --------------------, 1: lo: mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000, link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00, inet 127.0.0.1/8 scope host lo, valid_lft forever preferred_lft forever, 2: wg0: mtu 1420 qdisc noqueue state UNKNOWN group default qlen 1000, link/none , inet 10.100.0.179/32 scope global wg0, valid_lft forever preferred_lft forever, 3842: eth0@if3843: mtu 1500 qdisc noqueue state UP group default , link/ether 02:42:ac:1e:00:02 brd ff:ff:ff:ff:ff:ff link-netnsid 0, inet 172.30.0.2/16 brd 172.30.255.255 scope global eth0, valid_lft forever preferred_lft forever, --------------------, 2021-12-29 15:48:01 [ERROR INFO] 'ip route show table main' output:, --------------------, default via 172.30.0.1 dev eth0 , 172.30.0.0/16 dev eth0 proto kernel scope link src 172.30.0.2 , 192.168.0.0/24 via 172.30.0.1 dev eth0 , --------------------, 2021-12-29 15:48:01 [ERROR INFO] 'ip rule' output:, --------------------, 0: from all lookup local, 32764: from all lookup main suppress_prefixlength 0, 32765: not from all fwmark 0xca6c lookup 51820, 32766: from all lookup main, 32767: from all lookup default, --------------------, 2021-12-29 15:48:01 [ERROR INFO] 'netstat -lpn' output:, --------------------, Active Internet connections (only servers), Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name , tcp 0 0 127.0.0.1:41903 0.0.0.0:* LISTEN 491/qbittorrent-nox , tcp 0 0 127.0.0.11:46041 0.0.0.0:* LISTEN - , tcp 0 0 172.30.0.2:41341 0.0.0.0:* LISTEN 491/qbittorrent-nox , tcp 0 0 10.100.0.179:42949 0.0.0.0:* LISTEN 491/qbittorrent-nox , tcp6 0 0 :::8080 :::* LISTEN 491/qbittorrent-nox , udp 0 0 172.30.0.2:41341 0.0.0.0:* 491/qbittorrent-nox , udp 0 0 0.0.0.0:51820 0.0.0.0:* - , udp 0 0 0.0.0.0:6771 0.0.0.0:* 491/qbittorrent-nox , udp 0 0 0.0.0.0:6771 0.0.0.0:* 491/qbittorrent-nox , udp 0 0 0.0.0.0:6771 0.0.0.0:* 491/qbittorrent-nox , udp 0 0 127.0.0.1:41903 0.0.0.0:* 491/qbittorrent-nox , udp 0 0 127.0.0.11:48393 0.0.0.0:* - , udp 0 0 0.0.0.0:53143 0.0.0.0:* 491/qbittorrent-nox , udp 0 0 10.100.0.179:42949 0.0.0.0:* 491/qbittorrent-nox , udp6 0 0 :::51820 :::* - , Active UNIX domain sockets (only servers), Proto RefCnt Flags Type State I-Node PID/Program name Path, unix 2 [ ACC ] STREAM LISTENING 7340394 491/qbittorrent-nox /tmp/.QmmviS/s, --------------------, [cont-finish.d] executing container finish scripts..., [cont-finish.d] done., [s6-finish] waiting for services., [s6-finish] sending all processes the TERM signal., [s6-finish] sending all processes the KILL signal and exiting., [s6-init] making user provided files available at /var/run/s6/etc...exited 0., [s6-init] ensuring user provided files have correct perms...exited 0., [fix-attrs.d] applying ownership & permissions fixes..., [fix-attrs.d] done., [cont-init.d] executing container initialization scripts..., [cont-init.d] 01-environment: executing... , 2021-12-29 15:48:10 [INFO] LAN_NETWORK defined as '192.168.0.0/24', 2021-12-29 15:48:10 [INFO] PUID defined as 998, 2021-12-29 15:48:10 [INFO] PGID defined as 100, 2021-12-29 15:48:10 [INFO] An user with PUID 998 already exists in /etc/passwd, nothing to do., 2021-12-29 15:48:10 [INFO] VPN_ENABLED defined as 'yes', 2021-12-29 15:48:10 [WARNING] VPN_TYPE not set, defaulting to Wireguard., 2021-12-29 15:48:10 [INFO] NAME_SERVERS defined as '1.1.1.1,1.0.0.1', 2021-12-29 15:48:10 [INFO] Adding 1.1.1.1 to resolv.conf, 2021-12-29 15:48:10 [INFO] Adding 1.0.0.1 to resolv.conf, [cont-init.d] 01-environment: exited 0., [cont-init.d] 02-vpn: executing... , 2021-12-29 15:48:10 [INFO] Choosen VPN config: 'wg0.conf', dos2unix: converting file /config/wireguard/wg0.conf to Unix format..., 2021-12-29 15:48:10 [INFO] VPN remote line defined as '195.154.199.155:51820', 2021-12-29 15:48:10 [INFO] VPN_REMOTE defined as '195.154.199.155', 2021-12-29 15:48:10 [INFO] VPN_PORT defined as '51820', 2021-12-29 15:48:10 [INFO] VPN_PROTOCOL set as 'udp', since WireGuard is always udp., 2021-12-29 15:48:10 [INFO] VPN_DEVICE_TYPE set as 'wg0', 2021-12-29 15:48:10 [INFO] Starting WireGuard..., --------------------, Warning: `/config/wireguard/wg0.conf' is world accessible, [#] ip link add wg0 type wireguard, [#] wg setconf wg0 /dev/fd/63, [#] ip -4 address add 10.100.0.179/32 dev wg0, [#] ip link set mtu 1420 up dev wg0, [#] resolvconf -a wg0 -m 0 -x, [#] wg set wg0 fwmark 51820, [#] ip -4 route add 0.0.0.0/0 dev wg0 table 51820, [#] ip -4 rule add not fwmark 51820 table 51820, [#] ip -4 rule add table main suppress_prefixlength 0, [#] sysctl -q net.ipv4.conf.all.src_valid_mark=1, [#] iptables-restore -n, --------------------, [cont-init.d] 02-vpn: exited 0., [cont-init.d] 03-network: executing... , 2021-12-29 15:48:10 [INFO] Docker network defined as 172.30.0.0/16, 2021-12-29 15:48:10 [INFO] Adding 192.168.0.0/24 as route via docker eth0, [cont-init.d] 03-network: exited 0., [cont-init.d] 04-qbittorrent-setup: executing... , 2021-12-29 15:48:10 [WARNING] ENABLE_SSL is set to , SSL is not enabled. This could cause issues with logging if other apps use the same Cookie name (SID)., 2021-12-29 15:48:10 [WARNING] If you manage the SSL config yourself, you can ignore this., 2021-12-29 15:48:10 [WARNING] UMASK not defined (via -e UMASK), defaulting to '002', [cont-init.d] 04-qbittorrent-setup: exited 0., [cont-init.d] 05-install: executing... , [cont-init.d] 05-install: exited 0., [cont-init.d] done., [services.d] starting services, 2021-12-29 15:48:10 [INFO] Logging to /config/qBittorrent/data/logs/qbittorrent.log., [services.d] done., 2021-12-29 15:48:10 [INFO] Trying to ping 1.1.1.1 and 8.8.8.8 over the docker interface for 500ms each..., Terminated, Terminated, 2021-12-29 15:48:12 [INFO] Success: Could not connect. This means the firewall is most likely working properly., 2021-12-29 15:48:12 [INFO] qBittorrent started with PID 492, 2021-12-29 15:48:12 [INFO] HEALTH_CHECK_HOST is not set. Using default host one.one.one.one, 2021-12-29 15:48:12 [INFO] HEALTH_CHECK_INTERVAL is not set. Using default interval of 5s ```
Trigus42 commented 2 years ago

Unfortunately, I can't spot the problem in the log. I tried your compose file and it worked for me.
Did you try to recreate the container by running docker-compose down -v and docker-compose up -d?
Please set the environment variable DEBUG=yes, recreate the container and post the log.

The only things that come to my head, which could be causing this issue, are your VPN config, your VPN provider's servers or an unstable internet connection.

tiritibambix commented 2 years ago

I had to move earlier today. I'll have to report back tomorrow.

Thanks for your suggestions

Trigus42 commented 2 years ago

Maybe the health check fails in spite of your connection actually working. I created an image with the health check disabled: trigus42/qbittorrentvpn:health_check_disabled. To check if your connection is working, then run docker exec -it qbittorrent ping 8.8.8.8.

tiritibambix commented 2 years ago

Sorry for the late answer, had a complicated day x)

So, I took some time to run some tests and it appears that my internet connection as well as my VPN config / provider's servers are fine. I installed and ran TransmissionsOpenVPN and successfully connected and downloaded.

I also tried to run trigus42/qbittorrentvpn:latest on another machine and I have the same problem. I also tried to run earlier images (up to qbt4.3.7) with no luck.

Here are the logs right after a "qBittorrent client is not reachable":

https://pastebin.com/WHyk5xKC

Then, I read your answer. I tried running trigus42/qbittorrentvpn:health_check_disabled. It does not ping.

Here are the logs:

https://pastebin.com/7DXyn4eg

That puzzles me. I can't remember doing anything to break it.

Trigus42 commented 2 years ago

I also tried to run earlier images (up to qbt4.3.7) with no luck.

That's the next thing I would have suspected as I recently made some changes on the firewall, but then this shouldn't be the cause of your issue.

I've created another image trigus42/qbittorrentvpn:firewall_disabled with the firewall and health check disabled.
If this doesn't work, then there isn't much left that could cause your issue. Maybe you can bash into the container (docker exec -it qbittorrent bash) and try investigating the problem yourself.

If none if this works, maybe you should switch to OpenVPN.

Edit: With most VPN providers you can renew your credentials. If you want to, you can upload your Wireguard config here for me to try it but that's entirely on you.

tiritibambix commented 2 years ago

Thank you.

I tried trigus42/qbittorrentvpn:firewall_disabled but it doesn't ping either.

I tried swithing to openvpn, but I got an error: [ERROR] VPN_PORT not found in /config/openvpn/openvpn.ovpn, exiting...

I wrote to my vpn provider to get that information.

In the meantime, as I'm curious, I uploaded my Wireguard config to your NC.

PS.: totally different subject, but what plugin do you use in NC to enable public drop of files like this ?

Trigus42 commented 2 years ago

It's definitely your VPN config. I've tried it with your config (with the firewall disabled) and it didn't work, while with my config it works flawlessly. This is what happened when I tried to ping 1.1.1.1 with your config enabled:

bash-5.1# tcpdump -n
tcpdump: verbose output suppressed, use -v[v]... for full protocol decode
listening on eth0, link-type EN10MB (Ethernet), snapshot length 262144 bytes
12:46:39.711754 IP 172.19.0.2.44641 > 195.154.222.168.51820: UDP, length 148
12:46:44.030716 IP 172.19.0.1.138 > 172.19.255.255.138: UDP, length 213
12:46:44.030737 IP 172.19.0.1.138 > 172.19.255.255.138: UDP, length 203
12:46:44.833770 IP 172.19.0.2.44641 > 195.154.222.168.51820: UDP, length 148
12:46:49.953888 IP 172.19.0.2.44641 > 195.154.222.168.51820: UDP, length 148
12:46:55.073908 IP 172.19.0.2.44641 > 195.154.222.168.51820: UDP, length 148
^C
6 packets captured
6 packets received by filter
0 packets dropped by kernel

bash-5.1# tcpdump -n -i wg1
tcpdump: verbose output suppressed, use -v[v]... for full protocol decode
listening on wg1, link-type RAW (Raw IP), snapshot length 262144 bytes
12:51:05.907619 IP 10.102.69.0 > 1.1.1.1: ICMP echo request, id 9965, seq 1, length 64
12:51:06.913363 IP 10.102.69.0 > 1.1.1.1: ICMP echo request, id 9965, seq 2, length 64
12:51:07.937781 IP 10.102.69.0 > 1.1.1.1: ICMP echo request, id 9965, seq 3, length 64
12:51:08.961371 IP 10.102.69.0 > 1.1.1.1: ICMP echo request, id 9965, seq 4, length 64
^C
4 packets captured
4 packets received by filter
0 packets dropped by kernel

This is what it looks like on my host OS:

[root@PC ~]# tcpdump -n host 195.154.222.168
tcpdump: verbose output suppressed, use -v[v]... for full protocol decode
listening on wlp37s0, link-type EN10MB (Ethernet), snapshot length 262144 bytes
13:56:32.737636 IP 192.168.178.32.44641 > 195.154.222.168.51820: UDP, length 148
13:56:37.858155 IP 192.168.178.32.44641 > 195.154.222.168.51820: UDP, length 148
13:56:42.977495 IP 192.168.178.32.44641 > 195.154.222.168.51820: UDP, length 148
13:56:48.097938 IP 192.168.178.32.44641 > 195.154.222.168.51820: UDP, length 148
^C
4 packets captured
4 packets received by filter
0 packets dropped by kernel

So the packets are actually leaving the container.
It seems like your VPN provider's server just doesn't respond.

That's what you have to select when sharing a folder in Nextcloud: https://user-images.githubusercontent.com/59501676/147824715-c3a4c69f-9732-468e-b4ad-efe19ef45e63.png)

Trigus42 commented 2 years ago

I tried swithing to openvpn, but I got an error: [ERROR] VPN_PORT not found in /config/openvpn/openvpn.ovpn, exiting...

There should be a remote line in your OpenVPN config like this: remote vpnserver.com 443

The script tries to extract the port (443)

tiritibambix commented 2 years ago

I gave up on openvpn because there is no port specified in the original config, and 443 doesn't work. I reset my wiregard config (...AGAIN xD) and now it looks like it's working......

I'll report back in a couple of days to confirm it is working and close this issue. In the meantime, thank you very very much for your patience and help.

Have a wonderful new year's eve :)

And thank you for that :

That's what you have to select when sharing a folder in Nextcloud: https://user-images.githubusercontent.com/59501676/147824715-c3a4c69f-9732-468e-b4ad-efe19ef45e63.png)

addiebarron commented 2 years ago

Hi all, I'm having the same issue as described above, more details & logs in this (possibly related?) issue: #12

Trigus42 commented 2 years ago

I'll report back in a couple of days to confirm it is working and close this issue. In the meantime, thank you very very much for your patience and help.

Seems like it's working. If not, feel free to reopen the issue

tiritibambix commented 2 years ago

I'm sorry, I didn't take the time to follow up. Apparently, my VPN provider may be facing random failures. Rarely but sometimes. This one time I contacted you was a huge one. No notice on their part.

Anyway, it's working great now. Thanks again for your time, patience and work :)

PS: for anyone interested, I use vpnunlimited set to Paris