OpenVPN doesn’t stay connected to network

Hello all. I am trying to get OpenVPN up and running but can’t seem to figure what I’m missing. I used the Docker Compose v2 script to install the container. I changed my UID GID and TZ. And added a path for the config file.

The problem that I’m encountering is that OpenVPN starts up and connects the the network 172.17.0.x but shortly after it disconnects from the network. The container continues to run but I can’t access the admin UI. I tried adding ‘network_mode: bridge’ because I found that on the images site but that didn’t help.

No matter how many times I join the bridge network it only last a few seconds. Any help would be great. Thanks in advance.

You need to share your docker compose and full docker logs. It would help to share your host os, version, and arch as well.
You can use backticks for the compose and pastebin/gist for your logs.

Here is my Docker Compose


version: “2.1”
services:
openvpn-as:
image: linuxserver/openvpn-as
container_name: openvpn-as
cap_add:
- NET_ADMIN
environment:
- PUID=998
- PGID=100
- TZ=America/New York
- INTERFACE=eth0 #optional
volumes:
- /srv/dev-disk-by-label-HomeDrive/“config files”:/config
ports:
- 943:943
- 9443:9443
- 1194:1194/udp
restart: unless-stopped
network_mode: bridge

Here is what is in the OpenVPN stack log

standard_init_linux.go:211: exec user process caused “exec format error”,
standard_init_linux.go:211: exec user process caused “exec format error”,
standard_init_linux.go:211: exec user process caused “exec format error”,
standard_init_linux.go:211: exec user process caused “exec format error”,
standard_init_linux.go:211: exec user process caused “exec format error”,
standard_init_linux.go:211: exec user process caused “exec format error”,
standard_init_linux.go:211: exec user process caused “exec format error”,
standard_init_linux.go:211: exec user process caused “exec format error”,
standard_init_linux.go:211: exec user process caused “exec format error”,
standard_init_linux.go:211: exec user process caused “exec format error”,
standard_init_linux.go:211: exec user process caused “exec format error”,
standard_init_linux.go:211: exec user process caused “exec format error”,
standard_init_linux.go:211: exec user process caused “exec format error”,
standard_init_linux.go:211: exec user process caused “exec format error”,
standard_init_linux.go:211: exec user process caused “exec format error”,
standard_init_linux.go:211: exec user process caused “exec format error”,
standard_init_linux.go:211: exec user process caused “exec format error”,
standard_init_linux.go:211: exec user process caused “exec format error”,
standard_init_linux.go:211: exec user process caused “exec format error”,
standard_init_linux.go:211: exec user process caused “exec format error”,
standard_init_linux.go:211: exec user process caused “exec format error”,
standard_init_linux.go:211: exec user process caused “exec format error”,
standard_init_linux.go:211: exec user process caused “exec format error”,
standard_init_linux.go:211: exec user process caused “exec format error”,
standard_init_linux.go:211: exec user process caused “exec format error”,
standard_init_linux.go:211: exec user process caused “exec format error”,
standard_init_linux.go:211: exec user process caused “exec format error”,
standard_init_linux.go:211: exec user process caused “exec format error”,
standard_init_linux.go:211: exec user process caused “exec format error”,
standard_init_linux.go:211: exec user process caused “exec format error”,
standard_init_linux.go:211: exec user process caused “exec format error”,
standard_init_linux.go:211: exec user process caused “exec format error”,
standard_init_linux.go:211: exec user process caused “exec format error”,
standard_init_linux.go:211: exec user process caused “exec format error”,
standard_init_linux.go:211: exec user process caused “exec format error”,
standard_init_linux.go:211: exec user process caused “exec format error”,
standard_init_linux.go:211: exec user process caused “exec format error”,
standard_init_linux.go:211: exec user process caused “exec format error”,
standard_init_linux.go:211: exec user process caused “exec format error”,
standard_init_linux.go:211: exec user process caused “exec format error”,
standard_init_linux.go:211: exec user process caused “exec format error”,
standard_init_linux.go:211: exec user process caused “exec format error”,
standard_init_linux.go:211: exec user process caused “exec format error”,
standard_init_linux.go:211: exec user process caused “exec format error”,
standard_init_linux.go:211: exec user process caused “exec format error”,
standard_init_linux.go:211: exec user process caused “exec format error”,
standard_init_linux.go:211: exec user process caused “exec format error”,
standard_init_linux.go:211: exec user process caused “exec format error”,
standard_init_linux.go:211: exec user process caused “exec format error”,
standard_init_linux.go:211: exec user process caused “exec format error”,
standard_init_linux.go:211: exec user process caused “exec format error”,
standard_init_linux.go:211: exec user process caused “exec format error”,
standard_init_linux.go:211: exec user process caused “exec format error”,
standard_init_linux.go:211: exec user process caused “exec format error”,
standard_init_linux.go:211: exec user process caused “exec format error”,
standard_init_linux.go:211: exec user process caused “exec format error”,
standard_init_linux.go:211: exec user process caused “exec format error”,
standard_init_linux.go:211: exec user process caused “exec format error”,
standard_init_linux.go:211: exec user process caused “exec format error”,
standard_init_linux.go:211: exec user process caused “exec format error”,
standard_init_linux.go:211: exec user process caused “exec format error”,
standard_init_linux.go:211: exec user process caused “exec format error”,
standard_init_linux.go:211: exec user process caused “exec format error”,
standard_init_linux.go:211: exec user process caused “exec format error”,
standard_init_linux.go:211: exec user process caused “exec format error”,
standard_init_linux.go:211: exec user process caused “exec format error”,
standard_init_linux.go:211: exec user process caused “exec format error”,
standard_init_linux.go:211: exec user process caused “exec format error”,
standard_init_linux.go:211: exec user process caused “exec format error”,
standard_init_linux.go:211: exec user process caused “exec format error”,
standard_init_linux.go:211: exec user process caused “exec format error”,
standard_init_linux.go:211: exec user process caused “exec format error”,
standard_init_linux.go:211: exec user process caused “exec format error”,
standard_init_linux.go:211: exec user process caused “exec format error”,
standard_init_linux.go:211: exec user process caused “exec format error”,
standard_init_linux.go:211: exec user process caused “exec format error”,
standard_init_linux.go:211: exec user process caused “exec format error”,
standard_init_linux.go:211: exec user process caused “exec format error”,
standard_init_linux.go:211: exec user process caused “exec format error”,
standard_init_linux.go:211: exec user process caused “exec format error”,
standard_init_linux.go:211: exec user process caused “exec format error”,
standard_init_linux.go:211: exec user process caused “exec format error”,
standard_init_linux.go:211: exec user process caused “exec format error”,
standard_init_linux.go:211: exec user process caused “exec format error”,
standard_init_linux.go:211: exec user process caused “exec format error”,
standard_init_linux.go:211: exec user process caused “exec format error”,
standard_init_linux.go:211: exec user process caused “exec format error”,
standard_init_linux.go:211: exec user process caused “exec format error”,
standard_init_linux.go:211: exec user process caused “exec format error”,
standard_init_linux.go:211: exec user process caused “exec format error”,
standard_init_linux.go:211: exec user process caused “exec format error”,
standard_init_linux.go:211: exec user process caused “exec format error”,
standard_init_linux.go:211: exec user process caused “exec format error”,
standard_init_linux.go:211: exec user process caused “exec format error”,
standard_init_linux.go:211: exec user process caused “exec format error”,
standard_init_linux.go:211: exec user process caused “exec format error”,
standard_init_linux.go:211: exec user process caused “exec format error”,
standard_init_linux.go:211: exec user process caused “exec format error”,
standard_init_linux.go:211: exec user process caused “exec format error”,
standard_init_linux.go:211: exec user process caused “exec format error”,

