ruimarinho / docker-openvpn-monitor

The trusted multi-platform web-based OpenVPN Monitor docker image.
MIT License
101 stars 27 forks source link

openvpn-monitor stop during install #5

Closed PrzemekSkw closed 4 years ago

PrzemekSkw commented 4 years ago

I try to install docker openvpn-monitor on my Debian 10 VPS:

root@OpenVPN:~# docker run -p 80:80 --rm ruimarinho/openvpn-monitor
Unable to find image 'ruimarinho/openvpn-monitor:latest' locally
latest: Pulling from ruimarinho/openvpn-monitor
9d48c3bd43c5: Pull complete 
c0ea575d71b9: Pull complete 
0f535eceebd5: Pull complete 
8a30f5893bea: Pull complete 
c1d30ace7b67: Pull complete 
1f97eb733f75: Pull complete 
aecc9959b3e1: Pull complete 
22fc4b89a227: Pull complete 
Digest: sha256:3cdaba414621d2f284ca632df62286200c11005889106e6ba985f273dc87a83b
Status: Downloaded newer image for ruimarinho/openvpn-monitor:latest
[2020-01-12 10:09:18 +0000] [1] [INFO] Starting gunicorn 19.9.0
[2020-01-12 10:09:18 +0000] [1] [INFO] Listening at: http://0.0.0.0:80 (1)
[2020-01-12 10:09:18 +0000] [1] [INFO] Using worker: sync
[2020-01-12 10:09:18 +0000] [11] [INFO] Booting worker with pid: 11

it stops at this point.

PrzemekSkw commented 4 years ago

I have add management 127.0.0.1 5555 to my /etc/openvpn/server.conf` file and then:

root@OpenVPN:~# docker run --name openvpn-monitor \
>  -e OPENVPNMONITOR_DEFAULT_LATITUDE=-37 \
> -e OPENVPNMONITOR_DEFAULT_LOGO=/root/logo.jpg \
> -e OPENVPNMONITOR_DEFAULT_LONGITUDE=144 \
> -e OPENVPNMONITOR_DEFAULT_MAPS=True \
> -e OPENVPNMONITOR_DEFAULT_SITE=Test \
> -e OPENVPNMONITOR_SITES_0_ALIAS=UDP \
> -e OPENVPNMONITOR_SITES_0_HOST=openvpn-udp \
> -e OPENVPNMONITOR_SITES_0_NAME=UDP \
> -e OPENVPNMONITOR_SITES_0_PORT=5555 \
> -e OPENVPNMONITOR_SITES_1_ALIAS=TCP \
> -e OPENVPNMONITOR_SITES_1_HOST=openvpn-udp \
> -e OPENVPNMONITOR_SITES_1_NAME=TCP \
> -e OPENVPNMONITOR_SITES_1_PORT=5555 \
> -p 80:80 ruimarinho/openvpn-monitor

but when I open `my_ip:80 I see that: Zrzut ekranu z 2020-01-12 12-46-47 Can somebody help me with that?

markdavidburke commented 4 years ago

Turn off SELinux and make sure you have the management line in your server.conf

PrzemekSkw commented 4 years ago

Thanks for help, I made it work.