Page 1 of 1

Can't start OpenVPN server on Ubuntu 20.04

Posted: Fri Apr 28, 2023 10:59 am
by sadulloev

Code: Select all

ovpn@srv-ovpn:~$ sudo systemctl start openvpn-server@server.service
Job for openvpn-server@server.service failed because the control process exited with error code.
See "systemctl status openvpn-server@server.service" and "journalctl -xe" for details.
ovpn@srv-ovpn:~$ sudo systemctl status openvpn-server@server.service
● openvpn-server@server.service - OpenVPN service for server
     Loaded: loaded (/lib/systemd/system/openvpn-server@.service; enabled; vendor preset: enabled)
     Active: activating (auto-restart) (Result: exit-code) since Fri 2023-04-28 10:50:15 UTC; 899ms ago
       Docs: man:openvpn(8)
             https://community.openvpn.net/openvpn/wiki/Openvpn24ManPage
             https://community.openvpn.net/openvpn/wiki/HOWTO
    Process: 20103 ExecStart=/usr/sbin/openvpn --status /run/openvpn-server/status-server.log --status-version 2 --suppress-timestamps --config server.conf (code=exited, status=1/FAILURE)
   Main PID: 20103 (code=exited, status=1/FAILURE)
ovpn@srv-ovpn:~$ sudo systemctl start openvpn-server@server.service
Job for openvpn-server@server.service failed because the control process exited with error code.
See "systemctl status openvpn-server@server.service" and "journalctl -xe" for details.

Re: Can't start OpenVPN server on Ubuntu 20.04

Posted: Sat Apr 29, 2023 12:04 pm
by dredkin
SystemD literally says what's your next step:

> See "systemctl status openvpn-server@server.service" and "journalctl -xe" for details.