Installing qbittorrentvpn via yaml file

Hello !

I did manage to install binhex/qbittorrentvpn to electric eel via yaml file. It starts and runs, but i cannot reach it via web gui. Does anyone have an idea how to resolve this ?

services:
  qbittorrentvpn:
    cap_add:
      - NET_ADMIN
    environment:
      - VPN_ENABLED=yes
      - VPN_USER=
      - VPN_PASS=
      - VPN_PROV=custom
      - VPN_CLIENT=openvpn
      - ENABLE_STARTUP_SCRIPTS=yes
      - ENABLE_PRIVOXY=no
      - STRICT_PORT_FORWARD=yes
      - ENABLE_SOCKS=no
      - LAN_NETWORK=192.168.1.0/24
      - NAME_SERVERS=192.168.1.1
      - DEBUG=false
      - WEBUI_PORT=9090
      - UMASK=000
      - PUID=568
      - PGID=568
    image: binhex/arch-qbittorrentvpn
    ports:
      - '9090:9090'
    volumes:
      - /mnt/pool/pool/qbittorrent/downloads:/downloads
      - /mnt/pool/pool/qbittorrent/config:/config
      - /etc/localtime:/etc/localtime:ro

Nothing happens when you go to http://ip_of_truenas:9090 from a browser?

?

nope, also it seems it has now crashed after the night. I enabled debug log yesterday when reinstalling, here is the log after the crashing :

