flant / ovpn-admin

Simple web UI to manage OpenVPN users.
Apache License 2.0
1.36k stars 255 forks source link

Clicking the download button kills the container #147

Open mmclane opened 1 year ago

mmclane commented 1 year ago

I have open-admin running in a container to manage openvpn is which installed locally (not in a container). I can use it to create a new user and revoke a user. But if I click any of the download config buttons it kills the container. What might be going wrong?

Here is my log for that container

2022/09/15 19:11:40 INFO: user created: m3test
2022/09/15 19:11:43 WARNING: openvpn mgmt interface for host.docker.internal:8989 is not reachable by addr host.docker.internal:8989
2022/09/15 19:11:43 openssl x509 -in /mnt/easyrsa/pki/ca.crt -noout -enddate | awk -F "=" {'print $2'}
2022/09/15 19:12:11 WARNING: openvpn mgmt interface for host.docker.internal:8989 is not reachable by addr host.docker.internal:8989
2022/09/15 19:12:11 openssl x509 -in /mnt/easyrsa/pki/ca.crt -noout -enddate | awk -F "=" {'print $2'}
2022/09/15 19:12:39 WARNING: openvpn mgmt interface for host.docker.internal:8989 is not reachable by addr host.docker.internal:8989
2022/09/15 19:12:39 openssl x509 -in /mnt/easyrsa/pki/ca.crt -noout -enddate | awk -F "=" {'print $2'}
2022/09/15 19:13:07 WARNING: openvpn mgmt interface for host.docker.internal:8989 is not reachable by addr host.docker.internal:8989
2022/09/15 19:13:07 openssl x509 -in /mnt/easyrsa/pki/ca.crt -noout -enddate | awk -F "=" {'print $2'}
2022/09/15 19:13:35 WARNING: openvpn mgmt interface for host.docker.internal:8989 is not reachable by addr host.docker.internal:8989
2022/09/15 19:13:35 openssl x509 -in /mnt/easyrsa/pki/ca.crt -noout -enddate | awk -F "=" {'print $2'}
2022/09/15 19:14:03 WARNING: openvpn mgmt interface for host.docker.internal:8989 is not reachable by addr host.docker.internal:8989
2022/09/15 19:14:03 openssl x509 -in /mnt/easyrsa/pki/ca.crt -noout -enddate | awk -F "=" {'print $2'}
2022/09/15 19:14:31 WARNING: openvpn mgmt interface for host.docker.internal:8989 is not reachable by addr host.docker.internal:8989
2022/09/15 19:14:31 openssl x509 -in /mnt/easyrsa/pki/ca.crt -noout -enddate | awk -F "=" {'print $2'}
2022/09/15 19:14:59 WARNING: openvpn mgmt interface for host.docker.internal:8989 is not reachable by addr host.docker.internal:8989
2022/09/15 19:14:59 openssl x509 -in /mnt/easyrsa/pki/ca.crt -noout -enddate | awk -F "=" {'print $2'}
2022/09/15 19:15:27 WARNING: openvpn mgmt interface for host.docker.internal:8989 is not reachable by addr host.docker.internal:8989
2022/09/15 19:15:27 openssl x509 -in /mnt/easyrsa/pki/ca.crt -noout -enddate | awk -F "=" {'print $2'}
2022/09/15 19:15:55 WARNING: openvpn mgmt interface for host.docker.internal:8989 is not reachable by addr host.docker.internal:8989
2022/09/15 19:15:55 openssl x509 -in /mnt/easyrsa/pki/ca.crt -noout -enddate | awk -F "=" {'print $2'}
2022/09/15 19:16:23 WARNING: openvpn mgmt interface for host.docker.internal:8989 is not reachable by addr host.docker.internal:8989
2022/09/15 19:16:23 openssl x509 -in /mnt/easyrsa/pki/ca.crt -noout -enddate | awk -F "=" {'print $2'}
2022/09/15 19:16:51 WARNING: openvpn mgmt interface for host.docker.internal:8989 is not reachable by addr host.docker.internal:8989
2022/09/15 19:16:51 openssl x509 -in /mnt/easyrsa/pki/ca.crt -noout -enddate | awk -F "=" {'print $2'}
2022/09/15 19:17:19 WARNING: openvpn mgmt interface for host.docker.internal:8989 is not reachable by addr host.docker.internal:8989
2022/09/15 19:17:19 openssl x509 -in /mnt/easyrsa/pki/ca.crt -noout -enddate | awk -F "=" {'print $2'}
2022/09/15 19:17:34 WARNING: hosts for jherndel
 [{127.0.0.1 7777 tcp}]
2022/09/15 19:17:34 open /mnt/easyrsa/pki/ta.key: no such file or directory
mmclane commented 1 year ago

I believe I have gotten rid of the WARNINGS about reaching host.docker.internal but it didn't fix the problem.

pashcovich commented 1 year ago

does your existing openvpn installation have a tls-auth key?