Jump to content
binhex

[Support] binhex - qBittorrentVPN

289 posts in this topic Last Reply

Recommended Posts

I'm running a Synology server with the qbittorrentvpn docker container.  For a few months the container was working great; recently i'm unable to access the Web UI and I'm noticing connectivity issues for connecting to PIA VPN.

 

See attached for my supervisord.log

 

I've tried a few different country VPN profiles provided from PIA.  I have also noticed the Web UI works if I disable the VPN env variable.   Any advice on how to further debug?   

 

Thank you!

supervisord.log

Edited by newojowen
added details for what I've tried to debug

Share this post


Link to post

So I'm new to using these torrent dockers on Unraid and have been using qBittorrent for a while on both OSX and Windows with no issues and that's why I'm even bothering with this one in the first place. Now I've set up both DelugeVPN and qBittorrentVPN with the same settings and same PIA servers but only Deluge works. When I go to download the Ubuntu Desktop ISO it downloads extremely fast 20-45 MB/s. Then I try the same on the qBittorrent docker and it starts at 130 KB/s and immediately decreases to 0. I have both set to TCP only and haven't changed anything else in the initial settings beyond the download directory.

 

Any idea what the issue could be on this one? If it comes down to it I can stick with Deluge but I'd like to figure out why I can't get this one to work. Thanks in advance.

Share this post


Link to post
39 minutes ago, Excessiive said:

When I go to download the Ubuntu Desktop ISO it downloads extremely fast 20-45 MB/s. Then I try the same on the qBittorrent docker and it starts at 130 KB/s and immediately decreases to 0. I have both set to TCP only and haven't changed anything else in the initial settings beyond the download directory.

i would suspect incorrectly defined setting in qbittorrent for the path to store downloads, can you post a screenshot of unraid config for this container and screenshot the qbittorrent settings screen.

Share this post


Link to post
9 hours ago, newojowen said:

I'm running a Synology server with the qbittorrentvpn docker container.  For a few months the container was working great; recently i'm unable to access the Web UI and I'm noticing connectivity issues for connecting to PIA VPN.

 

See attached for my supervisord.log

 

I've tried a few different country VPN profiles provided from PIA.  I have also noticed the Web UI works if I disable the VPN env variable.   Any advice on how to further debug?   

 

Thank you!

supervisord.log 9.49 kB · 0 downloads

well this is your issue:-

 

2019-10-14 00:04:16,246 DEBG 'start-script' stdout output:
[crit] ca-toronto.privateinternetaccess.com cannot be resolved, possible DNS issues

so your host cannot do dns resolution, or your isp is actively blocking dns resolution for known vpn providers, you need to figure out which it is.

Share this post


Link to post
33 minutes ago, binhex said:

i would suspect incorrectly defined setting in qbittorrent for the path to store downloads, can you post a screenshot of unraid config for this container and screenshot the qbittorrent settings screen.

You're right I'm a moron. In qBittorrent I had it set to actual share path and not /data/folder as specified in the container settings. Don't know if Deluge had that as its default in app settings or what since I don't recall specifically changing that before.

 

Thanks for the help and making these easy to set up containers.

Edited by Excessiive

Share this post


Link to post

I have 2 questions about the Listening Port under the connection tab. I am using PIA for my VPN. I found out what port my PIA desktop app was using (connecting to the same server as qbittorrent of course) and used that. But it does not seem to retain it, even after hitting save. It will save til the next restart, then it's back to some random port (and yes, "Use different port on each startup" is unchecked) Should I be using a specific port? Also, is there some way to force it to keep a specific port so I don't have to manually change it on each reboot.

 

Share this post


Link to post

Is there an easy way to reset the Web UI? Somehow on my iPad the lower portion Tabs can't be moved and are hidden. Thanks.

Share this post


Link to post

I'm struggling to work out what I seem to have missed with my QBittorrent config.

 

When I pull a torrent via Sonarr, it suggests that the listing I'm grabbing has 50+ seeders & leechers, but when in QBT, it lists a maximum of 1 or 2 of each.

 

This is my Compose file:

services:
  qbittorrent:
    container_name: qbittorrent
    image: binhex/arch-qbittorrentvpn:latest
    privileged: true
    cap_add:
      - NET_ADMIN
    environment:
      - LAN_NETWORK=192.168.0.0/24
      - NAME_SERVERS=1.1.1.1, 1.0.0.1
      - ENABLE_PRIVOXY=yes
      - PUID=1000
      - PGID=100
      - STRICT_PORT_FORWARD=yes
      - VPN_ENABLED=yes
      - VPN_PASS=**MYPASSWORD**
      - VPN_PROV=custom
      - VPN_USER=**MYUSERNAME**
    volumes:
      - /share/docker/configs/qbittorrent:/config
      - /share/docker/media/downloads:/data
    ports:
      - 6881:6881
      - 6881:6881/udp
      - 8118:8118
      - 8080:8080
    restart: unless-stopped

And the supervisord.log

Created by...
___.   .__       .__                   
\_ |__ |__| ____ |  |__   ____ ___  ___
 | __ \|  |/    \|  |  \_/ __ \\  \/  /
 | \_\ \  |   |  \   Y  \  ___/ >    < 
 |___  /__|___|  /___|  /\___  >__/\_ \
     \/        \/     \/     \/      \/
   https://hub.docker.com/u/binhex/

