You are not logged in.

#1 2021-01-23 02:51:07

shoelesshunter
Member
Registered: 2014-05-18
Posts: 147

[solved]systemd won't start openvopn client

When I use networkmanager to connecto to my vpn with my imported ovpn file, things work well.

However, when I try to enable/start the service with systemd, I get this error message:

 ● openvpn-client@arch0.service - OpenVPN tunnel for arch0
     Loaded: loaded (/lib/systemd/system/openvpn-client@.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Sat 2021-01-23 03:45:34 CET; 54s ago
       Docs: man:openvpn(8)
             https://community.openvpn.net/openvpn/wiki/Openvpn24ManPage
             https://community.openvpn.net/openvpn/wiki/HOWTO
    Process: 44369 ExecStart=/usr/sbin/openvpn --suppress-timestamps --nobind --config arch0.conf (code=exited, status=1/FAILURE)
   Main PID: 44369 (code=exited, status=1/FAILURE)
        CPU: 20ms

Jan 23 03:45:34 sparrow systemd[1]: Starting OpenVPN tunnel for arch0...
Jan 23 03:45:34 sparrow openvpn[44369]: Options error: In [CMD-LINE]:1: Error opening configuration file: arch0.conf
Jan 23 03:45:34 sparrow openvpn[44369]: Use --help for more information.
Jan 23 03:45:34 sparrow systemd[1]: openvpn-client@arch0.service: Main process exited, code=exited, status=1/FAILURE
Jan 23 03:45:34 sparrow systemd[1]: openvpn-client@arch0.service: Failed with result 'exit-code'.
Jan 23 03:45:34 sparrow systemd[1]: Failed to start OpenVPN tunnel for arch0.

Last edited by shoelesshunter (2021-01-30 23:16:07)

Offline

#2 2021-01-23 08:27:53

tucuxi
Member
From: Switzerland
Registered: 2020-03-08
Posts: 111

Re: [solved]systemd won't start openvopn client

Have you reviewed arch0.conf? Does it even exist?

Offline

#3 2021-01-30 23:15:53

shoelesshunter
Member
Registered: 2014-05-18
Posts: 147

Re: [solved]systemd won't start openvopn client

after a reboot, systemd seems to have solved it on it's own. thanks for the feedback.

Offline

Board footer

Powered by FluxBB