chipconnection
Hello all,
I have OpenVPN_AS 2.5.2 running on Ubuntu 16.04
It was working just fine until I shut the machine down yesterday to move some stuff around.
Now I get this:
openvpnuser@OpenVPNComp:/usr/local/openvpn_as/scripts$ sudo ./sacli start
RunStart warm None
{
"errors": {
"iptables_web": [
[
"error",
"service failed to start due to unresolved dependencies: set(['web'])"
]
],
"openvpn_0": [
[
"error",
"process started and then immediately exited: ['Mon Nov 19 19:16:08 2018 ERROR: Cannot ioctl TUNSETIFF as0t0: Device or resource busy (errno=16)']"
],
[
"error",
"service failed to start or returned error status"
]
],
"openvpn_1": [
[
"error",
"process started and then immediately exited: ['Mon Nov 19 19:16:08 2018 ERROR: Cannot ioctl TUNSETIFF as0t1: Device or resource busy (errno=16)']"
],
[
"error",
"service failed to start or returned error status"
]
],
"openvpn_2": [
[
"error",
"process started and then immediately exited: ['Mon Nov 19 19:16:08 2018 ERROR: Cannot ioctl TUNSETIFF as0t2: Device or resource busy (errno=16)']"
],
[
"error",
"service failed to start or returned error status"
]
],
"openvpn_3": [
[
"error",
"process started and then immediately exited: ['Mon Nov 19 19:16:08 2018 ERROR: Cannot ioctl TUNSETIFF as0t3: Device or resource busy (errno=16)']"
],
[
"error",
"service failed to start or returned error status"
]
],
"openvpn_4": [
[
"error",
"process started and then immediately exited: ['Mon Nov 19 19:16:08 2018 ERROR: Cannot ioctl TUNSETIFF as0t4: Device or resource busy (errno=16)']"
],
[
"error",
"service failed to start or returned error status"
]
],
"openvpn_5": [
[
"error",
"process started and then immediately exited: ['Mon Nov 19 19:16:08 2018 ERROR: Cannot ioctl TUNSETIFF as0t5: Device or resource busy (errno=16)']"
],
[
"error",
"service failed to start or returned error status"
]
],
"openvpn_6": [
[
"error",
"process started and then immediately exited: ['Mon Nov 19 19:16:08 2018 ERROR: Cannot ioctl TUNSETIFF as0t6: Device or resource busy (errno=16)']"
],
[
"error",
"service failed to start or returned error status"
]
],
"openvpn_7": [
[
"error",
"process started and then immediately exited: ['Mon Nov 19 19:16:08 2018 ERROR: Cannot ioctl TUNSETIFF as0t7: Device or resource busy (errno=16)']"
],
[
"error",
"service failed to start or returned error status"
]
],
"web": [
[
"error",
"process started and then immediately exited: 2018-11-19 19:16:08-0600 [-] twisted.internet.error.CannotListenError: Couldn't listen on 192.168.45.150:946: [Errno 98] Address already in use."
],
[
"error",
"service failed to start or returned error status"
]
]
},
"service_status": {
"api": "on",
"auth": "on",
"bridge": "on",
"client_query": "on",
"crl": "on",
"daemon_pre": "on",
"db_push": "on",
"ip6tables_live": "on",
"ip6tables_openvpn": "on",
"iptables_live": "on",
"iptables_openvpn": "on",
"iptables_web": "off",
"license": "on",
"log": "on",
"openvpn_0": "off",
"openvpn_1": "off",
"openvpn_2": "off",
"openvpn_3": "off",
"openvpn_4": "off",
"openvpn_5": "off",
"openvpn_6": "off",
"openvpn_7": "off",
"user": "on",
"web": "off"
}
}
WILL_RESTART []
ERROR: restart failed (ERRBACK)
I'm at my wits end! Anyone have an idea?
The Johan
> CannotListenError: Couldn't listen on 192.168.45.150:946: [Errno 98] Address already in use."
Looks like some stuff's misconfigured or something's already listening there. Try the reset commands here:
https://openvpn.net/vpn-server-resources/advanced-option-settings-on-the-command-line/?#reset-openvpn-web-services-and-daemons-to-defaults
chipconnection
Is it normal to get permission denied when running sacli commands as the main user of the machine?
/usr/local/openvpn_as/scripts$ ./sacli --key "vpn.daemon.0.server.ip_address" --value "all" ConfigPut
ERROR: [Errno 13] Permission denied: u'/usr/local/openvpn_as/etc/tmp/tmp-08jk0f1agAl6.tmp': util/options:79,sagent/sacli:376,uti
I'm wondering if I have a permission problem on the /usr/local/openvpn_as/etc/tmp/tmp-08...l6.tmp folder?
The Johan
Yeah, well, get root permissions, then try again.
chipconnection
Thanks for your help with this novaflash. Much appreciated!
I ran all the reset commands using sudo. They all reported [True, {}], so think they worked.
I did the resets under the top section having to do with the IPs and ports for the daemons. I also reset the multi-daemon mode and number of tcp/udp daemons. And Reset the web services and daemons to defaults. No dice. Same errors:
:/usr/local/openvpn_as/scripts$ sudo ./sacli start
RunStart warm None
{
"errors": {
"iptables_web": [
[
"error",
"service failed to start due to unresolved dependencies: set(['web'])"
]
],
"openvpn_0": [
[
"error",
"process started and then immediately exited: ['Tue Nov 20 12:58:42 2018 ERROR: Cannot ioctl TUNSETIFF as0t0: Device or resource busy (errno=16)']"
],
[
"error",
"service failed to start or returned error status"
]
],
"openvpn_1": [
[
"error",
"process started and then immediately exited: ['Tue Nov 20 12:58:42 2018 ERROR: Cannot ioctl TUNSETIFF as0t1: Device or resource busy (errno=16)']"
],
[
"error",
"service failed to start or returned error status"
]
],
"openvpn_2": [
[
"error",
"process started and then immediately exited: ['Tue Nov 20 12:58:42 2018 ERROR: Cannot ioctl TUNSETIFF as0t2: Device or resource busy (errno=16)']"
],
[
"error",
"service failed to start or returned error status"
]
],
"openvpn_3": [
[
"error",
"process started and then immediately exited: ['Tue Nov 20 12:58:42 2018 ERROR: Cannot ioctl TUNSETIFF as0t3: Device or resource busy (errno=16)']"
],
[
"error",
"service failed to start or returned error status"
]
],
"openvpn_4": [
[
"error",
"process started and then immediately exited: ['Tue Nov 20 12:58:42 2018 ERROR: Cannot ioctl TUNSETIFF as0t4: Device or resource busy (errno=16)']"
],
[
"error",
"service failed to start or returned error status"
]
],
"openvpn_5": [
[
"error",
"process started and then immediately exited: ['Tue Nov 20 12:58:42 2018 ERROR: Cannot ioctl TUNSETIFF as0t5: Device or resource busy (errno=16)']"
],
[
"error",
"service failed to start or returned error status"
]
],
"openvpn_6": [
[
"error",
"process started and then immediately exited: ['Tue Nov 20 12:58:42 2018 ERROR: Cannot ioctl TUNSETIFF as0t6: Device or resource busy (errno=16)']"
],
[
"error",
"service failed to start or returned error status"
]
],
"openvpn_7": [
[
"error",
"process started and then immediately exited: ['Tue Nov 20 12:58:42 2018 ERROR: Cannot ioctl TUNSETIFF as0t7: Device or resource busy (errno=16)']"
],
[
"error",
"service failed to start or returned error status"
]
],
"web": [
[
"error",
"process started and then immediately exited: 2018-11-20 12:58:42-0600 [-] twisted.internet.error.CannotListenError: Couldn't listen on 0.0.0.0:946: [Errno 98] Address already in use."
],
[
"error",
"service failed to start or returned error status"
]
]
},
"service_status": {
"api": "on",
"auth": "on",
"bridge": "on",
"client_query": "restarted",
"crl": "on",
"daemon_pre": "on",
"db_push": "on",
"ip6tables_live": "on",
"ip6tables_openvpn": "on",
"iptables_live": "on",
"iptables_openvpn": "on",
"iptables_web": "off",
"license": "on",
"log": "on",
"openvpn_0": "off",
"openvpn_1": "off",
"openvpn_2": "off",
"openvpn_3": "off",
"openvpn_4": "off",
"openvpn_5": "off",
"openvpn_6": "off",
"openvpn_7": "off",
"user": "on",
"web": "off"
}
}
WILL_RESTART ['client']
ERROR: restart failed (ERRBACK)
The Johan
To be honest, I have no idea. Have not seen this problem before.
I would suggest making a backup of the data and migrating it to a new Access Server.
chipconnection
Yeah, I gave up last night and did a complete removal using synapse. It warned me this would remove everything including config files.
I then installed 2.5.2 and everything was there and working!?!
At least I think so. I won’t know if the clients need a reinstall until next week when people are working again.
Thanks for your help,
-John
The Johan
To be honest I have no idea what you did to break it. In any case, glad to hear you were able to get it working again.