2024-11-10 21:02:42.928744+00:00Created by...
2024-11-10 21:02:42.928837+00:00___.   .__       .__
2024-11-10 21:02:42.928868+00:00\_ |__ |__| ____ |  |__   ____ ___  ___
2024-11-10 21:02:42.928892+00:00| __ \|  |/    \|  |  \_/ __ \\  \/  /
2024-11-10 21:02:42.928917+00:00| \_\ \  |   |  \   Y  \  ___/ >    <
2024-11-10 21:02:42.928957+00:00|___  /__|___|  /___|  /\___  >__/\_ \
2024-11-10 21:02:42.928982+00:00\/        \/     \/     \/      \/
2024-11-10 21:02:42.929006+00:00https://hub.docker.com/u/binhex/
2024-11-10 21:02:42.929029+00:002024-11-10T21:02:42.929029017Z
2024-11-10 21:02:46.235683+00:002024-11-10 23:02:46.234830 [info] System information: Linux c57f2d0e3098 6.6.44-production+truenas #1 SMP PREEMPT_DYNAMIC Fri Nov  8 18:37:36 UTC 2024 x86_64 GNU/Linux
2024-11-10 21:02:46.295198+00:002024-11-10 23:02:46.294971 [info] Image tags: BASE_RELEASE_TAG=2024100402,INT_RELEASE_TAG=2024100402,IMAGE_RELEASE_TAG=5.0.1-1-02
2024-11-10 21:02:46.399741+00:002024-11-10 23:02:46.399481 [info] PUID defined as '568'
2024-11-10 21:03:03.083744+00:002024-11-10 23:03:03.083472 [info] PGID defined as '568'
2024-11-10 21:03:03.935001+00:002024-11-10 23:03:03.934712 [info] UMASK defined as '000'
2024-11-10 21:03:03.972333+00:002024-11-10 23:03:03.972057 [info] Permissions already set for '/config'
2024-11-10 21:03:04.113460+00:002024-11-10 23:03:04.113213 [info] Deleting files in /tmp (non recursive)...
2024-11-10 21:03:04.205888+00:002024-11-10 23:03:04.205597 [info] VPN_ENABLED defined as 'yes'
2024-11-10 21:03:04.245356+00:002024-11-10 23:03:04.245128 [info] VPN_CLIENT defined as 'openvpn'
2024-11-10 21:03:04.282628+00:002024-11-10 23:03:04.282371 [info] VPN_PROV defined as 'custom'
2024-11-10 21:03:04.331628+00:002024-11-10 23:03:04.331380 [warn] Unable to chown/chmod /config/openvpn/, assuming SMB mountpoint
2024-11-10 21:03:04.398535+00:002024-11-10 23:03:04.398263 [info] OpenVPN config file (ovpn extension) is located at /config/openvpn/uk1807.nordvpn.com.tcp.ovpn
2024-11-10 21:03:04.537334+00:002024-11-10 23:03:04.537061 [info] VPN remote server(s) defined as '194.35.233.214,'
2024-11-10 21:03:04.569969+00:002024-11-10 23:03:04.569704 [info] VPN remote port(s) defined as '443,'
2024-11-10 21:03:04.602717+00:002024-11-10 23:03:04.602470 [info] VPN remote protcol(s) defined as 'tcp-client,'
2024-11-10 21:03:04.640672+00:002024-11-10 23:03:04.640396 [info] VPN_DEVICE_TYPE defined as 'tun0'
2024-11-10 21:03:04.677659+00:002024-11-10 23:03:04.677404 [info] VPN_OPTIONS not defined (via -e VPN_OPTIONS)
2024-11-10 21:03:04.714564+00:002024-11-10 23:03:04.714329 [info] NAME_SERVERS defined as '8.8.8.8'
2024-11-10 21:03:04.776298+00:002024-11-10 23:03:04.776046 [debug] iptables default policies available, setting policy to drop...
2024-11-10 21:03:04.821975+00:00modprobe: FATAL: Module ip6_tables not found in directory /lib/modules/6.6.44-production+truenas
2024-11-10 21:03:04.822770+00:00ip6tables v1.8.10 (legacy): can't initialize ip6tables table `filter': Will be implemented real soon.  I promise ;)
2024-11-10 21:03:04.822842+00:00Perhaps ip6tables or your kernel needs to be upgraded.
2024-11-10 21:03:04.862374+00:002024-11-10 23:03:04.862121 [warn] ip6tables default policies not available, skipping ip6tables drops
2024-11-10 21:03:04.966985+00:002024-11-10 23:03:04.966713 [debug] Showing name servers in '/etc/resolv.conf' before overwrite from NAME_SERVERS...
2024-11-10 21:03:04.999579+00:002024-11-10 23:03:04.999223 [debug] # Generated by Docker Engine.
2024-11-10 21:03:04.999604+00:002024-11-10 23:03:04.999311 [debug] # This file can be edited; Docker Engine will not make further changes once it
2024-11-10 21:03:04.999615+00:002024-11-10 23:03:04.999334 [debug] # has been modified.
2024-11-10 21:03:04.999624+00:002024-11-10 23:03:04.999352 [debug] 
2024-11-10 21:03:04.999642+00:002024-11-10 23:03:04.999432 [debug] nameserver 127.0.0.11
2024-11-10 21:03:04.999651+00:002024-11-10 23:03:04.999451 [debug] options ndots:0
2024-11-10 21:03:04.999660+00:002024-11-10 23:03:04.999468 [debug] 
2024-11-10 21:03:04.999668+00:002024-11-10 23:03:04.999484 [debug] # Based on host file: '/etc/resolv.conf' (internal resolver)
2024-11-10 21:03:04.999682+00:002024-11-10 23:03:04.999501 [debug] # ExtServers: [192.168.1.1]
2024-11-10 21:03:05.000200+00:002024-11-10 23:03:04.999517 [debug] # Overrides: []
2024-11-10 21:03:05.000219+00:002024-11-10 23:03:04.999533 [debug] # Option ndots from: internal
2024-11-10 21:03:05.037252+00:002024-11-10 23:03:05.037005 [debug] Showing name servers in '/etc/resolv.conf' after overwrite from NAME_SERVERS...
2024-11-10 21:03:05.069964+00:002024-11-10 23:03:05.069727 [debug] nameserver 8.8.8.8
2024-11-10 21:03:05.459405+00:002024-11-10 23:03:05.459151 [debug] Docker interface name, Gateway interface name, Gateway IP, Docker interface IP, Subnet mask and CIDR are defined as 'eth0,eth0,172.16.1.1,172.16.1.2,255.255.255.0,172.16.1.0/24'
2024-11-10 21:03:05.515142+00:002024-11-10 23:03:05.514877 [info] LAN_NETWORK defined as '192.168.1.0/24'
2024-11-10 21:03:05.568739+00:002024-11-10 23:03:05.568522 [info] LAN_NETWORK exported as '192.168.1.0/24'
2024-11-10 21:03:05.606141+00:002024-11-10 23:03:05.605891 [info] VPN_USER defined as 'xxxxxxxxxxxxxxxxxxxxxxxxxxxx'
2024-11-10 21:03:05.643553+00:002024-11-10 23:03:05.643288 [info] VPN_PASS defined as 'xxxxxxxxxxxxxxxxxxxxxxxxxxxx'
2024-11-10 21:03:05.685511+00:002024-11-10 23:03:05.685264 [info] VPN_INPUT_PORTS not defined (via -e VPN_INPUT_PORTS), skipping allow for custom incoming ports
2024-11-10 21:03:05.722906+00:002024-11-10 23:03:05.722660 [info] VPN_OUTPUT_PORTS not defined (via -e VPN_OUTPUT_PORTS), skipping allow for custom outgoing ports
2024-11-10 21:03:05.760408+00:002024-11-10 23:03:05.760123 [info] ENABLE_STARTUP_SCRIPTS defined as 'yes'
2024-11-10 21:03:05.797787+00:002024-11-10 23:03:05.797549 [info] ENABLE_SOCKS defined as 'no'
2024-11-10 21:03:05.835162+00:002024-11-10 23:03:05.834895 [info] ENABLE_PRIVOXY defined as 'no'
2024-11-10 21:03:05.872581+00:002024-11-10 23:03:05.872326 [info] WEBUI_PORT defined as '9090'
2024-11-10 22:14:16.257995+00:002024-11-11 00:14:16.257684 [info] SHARED_NETWORK not defined (via -e SHARED_NETWORK), defaulting to 'no'
2024-11-10 22:14:16.260090+00:00chmod: changing permissions of '/config/supervisord.log': Operation not permitted

Could it be permission problem ? It did create /config/supervisord.log itself tho, but its inside smb share, could that mess it up ?

Should i be able to ping something from container shell ? Localhost is only one that responds to ping…

You could change perms on the location of the opvn folder (and files). Also, it complaining about SHARED_NETWORK not defined might have something to do with not being able to hit the webui.

Also looking at your compose, there’s a lot of things that are listed on the project page that you don’t have. Would they make the difference? Maybe?

In my case, I went with Gluetun as its own container, that way I could add any app to its tunnel.

Could be missing p arameters yeah, i followed some discussion in reddit and used those parameters. My knowledge about is close to zero :smiley:

Ill look gluetun, thanks for the tip.

There are a bunch of examples on these forums and on /r/truenas with example compose files for gluetun & qbittorrent. Some with a single compose and others with them split into their own.

Just got gluetun running and was about to check howto implement qbittorrent, thanks for the links :slight_smile:

#edit: got it working, thank you again :slight_smile:

btw, it did work afterall, It just has ~20min wait time…

from github page:

I’m assuming you guys are all running Docker Storage Driver ‘overlay2’ right?, take a look at the following:-