binhex / arch-qbittorrentvpn

Docker build script for Arch Linux base with qBittorrent, Privoxy and OpenVPN
GNU General Public License v3.0
397 stars 46 forks source link

Content-Type headers blank? #116

Closed halomakes closed 2 years ago

halomakes commented 2 years ago

Hello, I have been using your rtorrent image for some time now and am wanting to try switching to this. I followed the setup instructions and the container is running but when I navigate to the web ui page it just shows this html code. It looks like the content-type header on the response is empty for some reason. I tried manually setting it for that url with a rule on a reverse proxy but all of the js/css resources are also missing the header and give mime errors when I do that.

image

I have a copy of the container logs here, nothing jumped out as being out-of-the-ordinary

Created by...,
___.   .__       .__,
\_ |__ |__| ____ |  |__   ____ ___  ___,
 | __ \|  |/    \|  |  \_/ __ \\  \/  /,
 | \_\ \  |   |  \   Y  \  ___/ >    <,
 |___  /__|___|  /___|  /\___  >__/\_ \,
     \/        \/     \/     \/      \/,
   https://hub.docker.com/u/binhex/,
,
2021-11-17 18:22:23.388866 [info] System information Linux e31e0aade554 5.4.0-90-generic #101-Ubuntu SMP Fri Oct 15 20:00:55 UTC 2021 x86_64 GNU/Linux,
2021-11-17 18:22:23.409124 [info] OS_ARCH defined as 'x86-64',
2021-11-17 18:22:23.428964 [info] PUID defined as '1000',
2021-11-17 18:22:23.450906 [info] PGID defined as '1000',
2021-11-17 18:22:23.476736 [info] UMASK defined as '000',
2021-11-17 18:22:23.498450 [info] Permissions already set for '/config',
2021-11-17 18:22:23.521265 [info] Deleting files in /tmp (non recursive)...,
2021-11-17 18:22:23.548140 [info] VPN_ENABLED defined as 'yes',
2021-11-17 18:22:23.569126 [info] VPN_CLIENT defined as 'openvpn',
2021-11-17 18:22:23.589212 [info] VPN_PROV defined as 'pia',
2021-11-17 18:22:23.875990 [info] OpenVPN config file (ovpn extension) is located at /config/openvpn/CA Toronto.ovpn,
2021-11-17 18:22:23.930797 [info] VPN remote server(s) defined as 'ca-toronto.privacy.network,',
2021-11-17 18:22:23.949298 [info] VPN remote port(s) defined as '501,',
2021-11-17 18:22:23.987027 [info] VPN remote protcol(s) defined as 'tcp-client,',
2021-11-17 18:22:24.008704 [info] VPN_DEVICE_TYPE defined as 'tun0',
2021-11-17 18:22:24.029310 [info] VPN_OPTIONS not defined (via -e VPN_OPTIONS),
2021-11-17 18:22:24.051329 [info] LAN_NETWORK defined as '192.168.1.0/24',
2021-11-17 18:22:24.073836 [info] NAME_SERVERS defined as '209.222.18.222,37.235.1.174,1.1.1.1,8.8.8.8,209.222.18.218,37.235.1.177,1.0.0.1,8.8.4.4',
2021-11-17 18:22:24.096361 [info] VPN_USER defined as 'removed',
2021-11-17 18:22:24.118393 [info] VPN_PASS defined as 'removed',
2021-11-17 18:22:24.139055 [info] STRICT_PORT_FORWARD defined as 'yes',
2021-11-17 18:22:24.160299 [info] ENABLE_PRIVOXY defined as 'yes',
2021-11-17 18:22:24.182526 [info] VPN_INPUT_PORTS not defined (via -e VPN_INPUT_PORTS), skipping allow for custom incoming ports,
2021-11-17 18:22:24.203806 [info] VPN_OUTPUT_PORTS not defined (via -e VPN_OUTPUT_PORTS), skipping allow for custom outgoing ports,
2021-11-17 18:22:24.224574 [info] WEBUI_PORT defined as '8080',
2021-11-17 18:22:24.311779 [info] Starting Supervisor...,
2021-11-17 18:22:24,529 INFO Included extra file "/etc/supervisor/conf.d/qbittorrent.conf" during parsing,
2021-11-17 18:22:24,529 INFO Set uid to user 0 succeeded,
2021-11-17 18:22:24,531 INFO supervisord started with pid 8,
2021-11-17 18:22:25,534 INFO spawned: 'shutdown-script' with pid 178,
2021-11-17 18:22:25,535 INFO spawned: 'start-script' with pid 179,
2021-11-17 18:22:25,536 INFO spawned: 'watchdog-script' with pid 180,
2021-11-17 18:22:25,537 INFO reaped unknown pid 9 (exit status 0),
2021-11-17 18:22:25,545 DEBG 'start-script' stdout output:,
[info] VPN is enabled, beginning configuration of VPN,
,
2021-11-17 18:22:25,545 INFO success: shutdown-script entered RUNNING state, process has stayed up for > than 0 seconds (startsecs),
2021-11-17 18:22:25,545 INFO success: start-script entered RUNNING state, process has stayed up for > than 0 seconds (startsecs),
2021-11-17 18:22:25,545 INFO success: watchdog-script entered RUNNING state, process has stayed up for > than 0 seconds (startsecs),
2021-11-17 18:22:25,545 DEBG 'watchdog-script' stdout output:,
[info] qBittorrent config file doesnt exist, copying default to /config/qBittorrent/config/...,
,
2021-11-17 18:22:25,547 DEBG 'watchdog-script' stdout output:,
[info] Removing session lock file (if it exists)...,
,
2021-11-17 18:22:25,631 DEBG 'start-script' stdout output:,
[info] Adding 209.222.18.222 to /etc/resolv.conf,
,
2021-11-17 18:22:25,633 DEBG 'start-script' stdout output:,
[info] Adding 37.235.1.174 to /etc/resolv.conf,
,
2021-11-17 18:22:25,635 DEBG 'start-script' stdout output:,
[info] Adding 1.1.1.1 to /etc/resolv.conf,
,
2021-11-17 18:22:25,638 DEBG 'start-script' stdout output:,
[info] Adding 8.8.8.8 to /etc/resolv.conf,
,
2021-11-17 18:22:25,640 DEBG 'start-script' stdout output:,
[info] Adding 209.222.18.218 to /etc/resolv.conf,
,
2021-11-17 18:22:25,642 DEBG 'start-script' stdout output:,
[info] Adding 37.235.1.177 to /etc/resolv.conf,
,
2021-11-17 18:22:25,644 DEBG 'start-script' stdout output:,
[info] Adding 1.0.0.1 to /etc/resolv.conf,
,
2021-11-17 18:22:25,647 DEBG 'start-script' stdout output:,
[info] Adding 8.8.4.4 to /etc/resolv.conf,
,
2021-11-17 18:22:40,719 DEBG 'start-script' stdout output:,
[info] Attempting to load tun kernel module...,
,
2021-11-17 18:22:40,721 DEBG 'start-script' stderr output:,
modprobe: FATAL: Module tun not found in directory /lib/modules/5.4.0-90-generic,
,
2021-11-17 18:22:40,721 DEBG 'start-script' stdout output:,
[warn] Unable to load tun kernel module using modprobe, trying insmod...,
,
2021-11-17 18:22:40,722 DEBG 'start-script' stderr output:,
insmod: ERROR: could not load module /lib/modules/tun.ko: No such file or directory,
,
2021-11-17 18:22:40,722 DEBG 'start-script' stdout output:,
[warn] Unable to load tun kernel module, assuming its dynamically loaded,
,
2021-11-17 18:22:40,737 DEBG 'start-script' stdout output:,
[info] Default route for container is 172.17.0.1,
,
2021-11-17 18:22:40,748 DEBG 'start-script' stdout output:,
[info] Docker network defined as    172.17.0.0/16,
,
2021-11-17 18:22:40,751 DEBG 'start-script' stdout output:,
[info] Adding 192.168.1.0/24 as route via docker eth0,
,
2021-11-17 18:22:40,752 DEBG 'start-script' stdout output:,
[info] ip route defined as follows...,
--------------------,
,
2021-11-17 18:22:40,753 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.9 ,
192.168.1.0/24 via 172.17.0.1 dev eth0 ,
,
2021-11-17 18:22:40,753 DEBG 'start-script' stdout output:,
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 ,
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.9 ,
local 172.17.0.9 dev eth0 table local proto kernel scope host src 172.17.0.9 ,
broadcast 172.17.255.255 dev eth0 table local proto kernel scope link src 172.17.0.9 ,
,
2021-11-17 18:22:40,753 DEBG 'start-script' stdout output:,
--------------------,
,
2021-11-17 18:22:40,760 DEBG 'start-script' stdout output:,
iptable_mangle         16384  1,
ip_tables              32768  3 iptable_filter,iptable_nat,iptable_mangle,
x_tables               40960  14 ebtables,ip6table_filter,xt_conntrack,iptable_filter,xt_tcpudp,xt_addrtype,xt_CHECKSUM,xt_nat,ip6_tables,ipt_REJECT,ip_tables,ip6table_mangle,xt_MASQUERADE,iptable_mangle,
,
2021-11-17 18:22:40,760 DEBG 'start-script' stdout output:,
[info] iptable_mangle support detected, adding fwmark for tables,
,
2021-11-17 18:22:40,823 DEBG 'start-script' stdout output:,
[info] iptables defined as follows...,
--------------------,
,
2021-11-17 18:22:40,824 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 154.3.40.22/32 -i eth0 -j ACCEPT,
-A INPUT -s 154.3.40.32/32 -i eth0 -j ACCEPT,
-A INPUT -s 154.3.40.21/32 -i eth0 -j ACCEPT,
-A INPUT -s 154.3.40.11/32 -i eth0 -j ACCEPT,
-A INPUT -s 154.3.40.31/32 -i eth0 -j ACCEPT,
-A INPUT -i eth0 -p tcp -m tcp --dport 8080 -j ACCEPT,
-A INPUT -i eth0 -p udp -m udp --dport 8080 -j ACCEPT,
-A INPUT -s 192.168.1.0/24 -d 172.17.0.0/16 -i eth0 -p tcp -m tcp --dport 8118 -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 172.17.0.0/16 -d 172.17.0.0/16 -j ACCEPT,
-A OUTPUT -d 154.3.40.22/32 -o eth0 -j ACCEPT,
-A OUTPUT -d 154.3.40.32/32 -o eth0 -j ACCEPT,
-A OUTPUT -d 154.3.40.21/32 -o eth0 -j ACCEPT,
-A OUTPUT -d 154.3.40.11/32 -o eth0 -j ACCEPT,
-A OUTPUT -d 154.3.40.31/32 -o eth0 -j ACCEPT,
-A OUTPUT -o eth0 -p tcp -m tcp --sport 8080 -j ACCEPT,
-A OUTPUT -o eth0 -p udp -m udp --sport 8080 -j ACCEPT,
-A OUTPUT -s 172.17.0.0/16 -d 192.168.1.0/24 -o eth0 -p tcp -m tcp --sport 8118 -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,
,
2021-11-17 18:22:40,825 DEBG 'start-script' stdout output:,
--------------------,
,
2021-11-17 18:22:40,825 DEBG 'start-script' stdout output:,
[info] Starting OpenVPN (non daemonised)...,
,
2021-11-17 18:22:40,842 DEBG 'start-script' stdout output:,
2021-11-17 18:22:40 DEPRECATED OPTION: --cipher set to 'aes-256-cbc' but missing in --data-ciphers (AES-256-GCM:AES-128-GCM). Future OpenVPN version will ignore --cipher for cipher negotiations. Add 'aes-256-cbc' to --data-ciphers or change --cipher 'aes-256-cbc' to --data-ciphers-fallback 'aes-256-cbc' to silence this warning.,
,
2021-11-17 18:22:40,842 DEBG 'start-script' stdout output:,
2021-11-17 18:22:40 WARNING: file 'credentials.conf' is group or others accessible,
2021-11-17 18:22:40 OpenVPN 2.5.4 [git:makepkg/3f7a85b9aebe7be0+] x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [PKCS11] [MH/PKTINFO] [AEAD] built on Oct  5 2021,
2021-11-17 18:22:40 library versions: OpenSSL 1.1.1l  24 Aug 2021, LZO 2.10,
,
2021-11-17 18:22:40,842 DEBG 'start-script' stdout output:,
2021-11-17 18:22:40 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts,
,
2021-11-17 18:22:40,843 DEBG 'start-script' stdout output:,
2021-11-17 18:22:40 CRL: loaded 1 CRLs from file -----BEGIN X509 CRL-----,
removed
-----END X509 CRL-----,
,
,
2021-11-17 18:22:40,843 DEBG 'start-script' stdout output:,
2021-11-17 18:22:40 TCP/UDP: Preserving recently used remote address: [AF_INET]154.3.40.32:501,
2021-11-17 18:22:40 Attempting to establish TCP connection with [AF_INET]154.3.40.32:501 [nonblock],
,
2021-11-17 18:22:40,876 DEBG 'start-script' stdout output:,
2021-11-17 18:22:40 TCP connection established with [AF_INET]154.3.40.32:501,
2021-11-17 18:22:40 TCP_CLIENT link local: (not bound),
2021-11-17 18:22:40 TCP_CLIENT link remote: [AF_INET]154.3.40.32:501,
,
2021-11-17 18:22:41,229 DEBG 'start-script' stdout output:,
2021-11-17 18:22:41 [toronto414] Peer Connection Initiated with [AF_INET]154.3.40.32:501,
,
2021-11-17 18:22:41,259 DEBG 'start-script' stdout output:,
2021-11-17 18:22:41 TUN/TAP device tun0 opened,
2021-11-17 18:22:41 net_iface_mtu_set: mtu 1500 for tun0,
,
2021-11-17 18:22:41,260 DEBG 'start-script' stdout output:,
2021-11-17 18:22:41 net_iface_up: set tun0 up,
2021-11-17 18:22:41 net_addr_v4_add: 10.29.19.25/24 dev tun0,
,
2021-11-17 18:22:41,260 DEBG 'start-script' stdout output:,
2021-11-17 18:22:41 /root/openvpnup.sh tun0 1500 1555 10.29.19.25 255.255.255.0 init,
,
2021-11-17 18:22:41,268 DEBG 'start-script' stdout output:,
2021-11-17 18:22:41 Initialization Sequence Completed,
,
2021-11-17 18:22:43,364 DEBG 'start-script' stdout output:,
[info] Attempting to get external IP using 'http://checkip.amazonaws.com'...,
,
2021-11-17 18:22:51,742 DEBG 'start-script' stdout output:,
[info] Successfully retrieved external IP address 154.3.40.32,
,
2021-11-17 18:22:51,746 DEBG 'start-script' stdout output:,
[info] Script started to assign incoming port,
,
2021-11-17 18:22:51,746 DEBG 'start-script' stdout output:,
[info] Port forwarding is enabled,
[info] Checking endpoint 'ca-toronto.privacy.network' is port forward enabled...,
,
2021-11-17 18:23:00,430 DEBG 'start-script' stdout output:,
[info] PIA endpoint 'ca-toronto.privacy.network' is in the list of endpoints that support port forwarding,
,
2021-11-17 18:23:00,431 DEBG 'start-script' stdout output:,
[info] List of PIA endpoints that support port forwarding:-,
,
2021-11-17 18:23:00,431 DEBG 'start-script' stdout output:,
[info] al.privacy.network,
[info] ad.privacy.network,
[info] austria.privacy.network,
[info] brussels.privacy.network,
[info] ba.privacy.network,
[info] sofia.privacy.network,
,
2021-11-17 18:23:00,431 DEBG 'start-script' stdout output:,
[info] zagreb.privacy.network,
[info] czech.privacy.network,
[info] denmark.privacy.network,
[info] denmark-2.privacy.network,
[info] ee.privacy.network,
[info] fi.privacy.network,
[info] fi-2.privacy.network,
[info] france.privacy.network,
[info] de-berlin.privacy.network,
[info] de-frankfurt.privacy.network,
[info] gr.privacy.network,
[info] hungary.privacy.network,
[info] is.privacy.network,
[info] ireland.privacy.network,
fo] man.privacy.network,
[info] italy.privacy.network,
[info] italy-2.privacy.network,
[info] lv.privacy.network,
[info] liechtenstein.privacy.network,
,
2021-11-17 18:23:00,431 DEBG 'start-script' stdout output:,
[info] lt.privacy.network,
[info] lu.privacy.network,
[info] mk.privacy.network,
[info] malta.privacy.network,
[info] md.privacy.network,
[info] monaco.privacy.network,
[info] montenegro.privacy.network,
[info] nl-amsterdam.privacy.network,
[info] no.privacy.network,
[info] poland.privacy.network,
[info] pt.privacy.network,
[info] ro.privacy.network,
[info] rs.privacy.network,
[info] sk.privacy.network,
[info] spain.privacy.network,
[info] sweden.privacy.network,
[info] sweden-2.privacy.network,
[info] swiss.privacy.network,
[info] ua.privacy.network,
,
2021-11-17 18:23:00,431 DEBG 'start-script' stdout output:,
[info] uk-london.privacy.network,
[info] uk-southampton.privacy.network,
[info] uk-manchester.privacy.network,
[info] uk-2.privacy.network,
[info] bahamas.privacy.network,
[info] ca-toronto.privacy.network,
[info] ca-montreal.privacy.network,
[info] ca-vancouver.privacy.network,
[info] ca-ontario.privacy.network,
[info] greenland.privacy.network,
[info] mexico.privacy.network,
[info] panama.privacy.network,
,
2021-11-17 18:23:00,431 DEBG 'start-script' stdout output:,
[info] ar.privacy.network,
[info] br.privacy.network,
[info] venezuela.privacy.network,
[info] yerevan.privacy.network,
[info] bangladesh.privacy.network,
[info] cambodia.privacy.network,
[info] china.privacy.network,
[info] cyprus.privacy.network,
[info] georgia.privacy.network,
[info] hk.privacy.network,
[info] in.privacy.network,
[info] israel.privacy.network,
,
2021-11-17 18:23:00,431 DEBG 'start-script' stdout output:,
[info] japan.privacy.network,
[info] japan-2.privacy.network,
[info] kazakhstan.privacy.network,
[info] macau.privacy.network,
[info] mongolia.privacy.network,
[info] philippines.privacy.network,
[info] qatar.privacy.network,
[info] saudiarabia.privacy.network,
[info] sg.privacy.network,
[info] srilanka.privacy.network,
[info] taiwan.privacy.network,
,
2021-11-17 18:23:00,432 DEBG 'start-script' stdout output:,
[info] tr.privacy.network,
[info] ae.privacy.network,
[info] vietnam.privacy.network,
[info] au-sydney.privacy.network,
[info] aus-melbourne.privacy.network,
[info] aus-perth.privacy.network,
[info] nz.privacy.network,
[info] dz.privacy.network,
[info] egypt.privacy.network,
[info] morocco.privacy.network,
[info] nigeria.privacy.network,
[info] za.privacy.network,
,
2021-11-17 18:23:11,181 DEBG 'start-script' stdout output:,
[info] Successfully assigned and bound incoming port '32484',
,
2021-11-17 18:23:11,619 DEBG 'watchdog-script' stdout output:,
[info] qBittorrent listening interface IP 0.0.0.0 and VPN provider IP 10.29.19.25 different, marking for reconfigure,
,
2021-11-17 18:23:11,624 DEBG 'watchdog-script' stdout output:,
[info] qBittorrent not running,
,
2021-11-17 18:23:11,628 DEBG 'watchdog-script' stdout output:,
fo] Privoxy not running,
,
2021-11-17 18:23:11,628 DEBG 'watchdog-script' stdout output:,
[info] qBittorrent incoming port 6881 and VPN incoming port 32484 different, marking for reconfigure,
,
2021-11-17 18:23:11,628 DEBG 'watchdog-script' stdout output:,
[info] Removing session lock file (if it exists)...,
,
2021-11-17 18:23:11,634 DEBG 'watchdog-script' stdout output:,
[info] Attempting to start qBittorrent...,
,
2021-11-17 18:23:11,678 DEBG 'watchdog-script' stdout output:,
[info] qBittorrent process started,
[info] Waiting for qBittorrent process to start listening on port 8080...,
,
2021-11-17 18:23:11,785 DEBG 'watchdog-script' stdout output:,
[info] qBittorrent process listening on port 8080,
,
2021-11-17 18:23:11,798 DEBG 'watchdog-script' stdout output:,
[info] Configuring Privoxy...,
,
2021-11-17 18:23:11,812 DEBG 'watchdog-script' stdout output:,
[info] Attempting to start Privoxy...,
,
2021-11-17 18:23:12,823 DEBG 'watchdog-script' stdout output:,
[info] Privoxy process started,
[info] Waiting for Privoxy process to start listening on port 8118...,
,
2021-11-17 18:23:12,830 DEBG 'watchdog-script' stdout output:,
[info] Privoxy process listening on port 8118,
,
2021-11-17 18:38:11,496 DEBG 'start-script' stdout output:,
[info] Successfully assigned and bound incoming port '32484',
,
halomakes commented 2 years ago

Seems like it could be related to this but I have not had any luck getting it to work https://bbs.archlinux.org/viewtopic.php?pid=1985776#p1985776

halomakes commented 2 years ago

updating my docker engine appears to have resolved this.