Hi guys,
Recently I rebooted my server and everything but the Web UI is working. I haven't tweaked or changed anything, I'm using PIA and wireguard as my protocol. Deluge seems to be running as I tested the connection using Radarr/Sonarr but the Web UI takes too long to respond... I'm using 192.168.x.x:8112 for the Web UI. Here are the logs:
----
Created by...
___. .__ .__
\_ |__ |__| ____ | |__ ____ ___ ___
| __ \| |/ \| | \_/ __ \\ \/ /
| \_\ \ | | \ Y \ ___/ > <
|___ /__|___| /___| /\___ >__/\_ \
\/ \/ \/ \/ \/
https://hub.docker.com/u/binhex/
2022-03-02 10:57:32.372459 [info] Host is running unRAID
2022-03-02 10:57:32.389001 [info] System information Linux 1186b3476721 5.10.28-Unraid #1 SMP Wed Apr 7 08:23:18 PDT 2021 x86_64 GNU/Linux
2022-03-02 10:57:32.409198 [info] OS_ARCH defined as 'x86-64'
2022-03-02 10:57:32.428556 [info] PUID defined as '99'
2022-03-02 10:57:32.450742 [info] PGID defined as '100'
2022-03-02 10:57:32.518203 [info] UMASK defined as '000'
2022-03-02 10:57:32.535265 [info] Permissions already set for '/config'
2022-03-02 10:57:32.553728 [info] Deleting files in /tmp (non recursive)...
2022-03-02 10:57:32.578908 [info] VPN_ENABLED defined as 'yes'
2022-03-02 10:57:32.597521 [info] VPN_CLIENT defined as 'wireguard'
2022-03-02 10:57:32.615679 [info] VPN_PROV defined as 'pia'
2022-03-02 10:57:32.774009 [info] WireGuard config file (conf extension) is located at /config/wireguard/wg0.conf
2022-03-02 10:57:32.803786 [info] VPN_REMOTE_SERVER defined as 'nl-amsterdam.privacy.network'
2022-03-02 10:57:32.841075 [info] VPN_REMOTE_PORT defined as '1337'
2022-03-02 10:57:32.857614 [info] VPN_DEVICE_TYPE defined as 'wg0'
2022-03-02 10:57:32.873911 [info] VPN_REMOTE_PROTOCOL defined as 'udp'
2022-03-02 10:57:32.892720 [info] LAN_NETWORK defined as '192.168.1.0/24'
2022-03-02 10:57:32.912978 [info] NAME_SERVERS defined as '1.1.1.1'
2022-03-02 10:57:32.935136 [info] VPN_USER defined as 'xxxxxxx'
2022-03-02 10:57:32.953630 [info] VPN_PASS defined as 'xxxxxxxx'
2022-03-02 10:57:32.972099 [info] STRICT_PORT_FORWARD defined as 'no'
2022-03-02 10:57:32.990158 [info] ENABLE_PRIVOXY defined as 'no'
2022-03-02 10:57:33.012435 [info] VPN_INPUT_PORTS not defined (via -e VPN_INPUT_PORTS), skipping allow for custom incoming ports
2022-03-02 10:57:33.032597 [info] VPN_OUTPUT_PORTS not defined (via -e VPN_OUTPUT_PORTS), skipping allow for custom outgoing ports
2022-03-02 10:57:33.052363 [info] DELUGE_DAEMON_LOG_LEVEL defined as 'info'
2022-03-02 10:57:33.072121 [info] DELUGE_WEB_LOG_LEVEL defined as 'info'
2022-03-02 10:57:33.092599 [info] Starting Supervisor...
2022-03-02 10:57:33,203 INFO Included extra file "/etc/supervisor/conf.d/delugevpn.conf" during parsing
2022-03-02 10:57:33,203 INFO Set uid to user 0 succeeded
2022-03-02 10:57:33,205 INFO supervisord started with pid 7
2022-03-02 10:57:34,208 INFO spawned: 'shutdown-script' with pid 161
2022-03-02 10:57:34,210 INFO spawned: 'start-script' with pid 162
2022-03-02 10:57:34,212 INFO spawned: 'watchdog-script' with pid 163
2022-03-02 10:57:34,212 INFO reaped unknown pid 8 (exit status 0)
2022-03-02 10:57:34,216 DEBG 'start-script' stdout output:
[info] VPN is enabled, beginning configuration of VPN
2022-03-02 10:57:34,216 INFO success: shutdown-script entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2022-03-02 10:57:34,216 INFO success: start-script entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2022-03-02 10:57:34,217 INFO success: watchdog-script entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2022-03-02 10:57:34,219 DEBG 'start-script' stdout output:
[info] Adding 1.1.1.1 to /etc/resolv.conf
2022-03-02 10:57:34,390 DEBG 'start-script' stdout output:
[info] Token generated for PIA wireguard authentication
2022-03-02 10:57:34,410 DEBG 'start-script' stdout output:
[info] Trying to connect to the PIA WireGuard API on 'nl-amsterdam.privacy.network'...
2022-03-02 10:57:34,784 DEBG 'start-script' stdout output:
[info] Default route for container is 172.17.0.1
2022-03-02 10:57:34,797 DEBG 'start-script' stdout output:
[info] Docker network defined as 172.17.0.0/16
2022-03-02 10:57:34,801 DEBG 'start-script' stdout output:
[info] Adding 192.168.1.0/24 as route via docker eth0
2022-03-02 10:57:34,801 DEBG 'start-script' stdout output:
[info] ip route defined as follows...
2022-03-02 10:57:34,802 DEBG 'start-script' stdout output:
--------------------
2022-03-02 10:57:34,803 DEBG 'start-script' stdout output:
default via 172.17.0.1 dev eth0
172.17.0.0/16 dev eth0 proto kernel scope link src 172.17.0.8
192.168.1.0/24 via 172.17.0.1 dev eth0
broadcast 127.0.0.0 dev lo table local proto kernel scope link src 127.0.0.1
local 127.0.0.0/8 dev lo table local proto kernel scope host src 127.0.0.1
local 127.0.0.1 dev lo table local proto kernel scope host src 127.0.0.1
2022-03-02 10:57:34,803 DEBG 'start-script' stdout output:
broadcast 127.255.255.255 dev lo table local proto kernel scope link src 127.0.0.1
broadcast 172.17.0.0 dev eth0 table local proto kernel scope link src 172.17.0.8
local 172.17.0.8 dev eth0 table local proto kernel scope host src 172.17.0.8
broadcast 172.17.255.255 dev eth0 table local proto kernel scope link src 172.17.0.8
--------------------
2022-03-02 10:57:34,807 DEBG 'start-script' stdout output:
iptable_mangle 16384 2
ip_tables 28672 8 iptable_filter,iptable_raw,iptable_nat,iptable_mangle
x_tables 28672 18 ip6table_filter,xt_conntrack,iptable_filter,nft_compat,xt_tcpudp,xt_addrtype,xt_CHECKSUM,xt_nat,xt_comment,ip6_tables,ipt_REJECT,xt_connmark,iptable_raw,ip_tables,ip6table_mangle,xt_MASQUERADE,iptable_mangle,xt_mark
2022-03-02 10:57:34,807 DEBG 'start-script' stdout output:
[info] iptable_mangle support detected, adding fwmark for tables
2022-03-02 10:57:34,856 DEBG 'start-script' stdout output:
[info] iptables defined as follows...
--------------------
2022-03-02 10:57:34,857 DEBG 'start-script' stdout output:
-P INPUT DROP
-P FORWARD DROP
-P OUTPUT DROP
-A INPUT -s 172.17.0.0/16 -d 172.17.0.0/16 -j ACCEPT
-A INPUT -s 195.78.54.108/32 -i eth0 -j ACCEPT
-A INPUT -s 212.102.34.144/32 -i eth0 -j ACCEPT
-A INPUT -s 212.102.35.145/32 -i eth0 -j ACCEPT
-A INPUT -i eth0 -p tcp -m tcp --dport 8112 -j ACCEPT
-A INPUT -i eth0 -p udp -m udp --dport 8112 -j ACCEPT
-A INPUT -s 192.168.1.0/24 -d 172.17.0.0/16 -i eth0 -p tcp -m tcp --dport 58846 -j ACCEPT
-A INPUT -p icmp -m icmp --icmp-type 0 -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A INPUT -i wg0 -j ACCEPT
-A OUTPUT -s 172.17.0.0/16 -d 172.17.0.0/16 -j ACCEPT
-A OUTPUT -d 195.78.54.108/32 -o eth0 -j ACCEPT
-A OUTPUT -d 212.102.34.144/32 -o eth0 -j ACCEPT
-A OUTPUT -d 212.102.35.145/32 -o eth0 -j ACCEPT
-A OUTPUT -o eth0 -p tcp -m tcp --sport 8112 -j ACCEPT
-A OUTPUT -o eth0 -p udp -m udp --sport 8112 -j ACCEPT
-A OUTPUT -s 172.17.0.0/16 -d 192.168.1.0/24 -o eth0 -p tcp -m tcp --sport 58846 -j ACCEPT
-A OUTPUT -p icmp -m icmp --icmp-type 8 -j ACCEPT
-A OUTPUT -o lo -j ACCEPT
-A OUTPUT -o wg0 -j ACCEPT
2022-03-02 10:57:34,858 DEBG 'start-script' stdout output:
--------------------
2022-03-02 10:57:34,861 DEBG 'start-script' stdout output:
[info] Attempting to bring WireGuard interface 'up'...
2022-03-02 10:57:34,870 DEBG 'start-script' stderr output:
Warning: `/config/wireguard/wg0.conf' is world accessible
2022-03-02 10:57:34,876 DEBG 'start-script' stderr output:
[#] ip link add wg0 type wireguard
2022-03-02 10:57:34,877 DEBG 'start-script' stderr output:
[#] wg setconf wg0 /dev/fd/63
2022-03-02 10:57:34,887 DEBG 'start-script' stderr output:
[#] ip -4 address add 10.51.190.229 dev wg0
2022-03-02 10:57:34,893 DEBG 'start-script' stderr output:
[#] ip link set mtu 1420 up dev wg0
2022-03-02 10:57:34,912 DEBG 'start-script' stderr output:
[#] wg set wg0 fwmark 51820
2022-03-02 10:57:34,913 DEBG 'start-script' stderr output:
[#] ip -4 route add 0.0.0.0/0 dev wg0 table 51820
2022-03-02 10:57:34,914 DEBG 'start-script' stderr output:
[#] ip -4 rule add not fwmark 51820 table 51820
2022-03-02 10:57:34,915 DEBG 'start-script' stderr output:
[#] ip -4 rule add table main suppress_prefixlength 0
2022-03-02 10:57:34,918 DEBG 'start-script' stderr output:
[#] sysctl -q net.ipv4.conf.all.src_valid_mark=1
2022-03-02 10:57:34,919 DEBG 'start-script' stderr output:
[#] iptables-restore -n
2022-03-02 10:57:34,921 DEBG 'start-script' stderr output:
[#] '/root/wireguardup.sh'
2022-03-02 10:57:36,102 DEBG 'start-script' stdout output:
[info] Attempting to get external IP using 'http://checkip.amazonaws.com'...
2022-03-02 10:57:36,393 DEBG 'start-script' stdout output:
[info] Successfully retrieved external IP address 195.78.54.108
2022-03-02 10:57:36,393 DEBG 'start-script' stdout output:
[info] Port forwarding is not enabled
2022-03-02 10:57:36,394 DEBG 'start-script' stdout output:
[info] WireGuard interface 'up'
2022-03-02 10:57:37,046 DEBG 'watchdog-script' stdout output:
[info] Deluge listening interface IP 0.0.0.0 and VPN provider IP 10.51.190.229 different, marking for reconfigure
2022-03-02 10:57:37,048 DEBG 'watchdog-script' stdout output:
[info] Deluge not running
2022-03-02 10:57:37,051 DEBG 'watchdog-script' stdout output:
[info] Deluge Web UI not running
2022-03-02 10:57:37,052 DEBG 'watchdog-script' stdout output:
[info] Attempting to start Deluge...
[info] Removing deluge pid file (if it exists)...
2022-03-02 10:57:37,281 DEBG 'watchdog-script' stdout output:
[info] Deluge key 'listen_interface' currently has a value of '10.51.249.86'
[info] Deluge key 'listen_interface' will have a new value '10.51.190.229'
[info] Writing changes to Deluge config file '/config/core.conf'...
2022-03-02 10:57:37,401 DEBG 'watchdog-script' stdout output:
[info] Deluge key 'outgoing_interface' currently has a value of 'wg0'
[info] Deluge key 'outgoing_interface' will have a new value 'wg0'
[info] Writing changes to Deluge config file '/config/core.conf'...
2022-03-02 10:57:37,507 DEBG 'watchdog-script' stdout output:
[info] Deluge key 'default_daemon' currently has a value of xxxxxxxxxxxxxxxxxxxxxxx'
[info] Deluge key 'default_daemon' will have a new value 'xxxxxxxxxxxxxxxxxxxxxxxxxxx'
[info] Writing changes to Deluge config file '/config/web.conf'...
2022-03-02 10:57:37,736 DEBG 'watchdog-script' stdout output:
[info] Deluge process started
[info] Waiting for Deluge process to start listening on port 58846...
2022-03-02 10:57:37,847 DEBG 'watchdog-script' stdout output:
[info] Deluge process listening on port 58846
2022-03-02 10:57:39,650 DEBG 'watchdog-script' stdout output:
Setting "random_port" to: False
Configuration value successfully updated.
2022-03-02 10:57:41,436 DEBG 'watchdog-script' stdout output:
Setting "listen_ports" to: (6890, 6890)
Configuration value successfully updated.
2022-03-02 10:57:43,314 DEBG 'watchdog-script' stdout output:
[info] No torrents with state 'Error' found
2022-03-02 10:57:43,314 DEBG 'watchdog-script' stdout output:
[info] Starting Deluge Web UI...
2022-03-02 10:57:43,314 DEBG 'watchdog-script' stdout output:
[info] Deluge Web UI started