AdrienPoupa / docker-compose-nas

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

qbittorrent healthcheck fails with error 403 #34

Closed syss closed 11 months ago

syss commented 11 months ago

The healthcheck for qbittorrent is defined as test: [ "CMD", "curl", "--fail", "http://127.0.0.1:8080/api/v2/app/version" ]

When I execute that command it fails with error 403. The healthcheck succeeds if I only check for /

# docker compose exec -it qbittorrent curl --fail "http://127.0.0.1:8080/api/v2/app/version"                         
curl: (22) The requested URL returned error: 403                           
# docker compose exec -it qbittorrent curl --fail "http://127.0.0.1:8080/"                                               
<!DOCTYPE html> 
...

Not very familiar with qbt, maybe it makes sense to use another check.

syss commented 11 months ago

nevermind found that option in qbt Settings > Web UI > Authenication > Bypass authentication for clients on localhost

AdrienPoupa commented 11 months ago

It is specified in the readme :)

https://github.com/AdrienPoupa/docker-compose-nas?tab=readme-ov-file#qbittorrent

Please enable Bypass authentication for clients on localhost as well to make qBittorrent's healthcheck work as well.