Closed accsh closed 2 years ago
Confirmed bug:
2021/09/15 14:23:45 TCP admin socket listening on 127.0.0.1:9001
2021/09/15 14:23:46 Failed to set up TUN address: Element not found.
2021/09/15 14:23:46 An error occurred starting TUN/TAP: Element not found.
This causes #807
I faced the same error and wasted about 4 hours of debugging but the reason was on the surface.
The problem was in registry key DisabledComponents = 0xFF
at HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters\
, i.e. ipv6 was totally disabled on system.
Setting DisabledComponents = 0x0
and reboot solved problem.
msdn ref about this thing
Idk, why windows works normally in this "disabled" ipv6 state, but everything, except wireguard's wrapper over winapi func CreateUnicastIpAddressEntry
(winipcfg.luid.AddIPAddress
) works normally
Great, Thanks, it works!
I faced the same error and wasted about 4 hours of debugging but the reason was on the surface. The problem was in registry key
DisabledComponents = 0xFF
atHKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters\
, i.e. ipv6 was totally disabled on system. SettingDisabledComponents = 0x0
and reboot solved problem. msdn ref about this thingIdk, why windows works normally in this "disabled" ipv6 state, but everything, except wireguard's wrapper over winapi func
CreateUnicastIpAddressEntry
(winipcfg.luid.AddIPAddress
) works normally
The solution did not work for me: issue is still reproducing. I noticed that interface is starting after Windows boot and take some time to become it ready. This is the root cause: yggdrasil service is trying to configure not-ready interface.
Fixed it by adding backoff period: https://github.com/RiV-chain/RiV-mesh/commit/ecbd6e8cde640c5cff6f3f2fb4714dd90dec8104
Yggdrasil network (WireGuard tunnel) state: Not connected.
yggdrasil.log: 2021/09/03 13:49:41 Build name: yggdrasil 2021/09/03 13:49:41 Build version: 0.4.0 2021/09/03 13:49:41 Starting up... 2021/09/03 13:49:41 Startup complete 2021/09/03 13:49:41 Starting multicast module 2021/09/03 13:49:42 TCP admin socket listening on 127.0.0.1:9001 2021/09/03 13:49:43 Failed to set up TUN address: Element not found. 2021/09/03 13:49:43 An error occurred starting TUN/TAP: Element not found. 2021/09/03 13:49:43 Your public key is ...
setupapi.dev.log:
And there is some errors/warnings in Windows Event Viewer but in Russian)). Hope it was helpful.