Trying to install the openvpn client on centos7:

# systemctl start openvpn@openvpn.service Job for openvpn@openvpn.service failed. See 'systemctl status openvpn@openvpn.service' and 'journalctl -xn' for details. # systemctl status openvpn@openvpn.service openvpn@openvpn.service - OpenVPN service openvpn Loaded: loaded (/usr/lib/systemd/system/openvpn@openvpn.service; enabled) Active: failed (Result: exit-code) since Wed 2015-07-15 16:25:46 FET; 14s ago Process: 9523 ExecStart=/usr/sbin/openvpn --daemon --writepid /var/run/openvpn/%i.pid --cd /etc/openvpn/ --config %i.conf (code=exited, status=1/FAILURE) Jul 15 16:25:46 erp systemd[1]: Starting OpenVPN service openvpn... Jul 15 16:25:46 erp systemd[1]: openvpn@openvpn.service: control process exited, code=exited status=1 Jul 15 16:25:46 erp systemd[1]: Failed to start OpenVPN service openvpn. Jul 15 16:25:46 erp systemd[1]: Unit openvpn@openvpn.service entered failed state. 

What could be the cause of the problem?

  • as usual, selinux? - aleksandr barakin
  • SELINUX = disabled - mr_blond97
  • In the openvpn: Options error log: - writepid fails with '/var/run/openvpn/openvpn.pid': Use --help for more information. - Mr_blond97
  • 2
    probably the /var/run/openvpn directory does not exist. create: # mkdir -p /var/run/openvpn . - aleksandr barakin 1:51 pm
  • one
    failed to find GID for group nogroup - probably somewhere in the configuration this non-existent group is mentioned. replace it with the existing one. - aleksandr barakin

1 answer 1

collected from comments:

  1. Does selinux interfere?
  2. Does a /var/run/openvpn directory exist? create:

     # mkdir -p /var/run/openvpn 
  3. failed to find GID for group nogroup - probably somewhere in the configuration this non-existent group is mentioned. replace it with the existing one.