2019-10-22 11:35:26.314919 [info] System information Linux 70c62b5e13b2 4.14.24-qnap #1 SMP Sat Oct 5 02:03:04 CST 2019 x86_64 GNU/Linux
2019-10-22 11:35:26.415171 [info] PUID defined as '1000'
2019-10-22 11:35:26.597529 [info] PGID defined as '100'
2019-10-22 11:35:27.263667 [warn] UMASK not defined (via -e UMASK), defaulting to '000'
2019-10-22 11:35:27.379643 [info] Permissions already set for volume mappings
2019-10-22 11:35:27.478514 [info] VPN_ENABLED defined as 'yes'
2019-10-22 11:35:27.739679 [info] OpenVPN config file (ovpn extension) is located at /config/openvpn/au290.nordvpn.com.udp.ovpn
2019-10-22 11:35:28.046281 [info] VPN remote line defined as 'remote 45.248.76.108 1194'
2019-10-22 11:35:28.139127 [info] VPN_REMOTE defined as '45.248.76.108'
2019-10-22 11:35:28.230806 [info] VPN_PORT defined as '1194'
2019-10-22 11:35:28.333137 [info] VPN_PROTOCOL defined as 'udp'
2019-10-22 11:35:28.428641 [info] VPN_DEVICE_TYPE defined as 'tun0'
2019-10-22 11:35:28.525873 [info] VPN_PROV defined as 'custom'
2019-10-22 11:35:28.627930 [info] LAN_NETWORK defined as '192.168.0.0/26'
2019-10-22 11:35:28.717760 [warn] NAME_SERVERS not defined (via -e NAME_SERVERS), defaulting to name servers defined in readme.md
2019-10-22 11:35:28.806349 [info] VPN_USER defined as '**MYUSERNAME**'
2019-10-22 11:35:28.895189 [info] VPN_PASS defined as '**MYPASSWORD**'
2019-10-22 11:35:28.990252 [info] VPN_OPTIONS not defined (via -e VPN_OPTIONS)
2019-10-22 11:35:29.083329 [info] ENABLE_PRIVOXY defined as 'yes'
2019-10-22 11:35:29.170913 [warn] WEBUI_PORT not defined (via -e WEBUI_PORT), defaulting to '8080'
2019-10-22 11:35:29.416832 [info] Starting Supervisor...
2019-10-22 11:35:30,747 INFO Included extra file "/etc/supervisor/conf.d/qbittorrent.conf" during parsing
2019-10-22 11:35:30,747 INFO Set uid to user 0 succeeded
2019-10-22 11:35:30,753 INFO supervisord started with pid 7
2019-10-22 11:35:31,759 INFO spawned: 'start-script' with pid 147
2019-10-22 11:35:31,764 INFO spawned: 'watchdog-script' with pid 148
2019-10-22 11:35:31,765 INFO reaped unknown pid 8
2019-10-22 11:35:31,785 DEBG 'start-script' stdout output:
[info] VPN is enabled, beginning configuration of VPN

2019-10-22 11:35:31,786 INFO success: start-script entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2019-10-22 11:35:31,786 INFO success: watchdog-script entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2019-10-22 11:35:31,792 DEBG 'watchdog-script' stdout output:
[info] qBittorrent config file already exists, skipping copy
[info] Removing session lock file (if it exists)...

2019-10-22 11:35:31,857 DEBG 'start-script' stdout output:
[warn] Username contains characters which could cause authentication issues, please consider changing this if possible

2019-10-22 11:35:31,865 DEBG 'start-script' stdout output:
[warn] Password contains characters which could cause authentication issues, please consider changing this if possible

2019-10-22 11:35:32,066 DEBG 'start-script' stdout output:
[info] Default route for container is 172.29.0.1

2019-10-22 11:35:32,078 DEBG 'start-script' stdout output:
[info] Adding 209.222.18.222 to /etc/resolv.conf

2019-10-22 11:35:32,089 DEBG 'start-script' stdout output:
[info] Adding 84.200.69.80 to /etc/resolv.conf

2019-10-22 11:35:32,099 DEBG 'start-script' stdout output:
[info] Adding 37.235.1.174 to /etc/resolv.conf

2019-10-22 11:35:32,109 DEBG 'start-script' stdout output:
[info] Adding 1.1.1.1 to /etc/resolv.conf

2019-10-22 11:35:32,118 DEBG 'start-script' stdout output:
[info] Adding 209.222.18.218 to /etc/resolv.conf

2019-10-22 11:35:32,126 DEBG 'start-script' stdout output:
[info] Adding 37.235.1.177 to /etc/resolv.conf

2019-10-22 11:35:32,139 DEBG 'start-script' stdout output:
[info] Adding 84.200.70.40 to /etc/resolv.conf

2019-10-22 11:35:32,149 DEBG 'start-script' stdout output:
[info] Adding 1.0.0.1 to /etc/resolv.conf

2019-10-22 11:35:32,158 DEBG 'start-script' stdout output:
45.248.76.108

2019-10-22 11:35:32,196 DEBG 'start-script' stdout output:
[info] Attempting to load iptable_mangle module...

2019-10-22 11:35:32,200 DEBG 'start-script' stderr output:
modprobe: FATAL: Module iptable_mangle not found in directory /lib/modules/4.14.24-qnap

2019-10-22 11:35:32,201 DEBG 'start-script' stdout output:
[warn] Unable to load iptable_mangle module using modprobe, trying insmod...

2019-10-22 11:35:32,204 DEBG 'start-script' stderr output:
insmod: ERROR: could not load module /lib/modules/iptable_mangle.ko: No such file or directory

