Page 1 of 1

OpenVPN Server - Status: activating (auto-restart)

Posted: Fri Jun 04, 2021 1:30 pm
by paulb
Hi,

I have an OpenVPN Server running and when I try to restart it seems like there is no effect. I have tried the following 3 steps:

systemctl stop openvpn-server@myserver.service
systemctl enable openvpn-server@myserver.service
systemctl start openvpn-server@myserver.service

Apart from the fact that during all these steps my connection with the server continued without any problem, after the 3rd step this error appeared:
"Job for openvpn-server@serveranq.service failed because the control process exited with error code. See "systemctl status openvpn-server@serveranq.service" and "journalctl -xe" for details."

systemctl status openvpn-server@myserver.service shows:

Status message

openvpn-server@myserver.service - OpenVPN service for myserver
Loaded: loaded (/lib/systemd/system/openvpn-server@.service; enabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: exit-code) since Fri 2021-06-04 13:14:24 UTC; 3s ago
Docs: man:openvpn(8)
https://community.openvpn.net/openvpn/w ... n24ManPage
https://community.openvpn.net/openvpn/wiki/HOWTO
Process: 3274859 ExecStart=/usr/sbin/openvpn --status /run/openvpn-server/status-myserver.log --status-version 2 --suppress-timestamps --config serveranq.conf (code=exited, status=1/FAILURE)

Main PID: 3274859 (code=exited, status=1/FAILURE)


Why is the service activating (auto-restart) and what could cause it?

Regards,
Paul

Re: OpenVPN Server - Status: activating (auto-restart)

Posted: Thu Jun 10, 2021 10:48 am
by paulb
Also, I forgot to mention that the server is running on Ubuntu 20.04 and the config file myserver.conf is located in /etc/openvpn.

Re: OpenVPN Server - Status: activating (auto-restart)

Posted: Thu Jun 10, 2021 11:08 am
by TinCanTech
paulb wrote:
Thu Jun 10, 2021 10:48 am
the config file myserver.conf is located in /etc/openvpn
The unit file openvpn-server@.service only works on config files in /etc/openvpn/server

Re: OpenVPN Server - Status: activating (auto-restart)

Posted: Fri Aug 20, 2021 11:14 am
by paulb
Hi,
Sorry for the late reply.

I did move the config file in /etc/openvpn/server but after running the status command is still showing:
"Active: activating (auto-restart) (Result: exit-code)"

Is this an issue or it should not concern me? Why I can`t have a green dot for my server?

Re: OpenVPN Server - Status: activating (auto-restart)

Posted: Fri Aug 20, 2021 11:28 am
by TinCanTech
Look at your openvpn server log.

See --log in the manual.

Re: OpenVPN Server - Status: activating (auto-restart)

Posted: Thu Sep 02, 2021 11:43 am
by paulb
I`ve opened the openvpn.log file. Should I look for something specific (a line or more that can show me the issue)?

Re: OpenVPN Server - Status: activating (auto-restart)

Posted: Sun Sep 05, 2021 9:50 pm
by TinCanTech
Yes, that is the general idea of a log file.