MarkusMcNugen / docker-qBittorrentvpn

Docker container which runs a headless qBittorrent client with WebUI and optional OpenVPN
https://hub.docker.com/r/markusmcnugen/qbittorrentvpn/
GNU General Public License v3.0
171 stars 92 forks source link

WebUI not working, exec fail authentication error? #37

Closed jackbucinskas closed 4 years ago

jackbucinskas commented 4 years ago

I was wondering if I need the aptitude package qbittorrent in order to use qbittorrentvpn in docker. I'm unable to connect to the WebUI 192.168.20.3:8080 (my debian server's IP) from my desktop.

There was also a: Example auth-user-pass option which I was unsure how to use auth-user-pass credentials.conf

username
password

I'm not sure where the script is reading credentials.conf from, I've put it here: /config/qbittorrentvpn/openvpn/credentials.conf next to the downloaded config files from NordVPN.

Logs:

dockeruser@debian:~$ sudo docker logs -f 5a5413876793
2019-12-21 03:59:44.365981 [info] VPN_ENABLED defined as 'yes'
2019-12-21 03:59:44.417949 [info] OpenVPN config file (ovpn extension) is located at /config/openvpn/no102.nordvpn.com.udp1194.ovpn
dos2unix: converting file /config/openvpn/no102.nordvpn.com.udp1194.ovpn to Unix format...
2019-12-21 03:59:44.464162 [info] VPN remote line defined as 'xxx.xxx.xxx.x 1194'
2019-12-21 03:59:44.497823 [info] VPN_REMOTE defined as 'xxx.xxx.xxx.x'
2019-12-21 03:59:44.528787 [info] VPN_PORT defined as '1194'
2019-12-21 03:59:44.557131 [info] VPN_PROTOCOL defined as 'udp'
2019-12-21 03:59:44.583295 [info] VPN_DEVICE_TYPE defined as 'tun0'
2019-12-21 03:59:44.627913 [info] LAN_NETWORK defined as '192.168.20.0/24'
2019-12-21 03:59:44.674270 [info] NAME_SERVERS defined as '8.8.8.8,8.8.4.4'
2019-12-21 03:59:44.713958 [info] VPN_OPTIONS not defined (via -e VPN_OPTIONS)
2019-12-21 03:59:44.761828 [info] Adding 8.8.8.8 to resolv.conf
2019-12-21 03:59:44.809824 [info] Adding 8.8.4.4 to resolv.conf
2019-12-21 03:59:44.854636 [info] Starting OpenVPN...
Sat Dec 21 03:59:44 2019 OpenVPN 2.4.4 x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [PKCS11] [MH/PKTINFO] [AEAD] built on May 14 2019
Sat Dec 21 03:59:44 2019 library versions: OpenSSL 1.1.1  11 Sep 2018, LZO 2.08
Sat Dec 21 03:59:44 2019 neither stdin nor stderr are a tty device and you have neither a controlling tty nor systemd - can't ask for 'Enter Auth Username:'.  If you used --daemon, you need to use --askpass to make passphrase-protected keys work, and you can not use --auth-nocache.
Sat Dec 21 03:59:44 2019 Exiting due to fatal error
This site can’t be reached

Docker run: https://github.com/MarkusMcNugen/docker-qBittorrentvpn

sudo docker run --privileged  -d \
              -v /config/qbittorrentvpn/:/config \
              -v /media/2tb/Temporary/:/downloads \
              -e "VPN_ENABLED=yes" \
              -e "VPN_USER=xxxxx@xxxxx.xxx" \
              -e "VPN_PASS=xxxxxxxxxxxxxxx" \
              -e "VPN_PROV=NORDVPN" \
              -e "LAN_NETWORK=192.168.20.0/24" \
              -e "NAME_SERVERS=8.8.8.8,8.8.4.4" \
              -e "PUID=1007" \
              -e "PGID=1007" \
              -p 8080:8080 \
              -p 8999:8999 \
              -p 8999:8999/udp \
              markusmcnugen/qbittorrentvpn

Quite new to docker, I'd really appreciate some help on debugging these logs

jackbucinskas commented 4 years ago

My bad, I found the issue. Added the auth-user-pass credentials.conf line to both VPN configs.