OpenVPN Server - Status: activating (auto-restart)

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
paulb
OpenVpn Newbie
Posts: 6
Joined: Wed Feb 03, 2021 11:20 am

OpenVPN Server - Status: activating (auto-restart)

Post by paulb » Fri Jun 04, 2021 1:30 pm

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

paulb
OpenVpn Newbie
Posts: 6
Joined: Wed Feb 03, 2021 11:20 am

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

Post by paulb » Thu Jun 10, 2021 10:48 am

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.

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

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

Post by TinCanTech » Thu Jun 10, 2021 11:08 am

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

paulb
OpenVpn Newbie
Posts: 6
Joined: Wed Feb 03, 2021 11:20 am

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

Post by paulb » Fri Aug 20, 2021 11:14 am

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?

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

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

Post by TinCanTech » Fri Aug 20, 2021 11:28 am

Look at your openvpn server log.

See --log in the manual.

paulb
OpenVpn Newbie
Posts: 6
Joined: Wed Feb 03, 2021 11:20 am

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

Post by paulb » Thu Sep 02, 2021 11:43 am

I`ve opened the openvpn.log file. Should I look for something specific (a line or more that can show me the issue)?

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

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

Post by TinCanTech » Sun Sep 05, 2021 9:50 pm

Yes, that is the general idea of a log file.

Post Reply