[Support] binhex - qBittorrentVPN


binhex

1180 posts in this topic Last Reply

Recommended Posts

Hi all,

 

I'm having an issue with qbittorrentvpn where after a couple of days of running fine, new torrents will add to the list (for example automatically added via sonarr, but can be manual as well) but won't start downloading or even download the metadata. If I restart the docker container, it then starts normally. I'm pretty sure existing seeds will continue to periodically upload. The logs mention an inactivity timeout, and I wonder whether this is related. 

 

Quote

2020-07-21 02:10:49,054 DEBG 'start-script' stdout output:
Tue Jul 21 02:10:48 2020 [openvpn2.vpnunlimitedapp.com] Inactivity timeout (--ping-exit), exiting

2020-07-21 02:10:49,528 DEBG 'start-script' stdout output:
Tue Jul 21 02:10:49 2020 /usr/bin/ip addr del dev tun0 local 10.200.0.206 peer 10.200.0.205

2020-07-21 02:10:49,568 DEBG 'start-script' stdout output:
Tue Jul 21 02:10:49 2020 SIGTERM[soft,ping-exit] received, process exiting

2020-07-21 02:11:19,725 DEBG 'start-script' stdout output:
[warn] OpenVPN process terminated, restarting OpenVPN...

2020-07-21 02:11:19,774 DEBG 'start-script' stdout output:
Tue Jul 21 02:11:19 2020 WARNING: file 'credentials.conf' is group or others accessible
Tue Jul 21 02:11:19 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 Jul 21 02:11:19 2020 library versions: OpenSSL 1.1.1g 21 Apr 2020, LZO 2.10

2020-07-21 02:11:19,775 DEBG 'start-script' stdout output:
Tue Jul 21 02:11:19 2020 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts

2020-07-21 02:11:19,775 DEBG 'start-script' stdout output:
[info] OpenVPN restarted

2020-07-21 02:11:19,778 DEBG 'start-script' stdout output:
Tue Jul 21 02:11:19 2020 TCP/UDP: Preserving recently used remote address: [AF_INET]209.58.135.106:1194
Tue Jul 21 02:11:19 2020 UDP link local: (not bound)
Tue Jul 21 02:11:19 2020 UDP link remote: [AF_INET]209.58.135.106:1194

2020-07-21 02:11:20,555 DEBG 'start-script' stdout output:
Tue Jul 21 02:11:20 2020 [openvpn2.vpnunlimitedapp.com] Peer Connection Initiated with [AF_INET]209.58.135.106:1194

2020-07-21 02:11:27,227 DEBG 'start-script' stdout output:
Tue Jul 21 02:11:27 2020 TUN/TAP device tun0 opened
Tue Jul 21 02:11:27 2020 /usr/bin/ip link set dev tun0 up mtu 1500

2020-07-21 02:11:27,263 DEBG 'start-script' stdout output:
Tue Jul 21 02:11:27 2020 /usr/bin/ip addr add dev tun0 local 10.200.0.62 peer 10.200.0.61

2020-07-21 02:11:27,264 DEBG 'start-script' stdout output:
Tue Jul 21 02:11:27 2020 /root/openvpnup.sh tun0 1500 1553 10.200.0.62 10.200.0.61 init

2020-07-21 02:11:27,401 DEBG 'start-script' stdout output:
Tue Jul 21 02:11:27 2020 Initialization Sequence Completed

2020-07-21 02:11:28,049 DEBG 'start-script' stdout output:
[info] Application does not require port forwarding or VPN provider is != pia, skipping incoming port assignment

2020-07-21 02:11:28,066 DEBG 'start-script' stdout output:
[info] Checking we can resolve name 'www.google.com' to address...

2020-07-21 02:11:28,619 DEBG 'start-script' stdout output:
[info] DNS operational, we can resolve name 'www.google.com' to address '216.58.195.68'

2020-07-21 02:11:28,990 DEBG 'start-script' stdout output:
[info] Attempting to get external IP using Name Server 'ns1.google.com'...

2020-07-21 02:11:29,751 DEBG 'start-script' stdout output:
[info] Successfully retrieved external IP address 209.58.135.106

2020-07-21 02:11:49,771 DEBG 'watchdog-script' stdout output:
[info] qBittorrent listening interface IP 10.200.0.206 and VPN provider IP 10.200.0.62 different, marking for reconfigure

 

So my questions are, does anyone else have this problem, and is anyone aware of a solution? Or, if not, could someone help me with a script that restarts qbittorentvpn every 24 hours or so?

 

Thanks!

Link to post
  • Replies 1.2k
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Popular Posts

