I am completely stumped by this: My OpenVPN-AS has been running perfectly and then out of nowhere stopped working.
When it stopped working I was still able to connect on the TCP port, but after restarting the container a few times, that stopped working too. The unraid server has been restarted to no avail.
The logs showed errors pointing to the interface or ports being already in use, which made no sense to me...
After having tinkered with some settings (after it stopped working -- setting the container to privileged mode and only listen to UDP on port 1194 in the web ui), I am not seeing any errors in the log, but the server still doesn't listen on the UDP port.
Can anyone explain to me what this means:
root@Tower:~# netstat -an | grep 943
tcp6 0 0 :::943 :::* LISTEN
root@Tower:~# netstat -an | grep 1194
udp6 0 0 :::1194 :::*
The web ui (943) is working fine, telnet'ing to 1194 on localhost results in connection refused.
UNIX is not my strong suit; what am I to gather from the fact that it doesn't appear to 'LISTEN' on port 1194?
If I switch off privileged mode, the errors are back:
2019-08-07T09:22:20+0200 [stdout#info] OVPN 0 ERR: 'Wed Aug 7 09:22:20 2019 ERROR: Cannot ioctl TUNSETIFF as0t0: Device or resource busy (errno=16)'
2019-08-07T09:22:20+0200 [stdout#info] Server Agent initialization status:
2019-08-07T09:22:20+0200 [stdout#info] {
2019-08-07T09:22:20+0200 [stdout#info] "errors": {
2019-08-07T09:22:20+0200 [stdout#info] "iptables_web": [
2019-08-07T09:22:20+0200 [stdout#info] [
2019-08-07T09:22:20+0200 [stdout#info] "error",
2019-08-07T09:22:20+0200 [stdout#info] "service failed to start due to unresolved dependencies: set(['web'])"
2019-08-07T09:22:20+0200 [stdout#info] ]
2019-08-07T09:22:20+0200 [stdout#info] ],
2019-08-07T09:22:20+0200 [stdout#info] "openvpn_0": [
2019-08-07T09:22:20+0200 [stdout#info] [
2019-08-07T09:22:20+0200 [stdout#info] "error",
2019-08-07T09:22:20+0200 [stdout#info] "process started and then immediately exited: ['Wed Aug 7 09:22:20 2019 ERROR: Cannot ioctl TUNSETIFF as0t0: Device or resource busy (errno=16)']"
2019-08-07T09:22:20+0200 [stdout#info] ],
2019-08-07T09:22:20+0200 [stdout#info] [
2019-08-07T09:22:20+0200 [stdout#info] "error",
2019-08-07T09:22:20+0200 [stdout#info] "service failed to start or returned error status"
2019-08-07T09:22:20+0200 [stdout#info] ]
2019-08-07T09:22:20+0200 [stdout#info] ],
2019-08-07T09:22:20+0200 [stdout#info] "web": [
2019-08-07T09:22:20+0200 [stdout#info] [
2019-08-07T09:22:20+0200 [stdout#info] "error",
2019-08-07T09:22:20+0200 [stdout#info] "process started and then immediately exited: 2019-08-07T09:22:18+0200 [stderr#error] twisted.internet.error.CannotListenError: Couldn't listen on 0.0.0.0:943: [Errno 98] Address already in use."
2019-08-07T09:22:20+0200 [stdout#info] ],
2019-08-07T09:22:20+0200 [stdout#info] [
2019-08-07T09:22:20+0200 [stdout#info] "error",
2019-08-07T09:22:20+0200 [stdout#info] "service failed to start or returned error status"
2019-08-07T09:22:20+0200 [stdout#info] ]
2019-08-07T09:22:20+0200 [stdout#info] ]
2019-08-07T09:22:20+0200 [stdout#info] },
Netstat is showing the same thing as before. The web ui is loading, but I am unable to sign in using the correct credentials.
What happened? Why did this stop working all of the sudden?