openvpn daemon died under opensuse 13.2 after change of DSL IP (working on 13.1)


I updated my server from 13.1. to 13.2. The server is connected over a DSL connection to the internet. The DSL connection changes the IP Address every 24h. I am running a openvpn client on this box. Till opensuse 13.1 the demon just reconnected after the IP change with no issues.

Now the deamon died each time with:

Dec 12 21:03:32 ws-buero openvpn[11512]: Closing TUN/TAP interface

Dec 12 21:03:32 ws-buero openvpn[11512]: /bin/ip addr del dev tap3
Dec 12 21:03:32 ws-buero openvpn[11512]: Linux ip addr del failed: external program exited with error status: 2
Dec 12 21:03:33 ws-buero openvpn[11512]: ERROR: Cannot ioctl TUNSETIFF tap3: Operation not permitted (errno=1)
Dec 12 21:03:33 ws-buero openvpn[11512]: Exiting due to fatal error
That is really bad. But more worse is, that the status command:

systemctl status openvpn@reporting

openvpn@reporting.service - OpenVPN tunneling daemon instance using /etc/openvpn/reporting.conf
Loaded: loaded (/usr/lib/systemd/system/openvpn@.service; disabled)
Active: failed (Result: exit-code) since Fri 2014-12-12 21:03:33 CET; 3min 39s ago
Process: 11510 ExecStart=/usr/sbin/openvpn --daemon --suppress-timestamps --writepid /var/run/openvpn/ --cd /etc/openvpn/ --config %i.conf (code=exited, status=0/SUCCESS)
Main PID: 11512 (code=exited, status=1/FAILURE)

echo $?

As everything is ok.

Any idea how to fix this?


That is a failure

Main PID: 11512 (code=exited, status=1/**FAILURE**)

and the value of $? has nothing to do with systemd iirc.

systemctl status foo
   Loaded: not-found (Reason: No such file or directory)
   Active: inactive (dead)

echo $?

You can try checking out

journalctl _SYSTEMD_UNIT=openvpn@reporting.service

start and enable is useful for systemctl too.:wink: