Initially you said this bug occurred quite rarely, about twice a year, and yet NOW you can produce it at will?
That's a big difference. It's going to be next to impossible to pin down the issue unless it can be reproduced reliably. I'm NOT doubting you have a problem, but at least here, w/ my RT-AC68U, I can't reproduce it.
FYI, the OpenVPN server does have a watchdog process that's supposed to restart a failed OpenVPN server. So normally I wouldn't expect this to be a problem. But the fact it is suggests the watchdog may be in a chicken and egg situation, where it doesn't start monitoring the OpenVPN server until it gets started. It might call for a separate, independent watchdog, similar to the one I wrote for the OpenVPN client. I had just assumed the built-in watchdog solved any such issues.
Code:
admin@lab-merlin1:/tmp/home/root# cat /tmp/etc/openvpn/server1/vpn-watchdog1.sh
#!/bin/sh
if [ -z $(pidof vpnserver1) ]
then
service restart_vpnserver1
fi
It runs off the scheduler every 2 mins.
Code:
admin@lab-merlin1:/tmp/etc/openvpn/server1# cru l
*/2 * * * * /etc/openvpn/server1/vpn-watchdog1.sh #CheckVPNServer1#
You may need to be a bit of a sleuth here and see if you can determine what is and isn't there when the problem occurs. IOW, if things like the /tmp/etc/openvpn/server1 directory are or are NOT present, whether the scheduled task is there, etc.
Of course, a syslog would help as well.
Until the developer or I can reproduce the problem, this is going to be very difficult. As I said, in the end I suppose we could put together a script, but I'd like to avoid it since it's supposed to have a working watchdog already.