I apologize in advance if this isn’t what you needed. I really haven’t a clue what I’m doing when it comes to this stuff. I don’t know Linux or any of this Docker stuff at all (about 1 month experience). I thought setting up a home NAS on a Pi would be easy, which up until it came rto networking and security it was. Anyways here’s the system:

Raspberry Pi 4GB (Raspbian Buster Lite)
Open Media Vault 5
Portainer
dnsmasq (not working. Trying to figure that one out too)

Please feel free to break things down for a layman. Thank you for any help you can provide.

openvpn-as is x86_64 only, no arm version

So it’s a no-go on a Raspberry Pi? There’s plenty of tutorials for it though? Or just this container version isn’t compatible?

openvpn and openvpn-as are 2 different things

Oh…well in that case I better go remove it and find a better install method. Thank you.

i would suggest checking out our wireguard container. as a side note, there is no “better” install method for openvpn-as, it is closed source and does not exist for arm (pi)

if you just want openvpn (not openvpn-as) there are plenty of options, but keep in mind, openvpn is extremely slow, you would be much better suited by something like wireguard.

best of luck!

I’ll check out wireguard. For someone like myself I need programs that have a good support base as I normally have a lot of questions. I am just starting to scratch the surface of networking and setting up this Home NAS has been rather painful the last few days. I didn’t even know what a CIDR was yesterday… :weary: