You are not logged in.
Tldr: I removed and edited files in /etc/openvpn folder and may have run some commands and because of it I am getting some errror during shutdown and logout and want to remove those errors. Please help
Hi a few weeks back I tried to connect to a vpn using openvpn and finally I managed to connect using their vpn client and now I dont need to use openvpn. However I tried some things at that time which when logging out or restarting or shutting down are giving me the following errors
[Failed]Failed to start OpenVPN tunnel for client
[Failed]Failed to start OpenVPN service for configurationI did edit some files I guess but I don't know how to remove this error. I uninstalled openvpn and networkmanager-openvpn and the error is gone but the vpnclient needs these as dependencies so I am stuck with this error.
Can some one guide me as to how to remove this error.
Things I tried I: I tried uninstalling using -Rcns flag and reinstalled but it didnt work. I tried to start openvpn service with systemd and it says it doesnt exist. May be systemd is trying that in the background or at end. If so how to resolve?
when I tried to start openvpn using systemd i am getting the following log
systemctl status openvpn-client@client.service
× openvpn-client@client.service - OpenVPN tunnel for client
Loaded: loaded (/usr/lib/systemd/system/openvpn-client@.service; enabled; preset: disabled)
Active: failed (Result: exit-code) since Tue 2024-02-27 15:53:23 IST; 29min ago
Docs: man:openvpn(8)
https://community.openvpn.net/openvpn/wiki/Openvpn24ManPage
https://community.openvpn.net/openvpn/wiki/HOWTO
Process: 958 ExecStart=/usr/bin/openvpn --suppress-timestamps --nobind --config client.conf (code=exited, status=1/FAILURE)
Main PID: 958 (code=exited, status=1/FAILURE)
CPU: 24ms
Feb 27 15:53:23 sanganaka systemd[1]: Starting OpenVPN tunnel for client...
Feb 27 15:53:23 sanganaka openvpn[958]: Options error: In [CMD-LINE]:1: Error opening configuration file: client.conf
Feb 27 15:53:23 sanganaka openvpn[958]: Use --help for more information.
Feb 27 15:53:23 sanganaka systemd[1]: openvpn-client@client.service: Main process exited, code=exited, status=1/FAILURE
Feb 27 15:53:23 sanganaka systemd[1]: openvpn-client@client.service: Failed with result 'exit-code'.
Feb 27 15:53:23 sanganaka systemd[1]: Failed to start OpenVPN tunnel for client.Any leads will be appreciated.
Last edited by freewick (2024-02-27 12:33:59)
Offline
sudo systemctl disable openvpn-client@client
Offline
sudo systemctl disable openvpn-client@client
Thanks first error failed to start openvpn tunnel for client is gone. The second line error failed to start openvpn service for configuration still coming ![]()
Offline
I ran this command and it is giving the following input
systemctl list-units | grep openvpn
openvpn-server@configuration.service loaded activating auto-restart OpenVPN service for configuration
system-openvpn\x2dserver.slice loaded active active Slice /system/openvpn-server
❯ sudo systemctl disable openvpn-sever@configurataion.service
Failed to disable unit: Unit file openvpn-sever@configurataion.service does not exist.
❯ sudo systemctl stop openvpn-sever@configurataion.service
Failed to stop openvpn-sever@configurataion.service: Unit openvpn-sever@configurataion.service not loaded.
❯ sudo systemctl enable openvpn-sever@configurataion.service
Failed to enable unit: Unit file openvpn-sever@configurataion.service does not exist.Offline
finally I figured it out as to how to remove second error
sudo systemctl disable openvpn-server@configuration ![]()
Offline