2019-10-22 11:35:32,205 DEBG 'start-script' stdout output:
[warn] Unable to load iptable_mangle module, you will not be able to connect to the applications Web UI or Privoxy outside of your LAN
[info] unRAID/Ubuntu users: Please attempt to load the module by executing the following on your host: '/sbin/modprobe iptable_mangle'
[info] Synology users: Please attempt to load the module by executing the following on your host: 'insmod /lib/modules/iptable_mangle.ko'

2019-10-22 11:35:32,260 DEBG 'start-script' stdout output:
[info] Docker network defined as    172.29.0.0/22

2019-10-22 11:35:32,274 DEBG 'start-script' stdout output:
[info] Adding 192.168.0.0/26 as route via docker eth0

2019-10-22 11:35:32,278 DEBG 'start-script' stdout output:
[info] ip route defined as follows...
--------------------

2019-10-22 11:35:32,280 DEBG 'start-script' stdout output:
default via 172.29.0.1 dev eth0 
172.29.0.0/22 dev eth0 proto kernel scope link src 172.29.0.11 
192.168.0.0/26 via 172.29.0.1 dev eth0 

2019-10-22 11:35:32,280 DEBG 'start-script' stdout output:
--------------------

2019-10-22 11:35:32,513 DEBG 'start-script' stdout output:
[info] iptables defined as follows...

2019-10-22 11:35:32,514 DEBG 'start-script' stdout output:
--------------------

2019-10-22 11:35:32,517 DEBG 'start-script' stdout output:
-P INPUT DROP
-P FORWARD DROP
-P OUTPUT DROP
-A INPUT -s 172.29.0.0/22 -d 172.29.0.0/22 -j ACCEPT
-A INPUT -i eth0 -p udp -m udp --sport 1194 -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 192.168.0.0/26 -i eth0 -p tcp -m tcp --dport 8080 -j ACCEPT
-A INPUT -s 192.168.0.0/26 -d 172.29.0.0/22 -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 172.29.0.0/22 -d 172.29.0.0/22 -j ACCEPT
-A OUTPUT -o eth0 -p udp -m udp --dport 1194 -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 192.168.0.0/26 -o eth0 -p tcp -m tcp --sport 8080 -j ACCEPT
-A OUTPUT -s 172.29.0.0/22 -d 192.168.0.0/26 -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

2019-10-22 11:35:32,523 DEBG 'start-script' stdout output:
--------------------
[info] Starting OpenVPN...

2019-10-22 11:35:32,675 DEBG 'start-script' stdout output:
Tue Oct 22 11:35:32 2019 WARNING: file 'credentials.conf' is group or others accessible
Tue Oct 22 11:35:32 2019 OpenVPN 2.4.7 [git:makepkg/2b8aec62d5db2c17+] x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [PKCS11] [MH/PKTINFO] [AEAD] built on Feb 19 2019
Tue Oct 22 11:35:32 2019 library versions: OpenSSL 1.1.1d  10 Sep 2019, LZO 2.10

2019-10-22 11:35:32,677 DEBG 'start-script' stdout output:
[info] OpenVPN started

2019-10-22 11:35:32,727 DEBG 'start-script' stdout output:
Tue Oct 22 11:35:32 2019 WARNING: --ping should normally be used with --ping-restart or --ping-exit
Tue Oct 22 11:35:32 2019 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts

2019-10-22 11:35:32,728 DEBG 'start-script' stdout output:
Tue Oct 22 11:35:32 2019 Outgoing Control Channel Authentication: Using 512 bit message hash 'SHA512' for HMAC authentication
Tue Oct 22 11:35:32 2019 Incoming Control Channel Authentication: Using 512 bit message hash 'SHA512' for HMAC authentication

2019-10-22 11:35:32,730 DEBG 'start-script' stdout output:
Tue Oct 22 11:35:32 2019 TCP/UDP: Preserving recently used remote address: [AF_INET]45.248.76.108:1194
Tue Oct 22 11:35:32 2019 Socket Buffers: R=[819200->819200] S=[819200->819200]
Tue Oct 22 11:35:32 2019 UDP link local: (not bound)
Tue Oct 22 11:35:32 2019 UDP link remote: [AF_INET]45.248.76.108:1194

2019-10-22 11:35:32,762 DEBG 'start-script' stdout output:
Tue Oct 22 11:35:32 2019 TLS: Initial packet from [AF_INET]45.248.76.108:1194, sid=4b2aa035 50c38b27

2019-10-22 11:35:32,795 DEBG 'start-script' stdout output:
Tue Oct 22 11:35:32 2019 VERIFY OK: depth=2, C=PA, O=NordVPN, CN=NordVPN Root CA

2019-10-22 11:35:32,797 DEBG 'start-script' stdout output:
Tue Oct 22 11:35:32 2019 VERIFY OK: depth=1, C=PA, O=NordVPN, CN=NordVPN CA3

2019-10-22 11:35:32,799 DEBG 'start-script' stdout output:
Tue Oct 22 11:35:32 2019 VERIFY KU OK
Tue Oct 22 11:35:32 2019 Validating certificate extended key usage
Tue Oct 22 11:35:32 2019 ++ Certificate has EKU (str) TLS Web Server Authentication, expects TLS Web Server Authentication

2019-10-22 11:35:32,799 DEBG 'start-script' stdout output:
Tue Oct 22 11:35:32 2019 VERIFY EKU OK
Tue Oct 22 11:35:32 2019 VERIFY OK: depth=0, CN=au290.nordvpn.com

