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
166 stars 92 forks source link

Unable to locate .ovpn #128

Open BertMacklinFBl opened 2 years ago

BertMacklinFBl commented 2 years ago

Container launch fails with the same error:

qbittorrentvpn    | 2022-04-17 03:05:36.240176 [info] VPN_ENABLED defined as 'yes'
qbittorrentvpn    | 2022-04-17 03:05:36.282398 [crit] No OpenVPN config file located in /config/openvpn/ (ovpn extension), please download from your VPN provider and then restart this container, exiting...
qbittorrentvpn exited with code 1

I'm using Mullvad and downloaded the android .ovpn file. I've tried placing it in a number of locations.

Compose file:

version: "2"
services:
        qbittorrentvpn:
                container_name: qbittorrentvpn
                image: markusmcnugen/qbittorrentvpn
                privileged: yes
                environment:
                        - VPN_USERNAME=XXXXXXXXXXXXXXXX
                        - VPN_ENABLED=yes
                        - LAN_NETWORK=192.168.50.0/24
                        - NAME_SERVERS=8.8.8.8,8.8.4.4
                        - PUID=0
                        - PGID=0
                volumes:
                        - /mnt/firespray/compose/docker-qbittorrentvpn/config/openvpn/config
                        - /mnt/firespray/torrents/downloads
                ports:
                        - 8080:8080
                        - 8999:8999
                        - 8999:8999/udp
dem0ngo commented 2 years ago

You are not mounting your volumes correctly. For your specific issue you will need to change your first mounted volume to: - /mnt/firespray/compose/docker-qbittorrentvpn/config:/config

From here make sure that you have the .ovpn file in: - /mnt/firespray/compose/docker-qbittorrentvpn/config/openvpn/

I'm not sure why you have another /config after /openvpn in your volume.

For future reference, everything before the : is where the folders are mapped on your system and after the : is you telling the container what those folders are. Your second volume will need to be changed as well. Hope that helps!