Appreciate your effort to look, I was trying to find what was wiping it, but no success. For whatever reason it keeps resetting my /config/qBittorrent/config/qBittorrent.conf to:
[BitTorrent]
Session\Categories=@Variant(\0\0\0\b\0\0\0\x1\0\0\0\x4\0t\0v\0\0\0\n\0\0\0\0)
[Preferences]
Connection\PortRangeMin=58495
Queueing\QueueingEnabled=false
WebUI\Port=8080
As mentioned before this happens both during power outage AND a docker container update.
This is the logs after a simulated power outage (removed any IPs):
Created by...
___. .__ .__
\_ |__ |__| ____ | |__ ____ ___ ___
| __ \| |/ \| | \_/ __ \\ \/ /
| \_\ \ | | \ Y \ ___/ > <
|___ /__|___| /___| /\___ >__/\_ \
\/ \/ \/ \/ \/
https://hub.docker.com/u/binhex/
2020-06-02 18:34:11.692943 [info] System information Linux bb8fe788e281 4.19.107-Unraid #1 SMP Thu Mar 5 13:55:57 PST 2020 x86_64 GNU/Linux
2020-06-02 18:34:11.947714 [info] OS_ARCH defined as 'x86-64'
2020-06-02 18:34:12.228551 [info] PUID defined as '99'
2020-06-02 18:34:12.717080 [info] PGID defined as '100'
2020-06-02 18:34:13.609504 [info] UMASK defined as '000'
2020-06-02 18:34:13.696291 [info] Permissions already set for volume mappings
2020-06-02 18:34:13.878562 [info] VPN_ENABLED defined as 'yes'
2020-06-02 18:34:15.831281 [info] OpenVPN config file (ovpn extension) is located at /config/openvpn/DE Frankfurt.ovpn
2020-06-02 18:34:16.088614 [info] VPN remote line defined as 'remote de-frankfurt.privateinternetaccess.com 1198'
2020-06-02 18:34:16.107206 [info] VPN_REMOTE defined as 'de-frankfurt.privateinternetaccess.com'
2020-06-02 18:34:16.124361 [info] VPN_PORT defined as '1198'
2020-06-02 18:34:16.145472 [info] VPN_PROTOCOL defined as 'udp'
2020-06-02 18:34:16.163791 [info] VPN_DEVICE_TYPE defined as 'tun0'
2020-06-02 18:34:16.180681 [info] VPN_PROV defined as 'pia'
2020-06-02 18:34:16.197989 [info] LAN_NETWORK defined as '***.***.***.***/24'
2020-06-02 18:34:16.215885 [info] NAME_SERVERS defined as '***.***.***.***,***.***.***.***,***.***.***.***,***.***.***.***,***.***.***.***,***.***.***.***,***.***.***.***,***.***.***.***'
2020-06-02 18:34:16.232985 [info] VPN_USER defined as '*******'
2020-06-02 18:34:16.250541 [info] VPN_PASS defined as '*************'
2020-06-02 18:34:16.268670 [info] VPN_OPTIONS not defined (via -e VPN_OPTIONS)
2020-06-02 18:34:16.285791 [info] STRICT_PORT_FORWARD defined as 'yes'
2020-06-02 18:34:16.303631 [info] ENABLE_PRIVOXY defined as 'yes'
2020-06-02 18:34:16.321203 [info] ADDITIONAL_PORTS not defined (via -e ADDITIONAL_PORTS), skipping allow for custom incoming ports
2020-06-02 18:34:16.337809 [info] WEBUI_PORT defined as '8080'
2020-06-02 18:34:16.651479 [info] Deleting files in /tmp (non recursive)...
2020-06-02 18:34:16.668799 [info] Starting Supervisor...
2020-06-02 18:34:51,249 INFO Included extra file "/etc/supervisor/conf.d/qbittorrent.conf" during parsing
2020-06-02 18:34:51,249 INFO Set uid to user 0 succeeded
2020-06-02 18:34:51,775 INFO supervisord started with pid 6
2020-06-02 18:34:52,777 INFO spawned: 'start-script' with pid 167
2020-06-02 18:34:52,778 INFO spawned: 'watchdog-script' with pid 168
2020-06-02 18:34:52,778 INFO reaped unknown pid 7 (exit status 0)
2020-06-02 18:34:52,891 DEBG 'start-script' stdout output:
[info] VPN is enabled, beginning configuration of VPN
2020-06-02 18:34:52,891 INFO success: start-script entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2020-06-02 18:34:52,892 INFO success: watchdog-script entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2020-06-02 18:34:52,975 DEBG 'watchdog-script' stdout output:
[info] qBittorrent config file already exists, skipping copy
[info] Removing session lock file (if it exists)...
2020-06-02 18:34:54,835 DEBG 'start-script' stdout output:
[info] Default route for container is 172.17.0.1
2020-06-02 18:34:54,838 DEBG 'start-script' stdout output:
[info] Adding 209.222.18.222 to /etc/resolv.conf
2020-06-02 18:34:54,841 DEBG 'start-script' stdout output:
[info] Adding 84.200.69.80 to /etc/resolv.conf
2020-06-02 18:34:54,844 DEBG 'start-script' stdout output:
[info] Adding 37.235.1.174 to /etc/resolv.conf
2020-06-02 18:34:54,847 DEBG 'start-script' stdout output:
[info] Adding 1.1.1.1 to /etc/resolv.conf
2020-06-02 18:34:54,850 DEBG 'start-script' stdout output:
[info] Adding 209.222.18.218 to /etc/resolv.conf
2020-06-02 18:34:54,854 DEBG 'start-script' stdout output:
[info] Adding 37.235.1.177 to /etc/resolv.conf
2020-06-02 18:34:54,855 DEBG 'start-script' stdout output:
[info] Adding 84.200.70.40 to /etc/resolv.conf
2020-06-02 18:34:54,858 DEBG 'start-script' stdout output:
[info] Adding 1.0.0.1 to /etc/resolv.conf
2020-06-02 18:34:59,179 DEBG 'start-script' stdout output:
[info] Docker network defined as ***.***.***.***/16
2020-06-02 18:34:59,183 DEBG 'start-script' stdout output:
[info] Adding ***.***.***.***/24 as route via docker eth0
2020-06-02 18:34:59,184 DEBG 'start-script' stdout output:
[info] ip route defined as follows...
--------------------
2020-06-02 18:34:59,184 DEBG 'start-script' stdout output:
default via ***.***.***.*** dev eth0
***.***.***.***/16 dev eth0 proto kernel scope link src ***.***.***.***
***.***.***.***/24 via ***.***.***.*** dev eth0
2020-06-02 18:34:59,185 DEBG 'start-script' stdout output:
--------------------
2020-06-02 18:34:59,187 DEBG 'start-script' stdout output:
iptable_mangle 16384 1
ip_tables 24576 3 iptable_filter,iptable_nat,iptable_mangle
2020-06-02 18:34:59,188 DEBG 'start-script' stdout output:
[info] iptable_mangle support detected, adding fwmark for tables
2020-06-02 18:35:01,912 DEBG 'start-script' stdout output:
[info] iptables defined as follows...
--------------------
2020-06-02 18:35:01,913 DEBG 'start-script' stdout output:
-P INPUT DROP
-P FORWARD DROP
-P OUTPUT DROP
-A INPUT -s ***.***.***.***/16 -d ***.***.***.***/16 -j ACCEPT
-A INPUT -i eth0 -p udp -m udp --sport 1198 -j ACCEPT
-A INPUT -i eth0 -p tcp -m tcp --dport 8080 -j ACCEPT
-A INPUT -i eth0 -p tcp -m tcp --sport 8080 -j ACCEPT
-A INPUT -s ***.***.***.***/24 -i eth0 -p tcp -m tcp --dport 8080 -j ACCEPT
-A INPUT -s ***.***.***.***/24 -d ***.***.***.***/16 -i eth0 -p tcp -j ACCEPT
-A INPUT -p icmp -m icmp --icmp-type 0 -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A INPUT -i tun0 -j ACCEPT
-A OUTPUT -s ***.***.***.***/16 -d ***.***.***.***/16 -j ACCEPT
-A OUTPUT -o eth0 -p udp -m udp --dport 1198 -j ACCEPT
-A OUTPUT -o eth0 -p tcp -m tcp --dport 8080 -j ACCEPT
-A OUTPUT -o eth0 -p tcp -m tcp --sport 8080 -j ACCEPT
-A OUTPUT -d ***.***.***.***/24 -o eth0 -p tcp -m tcp --sport 8080 -j ACCEPT
-A OUTPUT -s ***.***.***.***/16 -d ***.***.***.***/24 -o eth0 -p tcp -j ACCEPT
-A OUTPUT -p icmp -m icmp --icmp-type 8 -j ACCEPT
-A OUTPUT -o lo -j ACCEPT
-A OUTPUT -o tun0 -j ACCEPT
2020-06-02 18:35:01,914 DEBG 'start-script' stdout output:
--------------------
2020-06-02 18:35:02,141 DEBG 'start-script' stdout output:
[info] Starting OpenVPN...
2020-06-02 18:35:15,140 DEBG 'start-script' stdout output:
Tue Jun 2 18:35:15 2020 WARNING: file 'credentials.conf' is group or others accessible
Tue Jun 2 18:35:15 2020 OpenVPN 2.4.9 [git:makepkg/9b0dafca6c50b8bb+] x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [PKCS11] [MH/PKTINFO] [AEAD] built on Apr 20 2020
Tue Jun 2 18:35:15 2020 library versions: OpenSSL 1.1.1g 21 Apr 2020, LZO 2.10
2020-06-02 18:35:15,141 DEBG 'start-script' stdout output:
[info] OpenVPN started
2020-06-02 18:35:15,141 DEBG 'start-script' stdout output:
Tue Jun 2 18:35:15 2020 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
2020-06-02 18:35:15,623 DEBG 'start-script' stdout output:
Tue Jun 2 18:35:15 2020 CRL: loaded 1 CRLs from file [[INLINE]]
2020-06-02 18:35:15,623 DEBG 'start-script' stdout output:
Tue Jun 2 18:35:15 2020 TCP/UDP: Preserving recently used remote address: [AF_INET]***.***.***.***:1198
2020-06-02 18:35:15,624 DEBG 'start-script' stdout output:
Tue Jun 2 18:35:15 2020 UDP link local: (not bound)
Tue Jun 2 18:35:15 2020 UDP link remote: [AF_INET]***.***.***.***:1198
2020-06-02 18:35:16,073 DEBG 'start-script' stdout output:
Tue Jun 2 18:35:16 2020 [ed9dcd625272e72363c697b48a7d33de] Peer Connection Initiated with [AF_INET]***.***.***.***:1198
2020-06-02 18:35:22,586 DEBG 'start-script' stdout output:
Tue Jun 2 18:35:22 2020 TUN/TAP device tun0 opened
Tue Jun 2 18:35:22 2020 /usr/bin/ip link set dev tun0 up mtu 1500
2020-06-02 18:35:22,587 DEBG 'start-script' stdout output:
Tue Jun 2 18:35:22 2020 /usr/bin/ip addr add dev tun0 local ***.***.***.*** peer ***.***.***.***
2020-06-02 18:35:22,588 DEBG 'start-script' stdout output:
Tue Jun 2 18:35:22 2020 /root/openvpnup.sh tun0 1500 1558 ***.***.***.*** ***.***.***.*** init
2020-06-02 18:35:22,593 DEBG 'start-script' stdout output:
Tue Jun 2 18:35:22 2020 Initialization Sequence Completed
2020-06-02 18:35:22,914 DEBG 'start-script' stdout output:
[info] Port forwarding is enabled
[info] Checking endpoint 'de-frankfurt.privateinternetaccess.com' is port forward enabled...
2020-06-02 18:35:23,378 DEBG 'start-script' stdout output:
[info] Attempting to curl https://www.privateinternetaccess.com/vpninfo/servers?version=82...
2020-06-02 18:35:28,711 DEBG 'start-script' stdout output:
[info] Curl successful for https://www.privateinternetaccess.com/vpninfo/servers?version=82, response code 200
2020-06-02 18:35:29,006 DEBG 'start-script' stdout output:
[info] PIA endpoint 'de-frankfurt.privateinternetaccess.com' is in the list of endpoints that support port forwarding
2020-06-02 18:35:29,006 DEBG 'start-script' stdout output:
[info] List of PIA endpoints that support port forwarding:-
[info] ca-toronto.privateinternetaccess.com
2020-06-02 18:35:29,006 DEBG 'start-script' stdout output:
[info] ca-montreal.privateinternetaccess.com
[info] ca-vancouver.privateinternetaccess.com
[info] de-berlin.privateinternetaccess.com
[info] de-frankfurt.privateinternetaccess.com
[info] sweden.privateinternetaccess.com
[info] swiss.privateinternetaccess.com
[info] france.privateinternetaccess.com
[info] czech.privateinternetaccess.com
[info] spain.privateinternetaccess.com
[info] ro.privateinternetaccess.com
[info] israel.privateinternetaccess.com
[info] Attempting to get dynamically assigned port...
2020-06-02 18:35:29,098 DEBG 'start-script' stdout output:
[info] Attempting to curl http://***.***.***.***:2000/?client_id=***********2bfb6f16f1d661128b9631734ac4b10e42826814e6d9938802a15...
2020-06-02 18:35:29,976 DEBG 'start-script' stdout output:
[info] Curl successful for http://209.222.18.222:2000/?client_id=***********2bfb6f16f1d661128b9631734ac4b10e42826814e6d9938802a15, response code 200
2020-06-02 18:35:29,998 DEBG 'start-script' stdout output:
[info] Successfully assigned incoming port 33095
2020-06-02 18:35:29,998 DEBG 'start-script' stdout output:
[info] Checking we can resolve name 'www.google.com' to address...
2020-06-02 18:35:30,111 DEBG 'start-script' stdout output:
[info] DNS operational, we can resolve name 'www.google.com' to address '***.***.***.***'
2020-06-02 18:35:30,130 DEBG 'start-script' stdout output:
[info] Attempting to get external IP using Name Server 'ns1.google.com'...
2020-06-02 18:35:30,486 DEBG 'start-script' stdout output:
[info] Successfully retrieved external IP address ***.***.***.***
2020-06-02 18:35:30,777 DEBG 'watchdog-script' stdout output:
[info] qBittorrent listening interface IP ***.***.***.*** and VPN provider IP ***.***.***.*** different, marking for reconfigure
2020-06-02 18:35:30,781 DEBG 'watchdog-script' stdout output:
[info] qBittorrent not running
2020-06-02 18:35:30,786 DEBG 'watchdog-script' stdout output:
[info] Privoxy not running
2020-06-02 18:35:30,786 DEBG 'watchdog-script' stdout output:
[info] qBittorrent incoming port 6881 and VPN incoming port 33095 different, marking for reconfigure
2020-06-02 18:35:30,858 DEBG 'watchdog-script' stdout output:
[info] Removing session lock file (if it exists)...
2020-06-02 18:35:30,859 DEBG 'watchdog-script' stdout output:
[info] Attempting to start qBittorrent...
2020-06-02 18:35:32,782 DEBG 'watchdog-script' stderr output:
WARNING: CPU random generator seem to be failing, disable hardware random number generation
WARNING: RDRND generated: 0xffffffff 0xffffffff 0xffffffff 0xffffffff
2020-06-02 18:35:33,777 DEBG 'watchdog-script' stdout output:
[info] qBittorrent process started
[info] Waiting for qBittorrent process to start listening on port 8080...
2020-06-02 18:35:34,274 DEBG 'watchdog-script' stdout output:
[info] qBittorrent process listening on port 8080
2020-06-02 18:35:37,285 DEBG 'watchdog-script' stdout output:
[info] Attempting to start Privoxy...
2020-06-02 18:35:38,453 DEBG 'watchdog-script' stdout output:
[info] Privoxy process started
[info] Waiting for Privoxy process to start listening on port 8118...
2020-06-02 18:35:38,457 DEBG 'watchdog-script' stdout output:
[info] Privoxy process listening on port 8118