2019-10-22 11:35:33,153 DEBG 'start-script' stdout output:
Tue Oct 22 11:35:33 2019 Control Channel: TLSv1.2, cipher TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384, 4096 bit RSA
Tue Oct 22 11:35:33 2019 [au290.nordvpn.com] Peer Connection Initiated with [AF_INET]45.248.76.108:1194

2019-10-22 11:35:34,380 DEBG 'start-script' stdout output:
Tue Oct 22 11:35:34 2019 SENT CONTROL [au290.nordvpn.com]: 'PUSH_REQUEST' (status=1)

2019-10-22 11:35:34,398 DEBG 'start-script' stdout output:
Tue Oct 22 11:35:34 2019 PUSH: Received control message: 'PUSH_REPLY,redirect-gateway def1,dhcp-option DNS 103.86.96.100,dhcp-option DNS 103.86.99.100,sndbuf 524288,rcvbuf 524288,explicit-exit-notify,comp-lzo no,route-gateway 10.8.8.1,topology subnet,ping 60,ping-restart 180,ifconfig 10.8.8.28 255.255.255.0,peer-id 24,cipher AES-256-GCM'

2019-10-22 11:35:34,399 DEBG 'start-script' stdout output:
Tue Oct 22 11:35:34 2019 OPTIONS IMPORT: timers and/or timeouts modified
Tue Oct 22 11:35:34 2019 OPTIONS IMPORT: explicit notify parm(s) modified
Tue Oct 22 11:35:34 2019 OPTIONS IMPORT: compression parms modified
Tue Oct 22 11:35:34 2019 OPTIONS IMPORT: --sndbuf/--rcvbuf options modified
Tue Oct 22 11:35:34 2019 Socket Buffers: R=[819200->1048576] S=[819200->1048576]
Tue Oct 22 11:35:34 2019 OPTIONS IMPORT: --ifconfig/up options modified
Tue Oct 22 11:35:34 2019 OPTIONS IMPORT: route options modified
Tue Oct 22 11:35:34 2019 OPTIONS IMPORT: route-related options modified
Tue Oct 22 11:35:34 2019 OPTIONS IMPORT: --ip-win32 and/or --dhcp-option options modified
Tue Oct 22 11:35:34 2019 OPTIONS IMPORT: peer-id set
Tue Oct 22 11:35:34 2019 OPTIONS IMPORT: adjusting link_mtu to 1657
Tue Oct 22 11:35:34 2019 OPTIONS IMPORT: data channel crypto options modified
Tue Oct 22 11:35:34 2019 Data Channel: using negotiated cipher 'AES-256-GCM'

2019-10-22 11:35:34,400 DEBG 'start-script' stdout output:
Tue Oct 22 11:35:34 2019 Outgoing Data Channel: Cipher 'AES-256-GCM' initialized with 256 bit key
Tue Oct 22 11:35:34 2019 Incoming Data Channel: Cipher 'AES-256-GCM' initialized with 256 bit key
Tue Oct 22 11:35:34 2019 ROUTE_GATEWAY 172.29.0.1/255.255.252.0 IFACE=eth0 HWADDR=02:42:ac:1d:00:0b

2019-10-22 11:35:34,400 DEBG 'start-script' stdout output:
Tue Oct 22 11:35:34 2019 TUN/TAP device tun0 opened

2019-10-22 11:35:34,401 DEBG 'start-script' stdout output:
Tue Oct 22 11:35:34 2019 TUN/TAP TX queue length set to 100
Tue Oct 22 11:35:34 2019 /usr/bin/ip link set dev tun0 up mtu 1500

2019-10-22 11:35:34,405 DEBG 'start-script' stdout output:
Tue Oct 22 11:35:34 2019 /usr/bin/ip addr add dev tun0 10.8.8.28/24 broadcast 10.8.8.255

2019-10-22 11:35:34,410 DEBG 'start-script' stdout output:
Tue Oct 22 11:35:34 2019 /root/openvpnup.sh tun0 1500 1585 10.8.8.28 255.255.255.0 init

2019-10-22 11:35:34,415 DEBG 'start-script' stdout output:
Tue Oct 22 11:35:34 2019 /usr/bin/ip route add 45.248.76.108/32 via 172.29.0.1

2019-10-22 11:35:34,418 DEBG 'start-script' stdout output:
Tue Oct 22 11:35:34 2019 /usr/bin/ip route add 0.0.0.0/1 via 10.8.8.1

2019-10-22 11:35:34,423 DEBG 'start-script' stdout output:
Tue Oct 22 11:35:34 2019 /usr/bin/ip route add 128.0.0.0/1 via 10.8.8.1

2019-10-22 11:35:34,427 DEBG 'start-script' stdout output:
Tue Oct 22 11:35:34 2019 Initialization Sequence Completed

2019-10-22 11:35:34,557 DEBG 'start-script' stdout output:
[info] Application does not require port forwarding or VPN provider is != pia, skipping incoming port assignment

2019-10-22 11:35:34,558 DEBG 'start-script' stdout output:
[info] Checking we can resolve name 'www.google.com' to address...

2019-10-22 11:35:34,893 DEBG 'start-script' stdout output:
[info] DNS operational, we can resolve name 'www.google.com' to address '216.58.206.132'

2019-10-22 11:35:34,899 DEBG 'start-script' stdout output:
[info] Attempting to get external IP using Name Server 'ns1.google.com'...

2019-10-22 11:35:35,395 DEBG 'start-script' stdout output:
[info] Successfully retrieved external IP address 45.248.76.109