@binhex Does the container only use a single .ovpn file from the appdata directory for configuration? Can I put all of the PIA port-forwarding capable server .ovpn files in there so that it can try th

Support for multi remote endpoints and PIA 'Next-Gen' networks now complete, see Q19 and Q20 for details:- https://github.com/binhex/documentation/blob/master/docker/faq/vpn.md

As we all know, PIA is currently moving their infrastructure, which results in pretty terribly reliability and constant connection issues when using their CurrentGen Network. Today, however, I discove

Posted Images

Next time it happens test container connectivity by running something like:

docker exec -it vpn curl ipinfo.io

I renamed my container vpn. Substitute whatever name you have in the command above. If everything's working it should return your VPN IP and additional details.

 

To test the connection and restart containers automatically you can run Rebuild-DNDC available in the Community Apps. Detailed description here:

https://github.com/elmerfdz/rebuild-dndc

Link to post
On 4/26/2019 at 12:45 PM, Fraih said:

Until yesterday I had never been able to reach qBittorrent GUI through ZeroTier. Maybe I did something else, but I will switch it back to "yes" later when I get home and I will try again to see if the problem comes back by only changing that...

Did we ever figure out what the issue was here? I am experiencing the same problem.

Link to post
5 hours ago, alexacallmebaka said:

Did we ever figure out what the issue was here? I am experiencing the same problem.

Hello, I don't remember I did anything else than changing STRICT_PORT_FORWARD to no, but binhex already said that it shouldn't affect anything. I have ZeroTier as a host and qBittorrent as a bridge.

Link to post

Hey folks, I'm having issues with downloading anything in qbittorrent. I've set the directories up as I want but it wont download anything, if I put them back to default it will. So obviously I'm not putting correct download location in as Im a first time user of unraid. Can anyone help me out?

 

Qbittorrent details from docker page:

/data/mnt/user/Torrents/Downloads/

/config/mnt/user/appdata/binhex-qbittorrentvpn

 

Setting menu inside it defaults to:

/config/qBittorrent/downloads/

 

I change it to:

/data/mnt/user/Torrents/Downloads/

 

Torrents won't download, each one says stalled, set it back to default and away they go no problem. From this can anyone guide me on what I should be putting in the Settings menu?

 

I've also tried deluge by binhex also to the /Torrents/Downloads/ folder and it works straight off the bat but its a nightmare of software to use. Hate it. A;ways used qbittorrent on pc for years so I would like to use it also on server.

 

Thanks in advance.

Link to post
On 7/21/2020 at 11:17 AM, CS01-HS said:

Next time it happens test container connectivity by running something like:


docker exec -it vpn curl ipinfo.io

I renamed my container vpn. Substitute whatever name you have in the command above. If everything's working it should return your VPN IP and additional details.

 

To test the connection and restart containers automatically you can run Rebuild-DNDC available in the Community Apps. Detailed description here:

https://github.com/elmerfdz/rebuild-dndc

So it just happened again for the first time since your post. I tested connectivity with your idea and it seems to be fine, same as it says when it is working. I'm not sure Rebuild-DNDC will fix it because as far as I can tell that rebuild dependencies between different containers, but this is all within one. I may be misunderstanding it though. I've left it broken in case anyone has any ideas for testing. 

 

Does it have to do with this line in the qb container log?

 

[info] qBittorrent listening interface IP x.x.x.x and VPN provider IP x.x.x.y different, marking for reconfigure
 

or this one?

 

Sat Jul 25 02:17:58 2020 [openvpn2.vpnunlimitedapp.com] Inactivity timeout (--ping-exit), exiting
 

Edited by xMaverickx
Link to post

Rebuild-DNDC will automatically restart the main container (qBittorrent) as well so it'd help if you lose connectivity but it looks like you haven't since the curl command returns your VPN IP.

 

I don't see any inactivity timeouts in my log just a series of successful curl commands to portchecker.co

 

Sorry I can't help more.

Link to post
7 hours ago, jrabkid said:

I've set the directories up as I want but it wont download anything

I think based on the rest of your post that you don't really understand docker volume mapping. And the way you have specified paths in your post is ambiguous in one place and very likely wrong in the other.

 

Start with posting your docker run for this container as explained at this very first link in the Docker FAQ:

 

 

Link to post

I've setup an 'external program' in the qBittorrent settings from which I do a curl command to another PHP container in the same docker network. However unlike other containers I'm not able to resolve the PHP container's hostname to the IP address.

 

For example I'm doing curl "http://nginx/qbit/index.php", but it can't resolve. Anyone knows what I can change to reach other containers by hostname?

Link to post
22 hours ago, CS01-HS said:

