[SOLVED] qBittorrent downloads immediately Errored or stuck

If you run qBittorrent in / with Docker.
Post Reply
ika
Newbie
Newbie
Posts: 2
Joined: Tue Feb 04, 2025 10:00 pm

[SOLVED] qBittorrent downloads immediately Errored or stuck

Post by ika »

Operating system: TrueNas Scale 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=SQEqsaK ... Fpx4AaABAg

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 or it's stuck on downloading metadata, 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? It says Permission denied, but through shell I can create a file, so I'm not sure what else I can do. I searched many forums but found nothing, not sure if this is an issue with truenas or qBittorrent, any help/input is appreciated.
ika
Newbie
Newbie
Posts: 2
Joined: Tue Feb 04, 2025 10:00 pm

Re: qBittorrent downloads immediately Errored or stuck

Post by ika »

I resolved the issue by setting qBittorrent up through dockge instead of Truenas custom apps
User avatar
Peter
Administrator
Administrator
Posts: 3044
Joined: Wed Jul 07, 2010 6:14 pm

Re: qBittorrent downloads immediately Errored or stuck

Post by Peter »

ika wrote: Wed Feb 05, 2025 1:47 am I resolved the issue by setting qBittorrent up through dockge instead of Truenas custom apps
Thanks for reporting back!
Post Reply