2019-10-22 11:35:35,506 DEBG 'watchdog-script' stdout output:
[info] qBittorrent listening interface IP 0.0.0.0 and VPN provider IP 10.8.8.28 different, marking for reconfigure

2019-10-22 11:35:35,515 DEBG 'watchdog-script' stdout output:
[info] qBittorrent not running

2019-10-22 11:35:35,523 DEBG 'watchdog-script' stdout output:
[info] Privoxy not running

2019-10-22 11:35:35,524 DEBG 'watchdog-script' stdout output:
[info] Removing session lock file (if it exists)...

2019-10-22 11:35:35,526 DEBG 'watchdog-script' stdout output:
[info] Attempting to start qBittorrent...

2019-10-22 11:35:35,828 DEBG 'watchdog-script' stdout output:
[info] qBittorrent process started
[info] Waiting for qBittorrent process to start listening on port 8080...

2019-10-22 11:35:35,963 DEBG 'watchdog-script' stdout output:
[info] qBittorrent process listening on port 8080

2019-10-22 11:35:36,046 DEBG 'watchdog-script' stdout output:
[info] Attempting to start Privoxy...

2019-10-22 11:35:37,060 DEBG 'watchdog-script' stdout output:
[info] Privoxy process started
[info] Waiting for Privoxy process to start listening on port 8118...

2019-10-22 11:35:37,074 DEBG 'watchdog-script' stdout output:
[info] Privoxy process listening on port 8118

I'm not sure if I am overlooking something that might be causing my issue. Any help is appreciated.

Share this post


Link to post
4 hours ago, itsonlybarney said:

I'm not sure if I am overlooking something that might be causing my issue. Any help is appreciated.

i see you aren't using vpn provider PIA, so you will need to sort out port forwarding yourself, until you get this working you will not be able to connect to many peers.

Share this post


Link to post

Unraid Newb here. I recently setup a fully automated experience with Plex, Sonarr, Radarr, qbittorrent, and Jackett. I have qbittorrent set to automatically remove torrents after either a 1:1 ratio or after 7 days (to fulfill all tracker seeding requirements). However, I noticed its removing the torrent from qbitt but not removing it from /mnt/user/downloads. So I downloaded CA User Scripts and wrote a one liner to handle this:

sudo find /mnt/user/downloads/ -mtime +7 -exec rm -rf {} \;

Is there a better way to do this? Its preferable to remove the file in /mnt/user/downloads by the downloader. Does anyone know if qbittorent can be configured to do this or if rtorrent does this?

Share this post


Link to post

Just noticed this is still a revision behind, is there a reason why?

Share this post


Link to post
On 10/23/2019 at 6:57 PM, xTxHiLLx said:

Unraid Newb here. I recently setup a fully automated experience with Plex, Sonarr, Radarr, qbittorrent, and Jackett. I have qbittorrent set to automatically remove torrents after either a 1:1 ratio or after 7 days (to fulfill all tracker seeding requirements). However, I noticed its removing the torrent from qbitt but not removing it from /mnt/user/downloads. So I downloaded CA User Scripts and wrote a one liner to handle this:


sudo find /mnt/user/downloads/ -mtime +7 -exec rm -rf {} \;

Is there a better way to do this? Its preferable to remove the file in /mnt/user/downloads by the downloader. Does anyone know if qbittorent can be configured to do this or if rtorrent does this?

In Qbittorrent, change it to "pause torrent" sonarr/radarr will actually remove it from both qbittorrent and from your downloads folder when it's finished. I made this mistake at first too. No need for user scripts here. 

Share this post


Link to post
9 hours ago, 2Piececombo said:

In Qbittorrent, change it to "pause torrent" sonarr/radarr will actually remove it from both qbittorrent and from your downloads folder when it's finished. I made this mistake at first too. No need for user scripts here. 

The latest revision of QBitTorrent has the functionality built in to remove the files too on completion to make this a seamless process but this container hasn’t updated to that.

Share this post


Link to post
The latest revision of QBitTorrent has the functionality built in to remove the files too on completion to make this a seamless process but this container hasn’t updated to that.
It's been updated (automatically) to latest stable, pull down if you want to update.

Sent from my CLT-L09 using Tapatalk

Share this post


Link to post

Practically at my wits end on trying to connect to the webui. The webui loads if I am disconnected from the VPN but as soon as I connect to it then the webui will not load at all. I tried to narrow down the issue in the log file but I don't see anything off.

 

Any help would be greatly appreciated, thank you.

 

