docker-qBittorrentvpn icon indicating copy to clipboard operation
docker-qBittorrentvpn copied to clipboard

401 error on every port but 8080

Open michecode opened this issue 5 years ago • 4 comments

I was able to set up the docker and I am able to use the WebUI and login page on port 8080. But I am trying to have multiple services running so I am using Traefik on port 8080 so I push this service to 8081 (have also tried 8580 and 8085) and suddenly it doesnt work.

curl localhost:8081 gives nothing in return wget localhost:8081 gives - Resolving localhost (localhost). . . ::1, 127.0.0.1 Connecting to localhost (localhost)|::1|:8081 . . . connected. HTTP request sent, awaiting response . . . 401 Unauthorized

Username/Password Authentication Failed.

michecode avatar Jun 22 '19 16:06 michecode

hey i fixed the problem. the documentation on github and dockerhub is actually wrong. the environment variable WEBUI_PORT_ENV should be WEBUI_PORT as seen in the iptables.sh code

michecode avatar Jun 30 '19 06:06 michecode

This should still be open as the issue is not fixed.

Wingysam avatar Jul 19 '19 20:07 Wingysam

This should still be open as the issue is not fixed.

root@aead90d93670:/# grep WEBUI etc/qbittorrent/iptables.sh
echo "[info] WebUI port defined as ${WEBUI_PORT}" | ts '%Y-%m-%d %H:%M:%.S'
        if [ -z "${WEBUI_PORT}" ]; then
                echo "${WEBUI_PORT}     webui" >> /etc/iproute2/rt_tables
if [ -z "${WEBUI_PORT}" ]; then
        iptables -A INPUT -i eth0 -p tcp --dport ${WEBUI_PORT} -j ACCEPT
        iptables -A INPUT -i eth0 -p tcp --sport ${WEBUI_PORT} -j ACCEPT
        if [ -z "${WEBUI_PORT}" ]; then
                iptables -t mangle -A OUTPUT -p tcp --dport ${WEBUI_PORT} -j MARK --set-mark 1
                iptables -t mangle -A OUTPUT -p tcp --sport ${WEBUI_PORT} -j MARK --set-mark 1
if [ -z "${WEBUI_PORT}" ]; then
        iptables -A OUTPUT -o eth0 -p tcp --dport ${WEBUI_PORT} -j ACCEPT
        iptables -A OUTPUT -o eth0 -p tcp --sport ${WEBUI_PORT} -j ACCEPT

And still not fixed 3 years later now 2022. Abandonware :/

Waldorf3 avatar Jul 05 '22 17:07 Waldorf3

4 years later and still a issue.

type0dev avatar Aug 14 '23 00:08 type0dev