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

This forum is for admins who are looking to build or expand their OpenVPN setup.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
walter-49
OpenVpn Newbie
Posts: 2
Joined: Tue Nov 12, 2019 9:23 am

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

Post by walter-49 » Tue Nov 12, 2019 9:47 am

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
Last edited by walter-49 on Tue Nov 12, 2019 2:55 pm, edited 1 time in total.

TinCanTech
OpenVPN Protagonist
Posts: 11139
Joined: Fri Jun 03, 2016 1:17 pm

Re: openvpn@SRV-VPN.service Failed

Post by TinCanTech » Tue Nov 12, 2019 2:35 pm

Did you 'enable' the service to start at boot ?

walter-49
OpenVpn Newbie
Posts: 2
Joined: Tue Nov 12, 2019 9:23 am

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

Post by walter-49 » Tue Nov 12, 2019 2:54 pm

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

TinCanTech
OpenVPN Protagonist
Posts: 11139
Joined: Fri Jun 03, 2016 1:17 pm

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

Post by TinCanTech » Tue Nov 12, 2019 2:57 pm

Thanks for letting us know but perhaps you should report this to the author on openvpn-monitor as well.

Post Reply