creates failing <email address hidden> unit
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
openvpn (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Ubuntu 15.04
I have two clients configured in /etc/openvpn
/etc/openvpn/
/etc/openvpn/
AUTOSTART="all"
in file:
/etc/default/
service openvpn start
or
/etc/init.d/openvpn start
fails with:
May 1 11:42:17 systemd[1]: Stopped OpenVPN service.
May 1 11:42:17 systemd[1]: Stopping OpenVPN service...
May 1 11:45:39 systemd[1]: Starting OpenVPN connection to client...
May 1 11:45:39 systemd[1]: Starting OpenVPN service...
May 1 11:45:39 systemd[1]: Started OpenVPN service.
May 1 11:45:39 ovpn-client[26561]: Options error: In [CMD-LINE]:1: Error opening configuration file: /etc/openvpn/
May 1 11:45:39 ovpn-client[26561]: Use --help for more information.
May 1 11:45:39 systemd[1]: <email address hidden>: control process exited, code=exited status=1
May 1 11:45:39 systemd[1]: Failed to start OpenVPN connection to client.
May 1 11:45:39 systemd[1]: Unit <email address hidden> entered failed state.
May 1 11:45:39 systemd[1]: <email address hidden> failed.
In previous versions of ubuntu (LTS) this was working.
something got broken with /lib/lsb/
tags: | added: systemd-boot |
tags: | removed: systemd-boot |
tags: | removed: systemd |
tags: | added: systemd-boot |
I tried to reproduce this in a fresh VM with:
sudo cp /usr/share/ doc/openvpn/ examples/ sample- config- files/static- home.conf /etc/openvpn/ client1. conf doc/openvpn/ examples/ sample- config- files/static- office. conf /etc/openvpn/ client2. conf openvpn
sudo cp /usr/share/
sudo sed -i '/AUTOSTART.*"all"/ s/^#//' /etc/default/
sudo systemctl daemon-reload
sudo service openvpn restart
and it works as expected: "systemctl status openvpn@*" shows me that I got <email address hidden> and <email address hidden>. Of course they fail to start in my scenario as the example files use IP addresses 1.2.3.4 and similar, but the generator and startup works fine.
In your case <email address hidden> looks strange -- do you actually have a /etc/openvpn/ client. conf file? This error message
May 1 11:45:39 ovpn-client[26561]: Options error: In [CMD-LINE]:1: Error opening configuration file: /etc/openvpn/ client. conf
sounds like it either exists and is invalid, or it does not exist. Can you please give me the output of
ls -lR /etc/openvpn/*.conf
?