Rebuild-DNDC will automatically restart the main container (qBittorrent) as well so it'd help if you lose connectivity but it looks like you haven't since the curl command returns your VPN IP.

 

I don't see any inactivity timeouts in my log just a series of successful curl commands to portchecker.co

 

Sorry I can't help more.

No worries, thanks for trying. For the time being, in case anyone else has a similar issue, I've set up a custom user script using the user scripts plugin that just says "docker restart qbittorrentvpn" and have it set to run daily.

Link to post

I'm having some trouble connecting to the webGUI while "VPN_ENABLED=yes".

 

I am absolutely sure that my Username and Password are correct, I switched my password as to make sure none of the special characters were causing authentication issues.

 

I did attempt some of the fixes but so far no dice.

 

Attached is the log file from my docker container. Thank you in advance.

supervisord.log

Link to post
On 7/29/2020 at 12:14 AM, Atom Chaney said:

I'm having some trouble connecting to the webGUI while "VPN_ENABLED=yes".

 

I am absolutely sure that my Username and Password are correct, I switched my password as to make sure none of the special characters were causing authentication issues.

 

I did attempt some of the fixes but so far no dice.

 

Attached is the log file from my docker container. Thank you in advance.

supervisord.log 166.28 kB · 4 downloads

nothing wrong with that. successful startup, check the following:-

 

1. wrong lan_network - is this correct for the client pc running the web browser? - 2020-07-28 18:58:56.217144 [info] LAN_NETWORK defined as '10.0.0.0/24'

2. check vlan - is your client pc running web browser being blocked?

3. firewall on host - any firewall running on the host?, if so disable it

4. make sure port defined for key ' WEBUI_PORT' matches the port you have defined for host and container.

Link to post

Hello, I cannot access the web interface when I change the WEBUI_PORT.

 

with :

docker run -d \
    --cap-add=NET_ADMIN \
    -p 6881:6881 \
    -p 6881:6881/udp \
    -p 8080:8090 \
    -p 8118:8118 \
    --name=qbittorrentvpn \
    -v /home/torrent/download:/download \
    -v /home/torrent/config:/config \
    -v /etc/localtime:/etc/localtime:ro \
    -e VPN_ENABLED=yes \
    -e VPN_PROV=airvpn \
    -e ENABLE_PRIVOXY=no \
    -e LAN_NETWORK=192.168.1.0/24 \
    -e NAME_SERVERS=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 \
    -e ADDITIONAL_PORTS=1234 \
    -e DEBUG=false \
    -e WEBUI_PORT=8090 \
    -e UMASK=000 \
    -e PUID=1001 \
    -e PGID=1001 \
    binhex/arch-qbittorrentvpn

 

docker ps

CONTAINER ID        IMAGE                        COMMAND                  CREATED             STATUS              PORTS                                                                                                      NAMES
12aa8f2ec4cd        binhex/arch-qbittorrentvpn   "/usr/bin/tini -- /b…"   4 minutes ago       Up 13 seconds       0.0.0.0:6881->6881/tcp, 0.0.0.0:8118->8118/tcp, 0.0.0.0:6881->6881/udp, 8080/tcp, 0.0.0.0:8080->8090/tcp   qbittorrentvpn

 

qBittorrent.conf

[AutoRun]
enabled=false
program=

[Preferences]
Connection\PortRangeMin=6881
Connection\UPnP=false
General\Locale=en
General\UseRandomPort=false
Queueing\QueueingEnabled=false
WebUI\Address=*
WebUI\CSRFProtection=false
WebUI\LocalHostAuth=false
WebUI\Port=8090
WebUI\ServerDomains=*
WebUI\UseUPnP=false

 

Have you an idea ?

 

Edited by lowfab
solved (-p 8080:8090 \) !!
Link to post

First of all, thank you for all your great work! Been using a number of your Dockers for a while now. 

 

