guillaumedsde / docker-qbittorrent-openvpn

Docker container running qBittorrent torrent client with WebUI over an OpenVPN tunnel
https://hub.docker.com/r/guillaumedsde/qbittorrent-openvpn
GNU General Public License v3.0
17 stars 1 forks source link

App does not run when initializing; container logs show error but does not exit #6

Open dantheman213 opened 4 years ago

dantheman213 commented 4 years ago
user@server:~# docker run --cap-add=NET_ADMIN -d               -v /workspace/torrents:/data               -v /etc/localtime:/etc/localtime:ro               -e CREATE_TUN_DEVICE=true               -e OPENVPN_PROVIDER=PIA               -e OPENVPN_CONFIG=CA\ Vancouver               -e OPENVPN_USERNAME=YYYYYYYYY               -e OPENVPN_PASSWORD=XXXXXXXX               -e WEBPROXY_ENABLED=false               -e LOCAL_NETWORK=10.50.50.1/18               --log-driver json-file               --log-opt max-size=10m               -p 59861:8080               --restart always               --name torrent-vpn-client               guillaumedsde/qbittorrent-openvpn
user@server:~# docker logs -f torrent-vpn-client
Using OpenVPN provider: PIA
Starting OpenVPN using config CA Vancouver.ovpn
Setting OPENVPN credentials...
adding route to local network 10.50.50.1/18 via 172.17.0.1 dev eth0
Error: Invalid prefix for given prefix length.
Sat May 23 16:37:12 2020 OpenVPN 2.4.7 x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [PKCS11] [MH/PKTINFO] [AEAD] built on Sep  5 2019
Sat May 23 16:37:12 2020 library versions: OpenSSL 1.1.1f  31 Mar 2020, LZO 2.10
Sat May 23 16:37:12 2020 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
Sat May 23 16:37:12 2020 TCP/UDP: Preserving recently used remote address: [AF_INET]107.181.189.84:1198
Sat May 23 16:37:12 2020 UDP link local: (not bound)
Sat May 23 16:37:12 2020 UDP link remote: [AF_INET]107.181.189.84:1198
Sat May 23 16:37:12 2020 WARNING: this configuration may cache passwords in memory -- use the auth-nocache option to prevent this
Sat May 23 16:37:12 2020 [xyz123] Peer Connection Initiated with [AF_INET]107.181.189.84:1198
Sat May 23 16:37:13 2020 TUN/TAP device tun0 opened
Sat May 23 16:37:13 2020 /sbin/ip link set dev tun0 up mtu 1500
Sat May 23 16:37:13 2020 /sbin/ip addr add dev tun0 local 10.22.10.6 peer 10.22.10.5
Sat May 23 16:37:13 2020 /etc/openvpn/tunnelUp.sh tun0 1500 1558 10.22.10.6 10.22.10.5 init
/etc/transmission/environment-variables.sh: line 22: syntax error near unexpected token `newline'
/etc/transmission/environment-variables.sh: line 22: `export DOCKER_LOG=<no value>'
Up script executed with tun0 1500 1558 10.22.10.6 10.22.10.5 init
Updating TRANSMISSION_BIND_ADDRESS_IPV4 to the ip of tun0 : 10.22.10.6
Generating qBittorrent qBittorrent.conf from env variables
2020/05/23 16:37:13 unable to create open /config/qBittorrent/config/qBittorrent.conf: no such file or directory

-------------------------------------
qBittorrent will run as
-------------------------------------
User name:   user
User uid:    1000
User gid:    1000
-------------------------------------

STARTING QBITTORRENT
qBittorrent startup script complete.
Sat May 23 16:37:13 2020 Initialization Sequence Completed

When attempting to visit the app running in the container:

Capture

Router settings:

2
guillaumedsde commented 4 years ago

Hi, I suspect this is happening because there is no volume mounted in the /config directory. This can be done by adding -v /path/to/config/directory:/config to your docker run command. I had ommited that from the README.md, I've updated it. Let me know if that works :)