qBittorrent App won't work with HTTPS

plokko

Cadet
Joined
Aug 4, 2023
Messages
1
I did setup qBittorrent correctly as an App on my TrueNas Scale but there is a bug when i try to enable HTTPS :
there is a startup script that probes qBittorrent via HTTP to know if it's working; sadly qBittorrent use the same port for HTTP and HTTPS so it always fails and it stops the deployment.

Note: HTTPS is not only for security reasons but it's the only way to register it for magnet downloads.

I tried to debug it with kubeclt describe -n ix-qbittorrent describe <pod_id> and it confirmed my fear:
Code:
Events:
  Type     Reason          Age                  From               Message
  ----     ------          ----                 ----               -------
  Normal   Scheduled       10m                  default-scheduler  Successfully assigned ix-qbittorrent/qbittorrent-6ccb69584-4ns8s to ix-truenas
  Normal   AddedInterface  10m                  multus             Add eth0 [172.16.0.75/16] from ix-net
  Normal   Pulled          10m                  kubelet            Container image "bash:4.4.23" already present on machine
  Normal   Created         10m                  kubelet            Created container qbittorrent-init-01-permissions
  Normal   Started         10m                  kubelet            Started container qbittorrent-init-01-permissions
  Normal   Pulled          10m                  kubelet            Container image "ghcr.io/onedr0p/qbittorrent:4.5.4" already present on machine
  Normal   Created         10m                  kubelet            Created container qbittorrent
  Normal   Started         10m                  kubelet            Started container qbittorrent
  Warning  Unhealthy       12s (x118 over 10m)  kubelet            Startup probe failed: Get "http://172.16.0.75:30024/": EOF


The startup probe script should be changed to check HTTP or HTTPS connections or to just check if it responds something.

I am capable of creating a reverse proxy that can handle HTTPS traffic but this is clearly an App bug as qBittorrent do support HTTPS out of the box.
 

sstteevvee

Cadet
Joined
Aug 5, 2023
Messages
2
I have the same problem and identical log output. I find that qBittorrent works briefly (15-30 seconds?) on https from my browser before it starts timing out (I assume that the failing probe causes it to be shut down?)

This at least confirms I've correctly configured qBittorrent for https, so the probe should be successful.
 

sstteevvee

Cadet
Joined
Aug 5, 2023
Messages
2
This is likely not a good idea, as I have no idea what I'm doing and the file may be updated by the system, but if you edit:

/mnt/<datastore>/ix-applications/releases/qbittorrent/charts/1.0.19/templates/_qbittorrent.tpl

..find the "probes" entries (about 26 lines down), and change the three occurrences of "http" to "https", and it will now start as expected.
 

darkdragone

Cadet
Joined
Apr 25, 2022
Messages
3
having the same issue after enabling https as well. Not able to find that _qbittorrent.tpl file. there is a .tpl file but no mention of probes in it. Maybe the truecharts one is different where these probe configs are. Cant seem to revert qbittorrent back to http now either.
 

TCWL

Dabbler
Joined
Dec 23, 2023
Messages
11
Any fix for this bug?

EDIT: Fixed this by replacing http by https as previously mentioned. I think this is obvious bug in the tpl-script, and whoever is maintaining this package should get it fixed.
 
Last edited:
Top