2019-10-25 23:28:21.765904 [info] System information Linux 474464c77acd 4.19.56-Unraid #1 SMP Tue Jun 25 10:19:34 PDT 2019 x86_64 GNU/Linux
2019-10-25 23:28:21.808124 [info] PUID defined as '99'
2019-10-25 23:28:21.852179 [info] PGID defined as '100'
2019-10-25 23:28:22.032116 [info] UMASK defined as '000'
2019-10-25 23:28:22.073121 [info] Permissions already set for volume mappings
2019-10-25 23:28:22.119219 [info] VPN_ENABLED defined as 'yes'
2019-10-25 23:28:22.168301 [info] OpenVPN config file (ovpn extension) is located at /config/openvpn/ca-aes-256-cbc-udp-dns.ovpn
2019-10-25 23:28:22.246016 [info] VPN remote line defined as 'remote ca-montreal.privateinternetaccess.com 1197'
2019-10-25 23:28:22.288679 [info] VPN_REMOTE defined as 'ca-montreal.privateinternetaccess.com'
2019-10-25 23:28:22.340360 [info] VPN_PORT defined as '1197'
2019-10-25 23:28:22.387071 [info] VPN_PROTOCOL defined as 'udp'
2019-10-25 23:28:22.436073 [info] VPN_DEVICE_TYPE defined as 'tun0'
2019-10-25 23:28:22.479142 [info] VPN_PROV defined as 'pia'
2019-10-25 23:28:22.526027 [info] LAN_NETWORK defined as '10.10.10.0/24'
2019-10-25 23:28:22.567427 [info] NAME_SERVERS defined as '209.222.18.222,84.200.69.80,37.235.1.174,1.1.1.1,209.222.18.218,37.235.1.177,84.200.70.40,1.0.0.1'
2019-10-25 23:28:22.608852 [info] VPN_USER defined as 'xxxxxxx'
2019-10-25 23:28:22.650093 [info] VPN_PASS defined as 'xxxxxxx'
2019-10-25 23:28:22.693923 [info] VPN_OPTIONS not defined (via -e VPN_OPTIONS)
2019-10-25 23:28:22.735930 [info] STRICT_PORT_FORWARD defined as 'yes'
2019-10-25 23:28:22.777320 [info] ENABLE_PRIVOXY defined as 'yes'
2019-10-25 23:28:22.818997 [info] WEBUI_PORT defined as '8080'
2019-10-25 23:28:22.861633 [info] Starting Supervisor...
2019-10-25 23:28:23,097 INFO Included extra file "/etc/supervisor/conf.d/qbittorrent.conf" during parsing
2019-10-25 23:28:23,097 INFO Set uid to user 0 succeeded
2019-10-25 23:28:23,100 INFO supervisord started with pid 6
2019-10-25 23:28:24,103 INFO spawned: 'start-script' with pid 151
2019-10-25 23:28:24,105 INFO spawned: 'watchdog-script' with pid 152
2019-10-25 23:28:24,106 INFO reaped unknown pid 7
2019-10-25 23:28:24,113 DEBG 'start-script' stdout output:
[info] VPN is enabled, beginning configuration of VPN

2019-10-25 23:28:24,114 INFO success: start-script entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2019-10-25 23:28:24,114 INFO success: watchdog-script entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2019-10-25 23:28:24,116 DEBG 'watchdog-script' stdout output:
[info] qBittorrent config file already exists, skipping copy

2019-10-25 23:28:24,117 DEBG 'watchdog-script' stdout output:
[info] Removing session lock file (if it exists)...

2019-10-25 23:28:24,186 DEBG 'start-script' stdout output:
[info] Default route for container is 10.10.10.1

2019-10-25 23:28:24,190 DEBG 'start-script' stdout output:
[info] Adding 209.222.18.222 to /etc/resolv.conf

2019-10-25 23:28:24,194 DEBG 'start-script' stdout output:
[info] Adding 84.200.69.80 to /etc/resolv.conf

2019-10-25 23:28:24,198 DEBG 'start-script' stdout output:
[info] Adding 37.235.1.174 to /etc/resolv.conf

2019-10-25 23:28:24,202 DEBG 'start-script' stdout output:
[info] Adding 1.1.1.1 to /etc/resolv.conf

2019-10-25 23:28:24,206 DEBG 'start-script' stdout output:
[info] Adding 209.222.18.218 to /etc/resolv.conf

2019-10-25 23:28:24,210 DEBG 'start-script' stdout output:
[info] Adding 37.235.1.177 to /etc/resolv.conf

2019-10-25 23:28:24,214 DEBG 'start-script' stdout output:
[info] Adding 84.200.70.40 to /etc/resolv.conf

2019-10-25 23:28:24,217 DEBG 'start-script' stdout output:
[info] Adding 1.0.0.1 to /etc/resolv.conf

2019-10-25 23:28:24,295 DEBG 'start-script' stdout output:
[info] Docker network defined as    10.10.10.0/24

2019-10-25 23:28:24,299 DEBG 'start-script' stdout output:
[info] Adding 10.10.10.0/24 as route via docker eth0

2019-10-25 23:28:24,301 DEBG 'start-script' stderr output:
RTNETLINK answers: File exists

2019-10-25 23:28:24,301 DEBG 'start-script' stdout output:
[info] ip route defined as follows...
--------------------

2019-10-25 23:28:24,302 DEBG 'start-script' stdout output:
default via 10.10.10.1 dev eth0 
10.10.10.0/24 dev eth0 proto kernel scope link src 10.10.10.14 

2019-10-25 23:28:24,302 DEBG 'start-script' stdout output:
--------------------

2019-10-25 23:28:24,305 DEBG 'start-script' stdout output:
iptable_mangle         16384  1
ip_tables              24576  3 iptable_filter,iptable_nat,iptable_mangle

2019-10-25 23:28:24,306 DEBG 'start-script' stdout output:
[info] iptable_mangle support detected, adding fwmark for tables

2019-10-25 23:28:24,353 DEBG 'start-script' stdout output:
[info] iptables defined as follows...
--------------------

2019-10-25 23:28:24,354 DEBG 'start-script' stdout output:
-P INPUT DROP
-P FORWARD DROP
-P OUTPUT DROP
-A INPUT -s 10.10.10.0/24 -d 10.10.10.0/24 -j ACCEPT
-A INPUT -i eth0 -p udp -m udp --sport 1197 -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 10.10.10.0/24 -i eth0 -p tcp -m tcp --dport 8080 -j ACCEPT
-A INPUT -s 10.10.10.0/24 -d 10.10.10.0/24 -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 10.10.10.0/24 -d 10.10.10.0/24 -j ACCEPT
-A OUTPUT -o eth0 -p udp -m udp --dport 1197 -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 10.10.10.0/24 -o eth0 -p tcp -m tcp --sport 8080 -j ACCEPT
-A OUTPUT -s 10.10.10.0/24 -d 10.10.10.0/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