I discovered this great photo management program called digiKam (https://www.digikam.org/) with great features (https://www.digikam.org/about/features/).

 

The latest version 7.0.0 is available on Arch Linux so I tried to make a Docker for it. With your excellent base template it was quite easy. I'm running it now from a private repository on my Unraid and it seems to work quite well.

 

Would you be interested in adding it to your official repository?

 

Here is what I have so far:

https://github.com/redindian/unraid

https://github.com/redindian/arch-digikam

https://hub.docker.com/repository/docker/redindian/arch-digikam

Link to post

i make this, but it's not perfect. The second services (dqbtx) does not work well. The web interface is faulty. Do you have another solution?

 

version: '3.7'
services:
  dqbt:
    image: binhex/arch-qbittorrentvpn:latest
    container_name: dqbt
    cap_add:
      - NET_ADMIN
    ports:
      - 6881:6881
      - 6881:6881/udp
      - 8282:8282
    environment:
      - PUID=1000
      - PGID=1000
      - VPN_ENABLED=yes
      - VPN_PROV=airvpn
      - ENABLE_PRIVOXY=no
      - LAN_NETWORK=192.168.1.0/24
      - NAME_SERVERS=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
      - WEBUI_PORT=8282
      - ADDITIONNAL_PORTS=1234
      - UMASK=000
      - DEBUG=false
    volumes:
      - /home/lowfab/dqbtconfig:/config
      - /etc/localtime:/etc/localtime:ro
      - /home/lowfab/dqbt:/dqbt
  dqbtx:
    image: binhex/arch-qbittorrentvpn:latest
    container_name: dqbtx
    cap_add:
      - NET_ADMIN
    ports:
      - 8090:8080
      - 6891:6881
      - 6891:6881/udp
      - 8128:8118
      - 8383:8383
    environment:
      - PUID=1000
      - PGID=1000
      - VPN_ENABLED=yes
      - VPN_PROV=airvpn
      - ENABLE_PRIVOXY=no
      - LAN_NETWORK=192.168.1.0/24
      - NAME_SERVERS=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
      - WEBUI_PORT=8383
      - ADDITIONNAL_PORTS=1244
      - UMASK=000
      - DEBUG=false
    volumes:
      - /home/lowfab/dqbtconfig2:/config
      - /etc/localtime:/etc/localtime:ro
      - /home/lowfab/dqbt2:/dqbt

Link to post
On 7/26/2020 at 10:02 AM, Rourke said:

I've setup an 'external program' in the qBittorrent settings from which I do a curl command to another PHP container in the same docker network. However unlike other containers I'm not able to resolve the PHP container's hostname to the IP address.

 

For example I'm doing curl "http://nginx/qbit/index.php", but it can't resolve. Anyone knows what I can change to reach other containers by hostname?

Is there any way this qBittorrent container can talk to other containers in the same network by hostname/container name?

Link to post
On 8/3/2020 at 3:28 PM, Rourke said:

Is there any way this qBittorrent container can talk to other containers in the same network by hostname/container name?

i tend not to rely on dns and instead simply use the hosts ip address to communicate between containers, give it a try.

Link to post

Hello, Thank you for this beautiful work. Is it possible to run 2 qBittorrentVPN containers on the same docker server modifying the ports of the 2nd instance. I can't do it the 2nd does not work properly (web interface accessible but qbittorrent not accessible when download active on the 1st)?

Link to post
On 7/30/2020 at 7:20 AM, binhex said:

nothing wrong with that. successful startup, check the following:-

 

1. wrong lan_network - is this correct for the client pc running the web browser? - 2020-07-28 18:58:56.217144 [info] LAN_NETWORK defined as '10.0.0.0/24'

 

This. This is what was causing my issue. Changing "LAN_NETWORK" from 10.0.0.0 to 10.0.0.1 now allows me to access the webui with VPN=yes.

 

Thanks!

Link to post
On 8/7/2020 at 1:36 AM, Atom Chaney said:

This. This is what was causing my issue. Changing "LAN_NETWORK" from 10.0.0.0 to 10.0.0.1 now allows me to access the webui with VPN=yes.

 

Thanks!

10.0.0.1 is not a network and is incorrect, see Q4 in the link below:-

https://github.com/binhex/documentation/blob/master/docker/faq/vpn.md

Link to post
2 hours ago, binhex said:

Great resource, I hadn't seen that before. (The GCM cipher significantly improved my download speed.)

 

One question after reading it re: Privoxy for Sonarr, etc:

Does the proxy setup offer some advantage over setting qbittorrent as the container network for Sonarr, etc. (per Part 2 here)? 

Link to post
20 hours ago, CS01-HS said:

Does the proxy setup offer some advantage over setting qbittorrent as the container network for Sonarr, etc. (per Part 2 here)? 

for sonarr, no as sonarr only requires http/https and privoxy can do this. The advantage of using the connect networks method is when the protocols used are not just http/https and there is no vpn enabled docker image available, then you can secure the docker container by linking the network to one of my vpn enabled containers and all protocols will then be forced down the vpn tunnel.

Link to post

As we all know, PIA is currently moving their infrastructure, which results in pretty terribly reliability and constant connection issues when using their CurrentGen Network. Today, however, I discovered that they offer OpenVPN confs for their NextGen servers: https://www.privateinternetaccess.com/pages/download

 

AFAICT they work reliable. Only way to use them currently is to set the STRICT_PORT_FORWARD ENV variable to "no", since their NextGen network doesn't seem to support port forwarding yet.

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.