Custom qBittorrent app getting

Operating system: ElectricEel-24.10.1

I’m running a custom qBittorent app with gluetun using AirVPN, here’s my docker compose file (all the sensitive info redacted):

services:
gluetun:
cap_add:
- NET_ADMIN
container_name: gluetun
devices:
- /dev/net/tun:/dev/net/tun
environment:
- TZ=America/New_York
- VPN_SERVICE_PROVIDER=custom
- VPN_TYPE=wireguard
- WIREGUARD_ENDPOINT_IP= REDACTED
- WIREGUARD_ENDPOINT_PORT= REDACTED
- WIREGUARD_PUBLIC_KEY= REDACTED
- WIREGUARD_PRIVATE_KEY= REDACTED
- WIREGUARD_PRESHARED_KEY= REDACTED
- WIREGUARD_ADDRESSES= REDACTED
- FIREWALL_VPN_INPUT_PORTS= REDACTED
- SERVER_COUNTRIES=
- DNS_ADDRESS= REDACTED
image: qmcgaw/gluetun:latest
ports:
- ‘8080:8080’
- 6881:6881/udp
- 6881:6881/tcp
restart: unless-stopped
qbittorrent:
container_name: qbittorrent
depends_on:
- gluetun
environment:
- PUID=568
- PGID=568
- TZ=America/New_York
- WEBUI_PORT=8080
image: linuxserver/qbittorrent:latest
network_mode: service:gluetun
restart: unless-stopped
volumes:
- ./configs/:/config
- /mnt/NAS 16TB 2 Vdevs Mirrored /arr-apps/Downloads:/DownloadsT

I also followed this tutorial and set everything up accordingly https://www.youtube.com/watch?v=SQEqsaKN-Go&lc=UgwjMRtwTmcw86S8Fpx4AaABAg

I’m able to set up the app fine, when I use “curl ip.me” it shows that the VPN is working. When I use “ls” I can see the “DownloadsT” directory, I can even go in there and create a file. However when I try to download any torrent, wheter it be from a magnet or file, I get an error, and this is what I found in the logs:

(N) 2025-02-04T15:19:22 - Torrent stopped. Torrent: “Batman Ninja (2018) [BluRay] [1080p] [YTS] [YIFY]”
(N) 2025-02-04T15:19:26 - Torrent resumed. Torrent: “Batman Ninja (2018) [BluRay] [1080p] [YTS] [YIFY]”
(N) 2025-02-04T15:20:12 - Added new torrent. Torrent: “ubuntu-24.10-desktop-amd64.iso”
(W) 2025-02-04T15:20:15 - File error alert. Torrent: “ubuntu-24.10-desktop-amd64.iso”. File: “/downloadsT/ubuntu-24.10-desktop-amd64.iso”. Reason: “ubuntu-24.10-desktop-amd64.iso file_open (/downloadsT/ubuntu-24.10-desktop-amd64.iso) error: Permission denied”
(W) 2025-02-04T15:20:22 - File error alert. Torrent: “Batman Ninja (2018) [BluRay] [1080p] [YTS] [YIFY]”. File: “/downloadsT/Batman Ninja (2018) [BluRay] [1080p] [YTS.AM]/Batman.Ninja.2018.1080p.BluRay.x264-[YTS.AM].mp4”. Reason: “Batman Ninja (2018) [BluRay] [1080p] [YTS.AM] file_open (/downloadsT/Batman Ninja (2018) [BluRay] [1080p] [YTS.AM]/Batman.Ninja.2018.1080p.BluRay.x264-[YTS.AM].mp4) error: Permission denied”

Any idea why this is happening? I searched many forums but found nothing, not sure if this is an issue with truenas or qBittorrent, any help/input is appreciated.

Thanks!

To me it sounds like a file permissions error of the files your trying to share.

Is the PGID or PUID you specified for qbitorrent match the owner/group of ubuntu-24.10-desktop-amd64.iso and the other files you’re attempting to seed/download? (And also maybe the directory they’re stored in?)

Not sure how to check that, I uploaded the torrent file for the ubuntu image from my laptop, and then tried to download a movie with a magnet link and both errored, I know how to add ACEs for IX apps but I have not idea how to add perms or anything for custom yaml files. But when I get on qbittorent shell, I’m able to make directories in “DownloadsT”, so I assumed that the perms weren’t the direct issue

If you just go to the downloads directory in the host (or the container I suppose) and type ls -lh or something similar you should be able to see what user and group owns the files.

image

Says total 0 for both, any idea how I can give full perms to this dir to the app? I have the group ID but when going to add a ACE in the dataset, it doesn’t let me add perms by group ID or user ID

Hmm, I wonder if it is mounted wrong. Is this directory name correct? I see a space after “Mirrored” which seems off:

- /mnt/NAS 16TB 2 Vdevs Mirrored /arr-apps/Downloads:/DownloadsT

I copied the mount path from another app, so I think it is
image

I updated the mount and deleted the space, but I got the same issue

Hmm, that’s odd. It definitely seems like the issue is that the path you’re specifying isn’t being mounted correctly but I’m not sure why that might be.

Umm that bind for qbittorrent’s config looks a little wonky.

services:
  qbittorrent:
    container_name: qbittorrent
    environment:
      - PUID=568
      - PGID=568
      - TZ=America/Moncton
      - WEBUI_PORT=10095
      - TORRENTING_PORT=6881
      - UMASK=022

    image: lscr.io/linuxserver/qbittorrent:latest
    network_mode: container:gluetun
    restart: unless-stopped
    volumes:
      - /mnt/APPS/AppData/qbittorrent:/config
      - /mnt/Array1/downloads/torrents:/mnt/Array1/downloads/torrents

In my case, I’m running gluetun as a separate container, so the syntax is a little different.

I managed to get it working with Dockge, but now my qBittorrent is stuck on downloading metadata due to the VPNs port connection being refused, working on fixing that now.