OpenVPN starts and runs just fine when I invoke it directly from the command line, but when I try to start it as a process via systemd, it throws a failure error that I can't find a solution to.
Here's the result of
systemctl status email@example.com ("vpnht-128" is the name of my config file):
firstname.lastname@example.org - OpenVPN connection to vpnht-128 Loaded: loaded (/usr/lib/systemd/system/openvpn@.service; enabled; vendor preset: disabled) Active: failed (Result: exit-code) since Sal 2015-04-21 15:25:01 EEST; 5h 58min ago Process: 295 ExecStart=/usr/bin/openvpn --cd /etc/openvpn --config /etc/openvpn/%i.conf --daemon openvpn@%i --writepid /run/openvpn@%i.pid (code=exited, status=1/FAILURE) Apr 21 15:23:31 ben systemd: Starting OpenVPN connection to vpnht-128... Apr 21 15:23:32 ben openvpn@vpnht-128: OpenVPN 2.3.6 x86_64-unknown-linux-gnu [SSL (OpenSSL)] [LZO] [EPOLL] [MH] [IPv6] built on Dec 2 2014 Apr 21 15:23:32 ben openvpn@vpnht-128: library versions: OpenSSL 1.0.2a 19 Mar 2015, LZO 2.09 Apr 21 15:25:01 ben systemd: email@example.com start operation timed out. Terminating. Apr 21 15:25:01 ben openvpn@vpnht-128: ERROR: could not not read Auth password from stdin Apr 21 15:25:01 ben openvpn@vpnht-128: Exiting due to fatal error Apr 21 15:25:01 ben systemd: firstname.lastname@example.org: control process exited, code=exited status=1 Apr 21 15:25:01 ben systemd: Failed to start OpenVPN connection to vpnht-128. Apr 21 15:25:01 ben systemd: Unit email@example.com entered failed state. Apr 21 15:25:01 ben systemd: firstname.lastname@example.org failed.
Here's my OpenVPN config file on GitHub.
All I'm trying to do is automatically pipe in my VPN username and password.
I apologize in advance is there's a resolved thread about this, but I've spent all day scouring various forums and finding no concrete solutions. What am I missing?