tailscale: windows: CreateTUN: Error registering rings: Error listing NDIS interfaces: no interfaces found
The Tailscale service doesn’t start for some Windows users. Logs:
...
2020-07-05 01:26:33.6081829 +0300 +0300: exec: "C:\\Program Files (x86)\\Tailscale IPN\\tailscale-ipn.exe" [/subproc d97dc6ff5d0a8c099bb92d33ac5225271e40a3a461ed1166c09e8d33b7514c9d]
2020-07-05 01:26:33.6301312 +0300 +0300: Program starting: v0.95-0: []string{"C:\\Program Files (x86)\\Tailscale IPN\\tailscale-ipn.exe", "/subproc", "d97dc6ff5d0a8c099bb92d33ac5225271e40a3a461ed1166c09e8d33b7514c9d"}
2020-07-05 01:26:33.6301312 +0300 +0300: subproc mode: logid=d97dc6ff5d0a8c099bb92d33ac5225271e40a3a461ed1166c09e8d33b7514c9d
2020-07-05 01:26:33.6301312 +0300 +0300: srv: 1.3M/0.0M Starting userspace wireguard engine.
2020-07-05 01:26:33.6301312 +0300 +0300: srv: 1.3M/0.0M external packet routing via --tun=Tailscale enabled
2020-07-05 01:26:35.0389907 +0300 +0300: CreateTUN: Error registering rings: Error listing NDIS interfaces: no interfaces found
2020-07-05 01:26:35.0389907 +0300 +0300: wgengine.New: Error registering rings: Error listing NDIS interfaces: no interfaces found
2020-07-05 01:26:35.0509909 +0300 +0300: subprocess exited: exit status 1
2020-07-05 01:26:35.0509909 +0300 +0300: BabysitProc: backoff: 39637 msec
...
The Error listing NDIS interfaces is from:
https://github.com/tailscale/wireguard-go/blob/main/tun/wintun/wintun_windows.go
// handle returns a handle to the interface device object.
func (wintun *Interface) handle() (windows.Handle, error) {
interfaces, err := setupapi.CM_Get_Device_Interface_List(wintun.devInstanceID, &deviceInterfaceNetGUID, setupapi.CM_GET_DEVICE_INTERFACE_LIST_PRESENT)
if err != nil {
return windows.InvalidHandle, fmt.Errorf("Error listing NDIS interfaces: %v", err)
}
Which calls this, which returns the no interfaces found:
...
if interfaces == nil {
return nil, fmt.Errorf("no interfaces found")
}
...
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 23 (15 by maintainers)
Commits related to this issue
- wgengine/router: tolerate disabled IPv6 on Windows Fixes #412 Updates #524 (maybe fixes?) Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com> — committed to tailscale/tailscale by bradfitz 4 years ago
- wgengine/router: tolerate disabled IPv6 on Windows Fixes #412 Updates #524 (maybe fixes?) Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com> — committed to tailscale/tailscale by bradfitz 4 years ago
- wgengine/router: tolerate disabled IPv6 on Windows Fixes #412 Updates #524 (maybe fixes?) Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com> — committed to tailscale/tailscale by bradfitz 4 years ago
So I finally managed to try out a new build, sadly:
However, on another machine that is running a different Windows build (and didn’t have tailscale installed), not such errors.
Working Windows Version: 10.0.20175 Build 20175 (Insider Preview) Failing Windows Version: 10.0.19042 Build 19042
Update to add the log:
Thanks.
BTW, little known Windows trick: you can focus those message box dialogs and hit
Control-Cand even though the text can’t be selected, that Control-C should make a sound and copy the full text to your clipboard which you can paste in here.