2019-10-25 23:28:24,356 DEBG 'start-script' stdout output:
--------------------

2019-10-25 23:28:24,357 DEBG 'start-script' stdout output:
[info] Starting OpenVPN...

2019-10-25 23:28:24,365 DEBG 'start-script' stdout output:
Fri Oct 25 23:28:24 2019 WARNING: file 'credentials.conf' is group or others accessible
Fri Oct 25 23:28:24 2019 OpenVPN 2.4.7 [git:makepkg/2b8aec62d5db2c17+] x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [PKCS11] [MH/PKTINFO] [AEAD] built on Feb 19 2019

2019-10-25 23:28:24,365 DEBG 'start-script' stdout output:
Fri Oct 25 23:28:24 2019 library versions: OpenSSL 1.1.1d  10 Sep 2019, LZO 2.10

2019-10-25 23:28:24,366 DEBG 'start-script' stdout output:
[info] OpenVPN started

2019-10-25 23:28:24,366 DEBG 'start-script' stdout output:
Fri Oct 25 23:28:24 2019 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts

2019-10-25 23:28:24,367 DEBG 'start-script' stdout output:
Fri Oct 25 23:28:24 2019 TCP/UDP: Preserving recently used remote address: [AF_INET]199.229.249.188:1197
Fri Oct 25 23:28:24 2019 UDP link local: (not bound)

2019-10-25 23:28:24,367 DEBG 'start-script' stdout output:
Fri Oct 25 23:28:24 2019 UDP link remote: [AF_INET]199.229.249.188:1197

2019-10-25 23:28:24,655 DEBG 'start-script' stdout output:
Fri Oct 25 23:28:24 2019 [f745692e9b628ac88bd01142599c73eb] Peer Connection Initiated with [AF_INET]199.229.249.188:1197

2019-10-25 23:28:25,902 DEBG 'start-script' stdout output:
Fri Oct 25 23:28:25 2019 TUN/TAP device tun0 opened
Fri Oct 25 23:28:25 2019 /usr/bin/ip link set dev tun0 up mtu 1500

2019-10-25 23:28:25,903 DEBG 'start-script' stdout output:
Fri Oct 25 23:28:25 2019 /usr/bin/ip addr add dev tun0 local 10.79.10.6 peer 10.79.10.5

2019-10-25 23:28:25,905 DEBG 'start-script' stdout output:
Fri Oct 25 23:28:25 2019 /root/openvpnup.sh tun0 1500 1570 10.79.10.6 10.79.10.5 init

2019-10-25 23:28:25,913 DEBG 'start-script' stdout output:
Fri Oct 25 23:28:25 2019 Initialization Sequence Completed

2019-10-25 23:28:26,026 DEBG 'start-script' stdout output:
[info] Port forwarding is enabled
[info] Checking endpoint 'ca-montreal.privateinternetaccess.com' is port forward enabled...

2019-10-25 23:28:26,030 DEBG 'start-script' stdout output:
[info] Attempting to curl https://www.privateinternetaccess.com/vpninfo/servers?version=82...

2019-10-25 23:28:26,487 DEBG 'start-script' stdout output:
[info] Curl successful for https://www.privateinternetaccess.com/vpninfo/servers?version=82, response code 200

2019-10-25 23:28:26,583 DEBG 'start-script' stdout output:
[info] PIA endpoint 'ca-montreal.privateinternetaccess.com' is in the list of endpoints that support port forwarding

