AdrienPoupa / docker-compose-nas

Simple Docker Compose NAS featuring Sonarr, Radarr, Prowlarr, Jellyfin, qBittorrent, PIA VPN and Traefik with SSL support
1.06k stars 145 forks source link

Slow Qbit speeds (Doesn't crack 1MBps) #58

Closed rkabrick closed 9 months ago

rkabrick commented 9 months ago

I couldn't figure out for the longest time why my qbit container was getting absolute butt cheeks for speed. I used to get 40-50MBps and then a few months ago I started not being able to get above 1 MBps. Finally last night I found a solution. I'm just posting this here in case anyone struggles with the same problem. I thought it was an issue with my vpn provider not supporting port forwarding but after splurging on another vpn service I was still seeing the same issues.

I won't pretend to understand the internals of the torrent protocol (more specifically libtorrent) but reverting QBIT to be the last version where it used libtorrent 1.x instead of 2.x resulted in me getting my speeds back.

Changing the image line of this config was the secret sauce:

qbittorrent:
  image: lscr.io/linuxserver/qbittorrent:libtorrentv1-release-4.5.0_v1.2.18-ls7
AdrienPoupa commented 9 months ago

I'm not sure to understand the issue, the tag we are using (linuxserver/qbittorrent:libtorrentv1) is already using libtorrent v1

rkabrick commented 9 months ago

Truly Adrien... My stupidity knows no bounds. At some point I must have switched the qbit container to latest without realizing it.

AdrienPoupa commented 9 months ago

Makes sense, thanks for the feedback!