Page 1 of 1

[Résolu] openvpn@SRV-VPN.service Failed

Posted: Tue Nov 12, 2019 9:47 am
by walter-49
Hello

I ask for your help to solve a problem starting the Open Vpn service on debian 9.11.
Since I installed openvpn-monitor
(source: "https://github.com/furlongm/openvpn-monitor") with this tutorial (source: "https://dejavuqa.tistory.com/250") when I reboot my server the service does not run .When I do a "sudo systemctl status openvpn @ SRV-VPN", I get the following message:

openvpn@SRV-VPN.service - OpenVPN connection to SRV-VPN
Loaded: loaded (/lib/systemd/system/openvpn@.service; enabled; vendor preset: enabled)
Active: failed (Result: resources) since Tue 2019-11-12 09:42:08 CET; 4min 1s ago
Docs: man:openvpn(8)
https://community.openvpn.net/openvpn/w ... n23ManPage
https://community.openvpn.net/openvpn/wiki/HOWTO
Process: 497 ExecStart=/usr/sbin/openvpn --daemon ovpn-SRV-VPN --status /run/openvpn/SRV-VPN.status 10 --cd /etc/openvpn --confi

nov. 12 09:42:08 SRV-VPN systemd[1]: Starting OpenVPN connection to SRV-VPN...
nov. 12 09:42:08 SRV-VPN systemd[1]: openvpn@SRV-VPN.service: PID 540 read from file /run/openvpn/SRV-VPN.pid does not exist or is
nov. 12 09:42:08 SRV-VPN systemd[1]: Failed to start OpenVPN connection to SRV-VPN.
nov. 12 09:42:08 SRV-VPN systemd[1]: openvpn@SRV-VPN.service: Unit entered failed state.
nov. 12 09:42:08 SRV-VPN systemd[1]: openvpn@SRV-VPN.service: Failed with result 'resources'.

when I run the command:
  "sudo systemctl start openvpn @ SRV-VPN" the service starts and everything works, beginner I rely on the community to bring your lights to solve this problem.
thank you

Re: openvpn@SRV-VPN.service Failed

Posted: Tue Nov 12, 2019 2:35 pm
by TinCanTech
Did you 'enable' the service to start at boot ?

[Résolu] Re: openvpn@SRV-VPN.service Failed

Posted: Tue Nov 12, 2019 2:54 pm
by walter-49
Yes the launch at startup is effective.
The problem is solved.
In the VPN server config file (/etc/openvpn/SRV-VPN.conf), commenting on the line:
# openvpn-monitor
management 192.168.0.185 555
The automatic launch works again.

I handed the IP localhost as on the tutorial:
https://github.com/furlongm/openvpn-mon ... figuration

and not like on:
https://dejavuqa.tistory.com/250 where the IP of the machine is entered.

/etc/openvpn/SRV-VPN.conf
# openvpn-monitor
management 127.0.0.1 5555

and in / var / www / html / openvpn-monitor
openvpn-monitor.conf

[VPN1]
host = 127.0.0.1 instead of 192.168.0.185
port = 5555
name = VPN staff
show_disconnect = False

Re: [Résolu] openvpn@SRV-VPN.service Failed

Posted: Tue Nov 12, 2019 2:57 pm
by TinCanTech
Thanks for letting us know but perhaps you should report this to the author on openvpn-monitor as well.