2019-10-25 23:28:26,584 DEBG 'start-script' stdout output:
[info] List of PIA endpoints that support port forwarding:-
[info] ca-toronto.privateinternetaccess.com
[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...

2019-10-25 23:28:26,590 DEBG 'start-script' stdout output:
[info] Attempting to curl http://209.222.18.222:2000/?client_id=1b6f744fca7b35d26d798539e2caa5318fa5c7e3f3989e9d2ae4fba436cbfa96...

2019-10-25 23:28:27,103 DEBG 'start-script' stdout output:
[info] Curl successful for http://209.222.18.222:2000/?client_id=1b6f744fca7b35d26d798539e2caa5318fa5c7e3f3989e9d2ae4fba436cbfa96, response code 200

2019-10-25 23:28:27,148 DEBG 'start-script' stdout output:
[info] Successfully assigned incoming port 33767

2019-10-25 23:28:27,150 DEBG 'start-script' stdout output:
[info] Checking we can resolve name 'www.google.com' to address...

2019-10-25 23:28:27,306 DEBG 'start-script' stdout output:
[info] DNS operational, we can resolve name 'www.google.com' to address '216.58.213.100'

2019-10-25 23:28:27,308 DEBG 'start-script' stdout output:
[info] Attempting to get external IP using Name Server 'ns1.google.com'...

2019-10-25 23:28:27,595 DEBG 'start-script' stdout output:
[info] Successfully retrieved external IP address 199.229.249.188

2019-10-25 23:28:28,079 DEBG 'watchdog-script' stdout output:
[info] qBittorrent listening interface IP 0.0.0.0 and VPN provider IP 10.79.10.6 different, marking for reconfigure

2019-10-25 23:28:28,083 DEBG 'watchdog-script' stdout output:
[info] qBittorrent not running

2019-10-25 23:28:28,087 DEBG 'watchdog-script' stdout output:
[info] Privoxy not running

2019-10-25 23:28:28,088 DEBG 'watchdog-script' stdout output:
[info] qBittorrent incoming port 6881 and VPN incoming port 33767 different, marking for reconfigure
[info] Removing session lock file (if it exists)...

2019-10-25 23:28:28,089 DEBG 'watchdog-script' stdout output:
[info] Attempting to start qBittorrent...

2019-10-25 23:28:28,110 DEBG 'watchdog-script' stdout output:
[info] qBittorrent process started
[info] Waiting for qBittorrent process to start listening on port 8080...

2019-10-25 23:28:28,232 DEBG 'watchdog-script' stdout output:
[info] qBittorrent process listening on port 8080

2019-10-25 23:28:28,294 DEBG 'watchdog-script' stdout output:
[info] Attempting to start Privoxy...

2019-10-25 23:28:29,301 DEBG 'watchdog-script' stdout output:
[info] Privoxy process started
[info] Waiting for Privoxy process to start listening on port 8118...

2019-10-25 23:28:29,311 DEBG 'watchdog-script' stdout output:
[info] Privoxy process listening on port 8118

 

Share this post


Link to post

Just a heads up, I update to the latest build today and when the docker restarted it had switched the default /data directory to the /config directory. I had to manually change the settings in qBittorrent.

Share this post


Link to post

Hey Everyone, 

Hopefully this hasn't been asked a bunch of times but here we go.

 

I just set up binhex's qbvpn and love it. It's all up and running and downloading torrents perfectly.

However, I cannot seem to upload, nobody can connect to me? 


I'm testing with an ubuntu iso and although downloading was great I just can't connect to peers to upload.

 

Is there something I need to do? ExpressVPN doesn't support port forwarding as far as I know, but I'm just wondering if theres a variable I need to set up for my docker.

 

THanks!

Share this post


Link to post
1 hour ago, amp3d said:

nobody can connect to me

 

1 hour ago, amp3d said:

ExpressVPN doesn't support port forwarding

There's your answer. Without a valid port forward through the VPN tunnel, nobody can initiate a connection to you.

Share this post


Link to post
25 minutes ago, jonathanm said:

 

There's your answer. Without a valid port forward through the VPN tunnel, nobody can initiate a connection to you.

Ahh, I assumed this was the case.

 

I've just purchased a 3 day demo of AirVPN to see if I could get that working. I've added a port forwarding port on their website, and put the same corresponding port into the options of qbittorent, although I'm still experiencing the same thing :/

 

Does my docker container need to reference the port that I forwarded on the AirVPN website?

 

FYI, I'm testing this using the public ubuntu torrent that should have hundreds of people downloading :) Best way I could think of to test seeding

Edited by amp3d

Share this post


Link to post
12 hours ago, amp3d said:

I've added a port forwarding port on their website, and put the same corresponding port into the options of qbittorent, although I'm still experiencing the same thing

that should be it, double check the port assigned to you allows tcp and udp connections, double check the port in qbittorrent is set for 'incoming connections' and isnt set to automatic assignment.

Share this post


Link to post
Hi,
 
Didn't get any replies in the CA Appdata Backup plugin thread, so trying here. Any ideas what might cause the issue described on the link below?
 
https://forums.unraid.net/topic/61211-plugin-ca-appdata-backup-restore-v2/page/15/?tab=comments#comment-782926
 
Any help really appreciated!
Your should be exempting this container from ca backup, there is potential for IP leakage caused by the pause and resume of the container.

Sent from my CLT-L09 using Tapatalk

Share this post


Link to post
12 hours ago, binhex said:

that should be it, double check the port assigned to you allows tcp and udp connections, double check the port in qbittorrent is set for 'incoming connections' and isnt set to automatic assignment.

Ah got it! I got it to work as you mentioned with PIA. I don't think I'm gunna stick with PIA as it has some limitations at my school, but it does work with my unraid server. At least I know what I gotta do to get this stuff working. Definitely need port forwarding for torrents. Thanks man!

Share this post


Link to post
On 10/26/2019 at 4:05 PM, jerseyknoll said:

Just a heads up, I update to the latest build today and when the docker restarted it had switched the default /data directory to the /config directory. I had to manually change the settings in qBittorrent.

I may be having this issue as well. What is the default data directory suppose to be? Just /data?

 

edit: i can not get the webpage to load at all. I reinstalled it 3 times and does not seem to fix. Sonarr and radarr can ping it, and send downloads to it, but i can not load the webpage. Any ideas?

 

edit 2: if i disable vpn the webpage works, but with vpn set to yes, it does not. WTF is going on :(

edit3: so using firefox downloaded from docker itself and going to website, it works, but not from a browser on the network.

Edited by nyteghost

Share this post


Link to post
12 hours ago, nyteghost said:

I may be having this issue as well. What is the default data directory suppose to be? Just /data?

 

edit: i can not get the webpage to load at all. I reinstalled it 3 times and does not seem to fix. Sonarr and radarr can ping it, and send downloads to it, but i can not load the webpage. Any ideas?

 

edit 2: if i disable vpn the webpage works, but with vpn set to yes, it does not. WTF is going on :(

edit3: so using firefox downloaded from docker itself and going to website, it works, but not from a browser on the network.

For me the /data setting in the qBittorrent web ui is /data/complete. After a couple of updates back I couldn't access the web ui locally via the IP address but I could access by domain name via reverse poxy. I just tried the IP address after the last update and it's working again. 

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.