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:
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.
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.