Koozali.org: home of the SME Server

Contribs.org Forums => Koozali SME Server 10.x Contribs => Topic started by: robf355 on November 17, 2021, 06:14:05 PM

Title: open vpn bridge - stuck in restarting
Post by: robf355 on November 17, 2021, 06:14:05 PM
HiI've installed open vpn bridge, the certificates are set up, but the status screen says

Link status Systemd returned service as activating
I have changed the service settings to enabled and the certificates status says:
Certificates status Certificates are ready
The log directories for openvpn-bridge are all emptyps -A | grep open doesn't show anything running
The installation notes state:
sv u /service/openvpn-bridge 
but I get the message

fail: /service/openvpn-bridge: unable to change to service directory: file does not exist

there doesn't seem to be an entry under /service for open vpn bridge,
The package details are:
smeserver-openvpn-bridge         noarch         2.1-15.el7.sme          @smecontribs         379 k

I presume this is the correct one?I'm not familiar with systemd, I presume this handles services like openvpn?RegardsRob
Title: Re: open vpn bridge - stuck in restarting
Post by: TerryF on November 17, 2021, 07:54:57 PM
this will show status of service
# systemctl status openvpn-bridge

dont use openvpn so cant do any triage, have it installed to a VM but thats about it so far, no certs etc setup
Title: Re: open vpn bridge - stuck in restarting
Post by: ReetP on November 17, 2021, 09:58:57 PM
Should be some logs somewhere.

Check the config files in /etc and logs in /var/logs - messages and the openvpn ones.
Title: Re: open vpn bridge - stuck in restarting
Post by: robf355 on November 18, 2021, 10:26:12 AM
there were no logs in /var/logs
/var/log/message had this:
Nov 17 16:50:13 server esmith::event[29761]: Created symlink from /etc/systemd/system/sme-server.target.wants/openvpn-bridge.service to /usr/lib/systemd/system/openvpn-bridge.service.
Nov 17 16:50:14 server esmith::event[29761]: S88systemd-default=action|Event|temp|Action|S88systemd-default|Start|1637167812 895408|End|1637167814 36313|Elapsed|1.140905
Nov 17 16:50:14 server esmith::event[29761]: Running event handler: /etc/e-smith/events/temp/S89systemd-reload
Nov 17 16:50:14 server esmith::event[29761]: S89systemd-reload=action|Event|temp|Action|S89systemd-reload|Start|1637167814 36630|End|1637167814 93043|Elapsed|0.056413
Nov 17 16:50:14 server esmith::event[29761]: Running event handler: /etc/e-smith/events/actions/adjust-services
Nov 17 16:50:14 server esmith::event[29761]: adjusting non-supervised openvpn-bridge (restart)
Nov 17 16:50:14 server esmith::event[29761]: Job for openvpn-bridge.service failed because the control process exited with error code. See "systemctl status openvpn-bridge.service" and "journalctl -xe" for details.
Nov 17 16:50:14 server esmith::event[29761]: serviceControl: Couldn't system( /usr/bin/systemctl restart openvpn-bridge.service): No such file or directory

I've uninstalled it now, I'll install on a vm and try it there.
Even though it's uninstalled there are still loads of refs to openvpn, e.g
/var/service/openvpn-routed
/usr/share/doc/openvpn-2.4.11
plus sub directories
could these be the result of a restore from 9.2?Can I delete these?
Title: Re: open vpn bridge - stuck in restarting
Post by: ReetP on November 18, 2021, 06:06:50 PM
Quote
there were no logs in /var/logs

Sorry  I meant in the general hierarchy.

So yes, /var/log/messages but there will be a /var/log/openvpn-something dir - look in there.

Quote
Even though it's uninstalled there are still loads of refs to openvpn, e.g
/var/service/openvpn-routed
/usr/share/doc/openvpn-2.4.11
plus sub directories
could these be the result of a restore from 9.2?Can I delete these?

Likely they are result of your install but they can be ignored. The uninstaller will have removed the relevant bits and left configs etc in place.

Quote
sv u /service/openvpn-bridge


I missed that. You do know that on v10 we don't user sv/service any more?

We are blessed with the delights of systemd. You WILL enjoy it.

So as Terry pointed out

Code: [Select]
systemctl status openvpn-bridge
Code: [Select]
journalctl -xe
etc.

The wiki page badly needs updating.
Title: Re: open vpn bridge - stuck in restarting
Post by: Jean-Philippe Pialasse on November 18, 2021, 06:42:40 PM
i am perplexe because you are asking about openvpn-bridge and then complain to see remainings of openvpn-routed

those are two different contribs.

Title: Re: open vpn bridge - stuck in restarting
Post by: robf355 on November 18, 2021, 06:57:45 PM
I had installed both, I just did a locate openvpn, and listed some of the items found, others were

/etc/e-smith/events/temp/services2adjust/openvpn-bridge
/home/e-smith/db/openvpn-bridge
/run/openvpn-client
/run/openvpn-server
/usr/lib/systemd/system/openvpn-client@.service
/usr/lib/systemd/system/openvpn-server@.service
/usr/lib/systemd/system/openvpn@.service

I wondered if they were from my 9.2 install, and were restored, that's all
Title: Re: open vpn bridge - stuck in restarting
Post by: Jean-Philippe Pialasse on November 18, 2021, 11:35:24 PM
rpm -qf on those files will give you the answer. if they belong to one rpm.

if not they were either created by a program or restored from sme9


hints all the /run and /usr/lib/systemd/ are from openvpn bin package. 
Title: Re: open vpn bridge - stuck in restarting
Post by: robf355 on November 19, 2021, 06:35:37 PM
Thank you for your help, I think the program must have created them as I did a fresh install in a vm and they weren't there, the backup file didn't have them in either.Regards