OpenVPN net2net slave server won't connect to master server after reboot

NethServer Version: 7.3.1611 (rc3) + last upd
Module: OpenVPN

master and slave server: NS 7.3.1611 (rc3) + last upd

i create master sever OpenVPN for net2net
and create slave. it’s work fine
if slave server restart
after restart slave server not connect to master
openvpn.log empty

I found the cause of the problem
After the system boots the service does not start

I started in the service manual
systemctl start openvpn@servicename.service
servicename - this is my service name in the NS dashboard-openvpn-client.
it works.

service is not activated
systemctl enable openvpn@servicename.service
It shows the error:
Failed to execute operation: Too many levels of symbolic links

how to solve?

Sorry for the late reply.
This is probably a bug, but for now I don’t have time to reproduce it.

Just try to enable the service with the force flag:

systemctl -f enable openvpn@servicename.service

Thanks for the answer!
same error: Failed to execute operation: Too many levels of symbolic links

It seems a bug in systemd:

I found a workaround, try this:

touch '/etc/systemd/system/openvpn@.service.d/servicename.conf'
systemctl enable openvpn@servicename.service
2 Likes

Thank you!
but, same error: Failed to execute operation: Too many levels of symbolic links

This is strange, I could make it work in my machine. :frowning:

Give me a little time, I will try to create a patched RPM.

ok
Thank you!:slight_smile:

Thank you for reporting! Just opened a issue and prepared the fix:

To test is on your machine, simply update from testing repo:

yum --enablerepo=nethserver-testing update nethserver-openvpn
1 Like

@xcod can you verify the bug?
Some info here, if you need help feel free to ask

1 Like

Thank you so much!
issue solved!:slight_smile:

1 Like

Since OpenVPN shares are not accessible, there may be errors when you are trying to access. My spectra server had some similar issue but relied on the basic troubleshooting by running certain commands.