wfg / docker-openvpn-client

OpenVPN client with killswitch and proxy servers; built on Alpine
MIT License
353 stars 107 forks source link

No configuration file found. Please check your mount and file permissions. Exiting. #62

Closed joelstitch closed 2 years ago

joelstitch commented 2 years ago

I followed the instructions for installing this docker container but whenever I run it I keep getting this error:

No configuration file found. Please check your mount and file permissions. Exiting.

I mapped the folder as per the directions and added the ovpn file and passfile but I just keep getting this error. I tried putting the files in a /config folder and /vpn folder but that didnt work neither.

This is my docker-compose.yml

services:
  openvpn-client:
    image: ghcr.io/wfg/openvpn-client
    container_name: openvpn-client
    cap_add:
      - NET_ADMIN
    devices:
      - /dev/net/tun
    ports:
      - 6077:6077
    volumes:
      - /volume1/docker/openvpn:/data/vpn
    restart: unless-stopped
joelstitch commented 2 years ago

Seriously I can't figure out what else to do to make this read my ovpn files. No explanation on the page on where to put the ovpn files.

romeldev commented 2 years ago

have a same problen, did you have any solution?

joelstitch commented 2 years ago

have a same problen, did you have any solution?

Couldn't figure it out so I ended up switching to a container setup specifically for NordVPN.

mswitalski commented 2 years ago

I have encountered the same issue and simply changing OpenVPN configuration file extension to use .conf instead of .ovpn helped.

As a result my volume contains the following files:

- some-server.conf
- passfile
joelstitch commented 2 years ago

I have encountered the same issue and simply changing OpenVPN configuration file extension to use .conf instead of .ovpn helped.

As a result my volume contains the following files:

- some-server.conf
- passfile

The container I switched to is working fine but thanks for the help!

wfg commented 2 years ago

See VPN_CONFIG_FILE in the table here: https://github.com/wfg/docker-openvpn-client#environment-variables-alphabetical