Cannot start netbird on Windows 10 #428

Closed
opened 2025-11-20 05:11:13 -05:00 by saavagebueno · 16 comments
Owner

Originally created by @rgl on GitHub (Aug 25, 2023).

Describe the problem

For some reason that I would like help with, netbird in not starting on one of my machines.

To Reproduce

Steps to reproduce the behavior:

  1. Just try to start netbird.

Expected behavior

Maybe it should have logged more detail about wguser: errno=-98?

NetBird status -d output:

# netbird status -d
Peers detail:
Daemon version:
CLI version: 0.22.7
Management: Disconnected
Signal: Disconnected
FQDN:
NetBird IP: N/A
Interface type: N/A
Peers count: 0/0 Connected
# netbird service stop
Netbird service has been stopped

# netbird up -F --log-level debug
2023-08-25T08:25:41+01:00 DEBG client/internal/login.go:93: connecting to the Management service https://api.wiretrustee.com:443
2023-08-25T08:25:41+01:00 DEBG client/internal/login.go:63: connected to the Management service https://api.wiretrustee.com:443
2023-08-25T08:25:41+01:00 DEBG client/internal/login.go:93: connecting to the Management service https://api.wiretrustee.com:443
2023-08-25T08:25:41+01:00 DEBG client/internal/login.go:63: connected to the Management service https://api.wiretrustee.com:443
2023-08-25T08:25:41+01:00 DEBG client/internal/connect.go:99: conecting to the Management service api.wiretrustee.com:443
2023-08-25T08:25:42+01:00 DEBG client/internal/connect.go:107: connected to the Management service api.wiretrustee.com:443
2023-08-25T08:25:42+01:00 DEBG signal/client/grpc.go:91: connected to Signal Service: signal2.wiretrustee.com:443
2023-08-25T08:25:42+01:00 ERRO client/internal/routemanager/manager.go:41: server router is not supported: firewall not supported on this OS
2023/08/25 08:25:42 Using existing driver 0.14
2023/08/25 08:25:42 Creating adapter
2023-08-25T08:25:42+01:00 DEBG iface/tun_windows.go:108: UAPI listener started
2023-08-25T08:25:42+01:00 DEBG iface/tun_windows.go:164: adding address 100.71.22.239 to interface: wt0
2023-08-25T08:25:42+01:00 DEBG iface/iface.go:54: configuring Wireguard interface wt0
2023-08-25T08:25:42+01:00 DEBG iface/wg_configurer_nonandroid.go:26: adding Wireguard private key
2023-08-25T08:25:42+01:00 DEBG iface/tun_windows.go:103: exit tunDevice.IpcHandle
2023-08-25T08:25:42+01:00 ERRO client/internal/engine.go:236: failed configuring Wireguard interface [wt0]: received error "read: wguser: errno=-98" while configuring interface wt0 with port 51820
2023-08-25T08:25:42+01:00 DEBG client/internal/engine.go:1016: removing Netbird interface wt0
2023-08-25T08:25:42+01:00 DEBG iface/tun_windows.go:103: exit tunDevice.IpcHandle
2023-08-25T08:25:42+01:00 ERRO client/internal/connect.go:175: error while starting Netbird Connection Engine: received error "read: wguser: errno=-98" while configuring interface wt0 with port 51820
2023-08-25T08:25:44+01:00 DEBG client/internal/connect.go:99: conecting to the Management service api.wiretrustee.com:443
2023-08-25T08:25:44+01:00 DEBG client/internal/connect.go:107: connected to the Management service api.wiretrustee.com:443
2023-08-25T08:25:44+01:00 DEBG signal/client/grpc.go:91: connected to Signal Service: signal2.wiretrustee.com:443
2023-08-25T08:25:44+01:00 ERRO client/internal/routemanager/manager.go:41: server router is not supported: firewall not supported on this OS
2023/08/25 08:25:44 Using existing driver 0.14
2023/08/25 08:25:44 Creating adapter
Originally created by @rgl on GitHub (Aug 25, 2023). **Describe the problem** For some reason that I would like help with, netbird in not starting on one of my machines. **To Reproduce** Steps to reproduce the behavior: 1. Just try to start netbird. **Expected behavior** Maybe it should have logged more detail about wguser: errno=-98? **NetBird status -d output:** ```console # netbird status -d Peers detail: Daemon version: CLI version: 0.22.7 Management: Disconnected Signal: Disconnected FQDN: NetBird IP: N/A Interface type: N/A Peers count: 0/0 Connected ``` ```console # netbird service stop Netbird service has been stopped # netbird up -F --log-level debug 2023-08-25T08:25:41+01:00 DEBG client/internal/login.go:93: connecting to the Management service https://api.wiretrustee.com:443 2023-08-25T08:25:41+01:00 DEBG client/internal/login.go:63: connected to the Management service https://api.wiretrustee.com:443 2023-08-25T08:25:41+01:00 DEBG client/internal/login.go:93: connecting to the Management service https://api.wiretrustee.com:443 2023-08-25T08:25:41+01:00 DEBG client/internal/login.go:63: connected to the Management service https://api.wiretrustee.com:443 2023-08-25T08:25:41+01:00 DEBG client/internal/connect.go:99: conecting to the Management service api.wiretrustee.com:443 2023-08-25T08:25:42+01:00 DEBG client/internal/connect.go:107: connected to the Management service api.wiretrustee.com:443 2023-08-25T08:25:42+01:00 DEBG signal/client/grpc.go:91: connected to Signal Service: signal2.wiretrustee.com:443 2023-08-25T08:25:42+01:00 ERRO client/internal/routemanager/manager.go:41: server router is not supported: firewall not supported on this OS 2023/08/25 08:25:42 Using existing driver 0.14 2023/08/25 08:25:42 Creating adapter 2023-08-25T08:25:42+01:00 DEBG iface/tun_windows.go:108: UAPI listener started 2023-08-25T08:25:42+01:00 DEBG iface/tun_windows.go:164: adding address 100.71.22.239 to interface: wt0 2023-08-25T08:25:42+01:00 DEBG iface/iface.go:54: configuring Wireguard interface wt0 2023-08-25T08:25:42+01:00 DEBG iface/wg_configurer_nonandroid.go:26: adding Wireguard private key 2023-08-25T08:25:42+01:00 DEBG iface/tun_windows.go:103: exit tunDevice.IpcHandle 2023-08-25T08:25:42+01:00 ERRO client/internal/engine.go:236: failed configuring Wireguard interface [wt0]: received error "read: wguser: errno=-98" while configuring interface wt0 with port 51820 2023-08-25T08:25:42+01:00 DEBG client/internal/engine.go:1016: removing Netbird interface wt0 2023-08-25T08:25:42+01:00 DEBG iface/tun_windows.go:103: exit tunDevice.IpcHandle 2023-08-25T08:25:42+01:00 ERRO client/internal/connect.go:175: error while starting Netbird Connection Engine: received error "read: wguser: errno=-98" while configuring interface wt0 with port 51820 2023-08-25T08:25:44+01:00 DEBG client/internal/connect.go:99: conecting to the Management service api.wiretrustee.com:443 2023-08-25T08:25:44+01:00 DEBG client/internal/connect.go:107: connected to the Management service api.wiretrustee.com:443 2023-08-25T08:25:44+01:00 DEBG signal/client/grpc.go:91: connected to Signal Service: signal2.wiretrustee.com:443 2023-08-25T08:25:44+01:00 ERRO client/internal/routemanager/manager.go:41: server router is not supported: firewall not supported on this OS 2023/08/25 08:25:44 Using existing driver 0.14 2023/08/25 08:25:44 Creating adapter ```
saavagebueno added the waiting-feedback label 2025-11-20 05:11:13 -05:00
Author
Owner

@pappz commented on GitHub (Aug 25, 2023):

@rgl Maybe the default Wireguard port is in use. Do you have any other application what can take that port?

@pappz commented on GitHub (Aug 25, 2023): @rgl Maybe the default Wireguard port is in use. Do you have any other application what can take that port?
Author
Owner

@rgl commented on GitHub (Aug 25, 2023):

@pappz there's nothing listening at that port:

# netstat -an | grep 51820

@rgl commented on GitHub (Aug 25, 2023): @pappz there's nothing listening at that port: ```console # netstat -an | grep 51820 ```
Author
Owner

@teoder commented on GitHub (Oct 25, 2023):

I'm having the same problem on Win11 with Netbird v0.24.0 and earlier versions too, reboot of PC solves the issue. I haven't found a solution without rebooting.

2023-10-25T14:01:41+02:00 ERRO client/internal/engine.go:236: failed configuring Wireguard interface [wt0]: received error "read: wguser: errno=-98" while configuring interface wt0 with port 51820 2023-10-25T14:01:41+02:00 ERRO client/internal/connect.go:175: error while starting Netbird Connection Engine: received error "read: wguser: errno=-98" while configuring interface wt0 with port 51820 2023-10-25T14:01:42+02:00 ERRO client/internal/routemanager/manager.go:41: server router is not supported: firewall not supported on windows

When checking netstat I have no process or service that are locking 51820.

@teoder commented on GitHub (Oct 25, 2023): I'm having the same problem on Win11 with Netbird v0.24.0 and earlier versions too, reboot of PC solves the issue. I haven't found a solution without rebooting. ` 2023-10-25T14:01:41+02:00 ERRO client/internal/engine.go:236: failed configuring Wireguard interface [wt0]: received error "read: wguser: errno=-98" while configuring interface wt0 with port 51820 2023-10-25T14:01:41+02:00 ERRO client/internal/connect.go:175: error while starting Netbird Connection Engine: received error "read: wguser: errno=-98" while configuring interface wt0 with port 51820 2023-10-25T14:01:42+02:00 ERRO client/internal/routemanager/manager.go:41: server router is not supported: firewall not supported on windows ` When checking netstat I have no process or service that are locking 51820.
Author
Owner

@mlsmaycon commented on GitHub (Oct 25, 2023):

Hello @teoder , what is your operating system language? we are investigating this issue now https://github.com/netbirdio/netbird/issues/1249

@mlsmaycon commented on GitHub (Oct 25, 2023): Hello @teoder , what is your operating system language? we are investigating this issue now https://github.com/netbirdio/netbird/issues/1249
Author
Owner

@teoder commented on GitHub (Oct 25, 2023):

Hello @teoder , what is your operating system language? we are investigating this issue now #1249

OS Name: Microsoft Windows 11 Business OS Version: 10.0.22621 N/A Build 22621

@teoder commented on GitHub (Oct 25, 2023): > Hello @teoder , what is your operating system language? we are investigating this issue now #1249 ` OS Name: Microsoft Windows 11 Business OS Version: 10.0.22621 N/A Build 22621 `
Author
Owner

@Fantu commented on GitHub (Oct 25, 2023):

@teoder this is the version but not the language, needed to understand if is the same issue reported in #1249
excluding the additional language pack (possibly added later for user interfaces) in which language was windows installed?

@Fantu commented on GitHub (Oct 25, 2023): @teoder this is the version but not the language, needed to understand if is the same issue reported in #1249 excluding the additional language pack (possibly added later for user interfaces) in which language was windows installed?
Author
Owner

@mlsmaycon commented on GitHub (Oct 25, 2023):

The firewall logs are misleading in this case. @teoder @rgl Can you confirm that when the issue happens, you have no other wt0 interface in the system?

@mlsmaycon commented on GitHub (Oct 25, 2023): The firewall logs are misleading in this case. @teoder @rgl Can you confirm that when the issue happens, you have no other wt0 interface in the system?
Author
Owner

@teoder commented on GitHub (Oct 25, 2023):

I'm using an English version.
Right now I have no issues, but I'll post as soon as it happens again.

@teoder commented on GitHub (Oct 25, 2023): I'm using an English version. Right now I have no issues, but I'll post as soon as it happens again.
Author
Owner

@teoder commented on GitHub (Oct 30, 2023):

@mlsmaycon
Right now I'm having issues related to this (I think)
Getting these messages wen running Netbird v0.24.2 with "netbird up -F"

2023/10/30 14:24:16 Creating adapter 2023-10-30T14:24:16+01:00 ERRO client/internal/engine.go:229: failed creating tunnel interface wt0: [open \\.\pipe\ProtectedPrefix\Administrators\WireGuard\wt0: This security ID may not be assigned as the owner of this object.] 2023-10-30T14:24:16+01:00 ERRO client/internal/connect.go:178: error while starting Netbird Connection Engine: open \\.\pipe\ProtectedPrefix\Administrators\WireGuard\wt0: This security ID may not be assigned as the owner of this object. 2023-10-30T14:24:25+01:00 ERRO client/internal/routemanager/manager.go:41: server router is not supported: firewall not supported on windows 2023/10/30 14:24:25 Using existing driver 0.14

No other software using wt0, it's non-existent.

@teoder commented on GitHub (Oct 30, 2023): @mlsmaycon Right now I'm having issues related to this (I think) Getting these messages wen running Netbird v0.24.2 with "netbird up -F" ` 2023/10/30 14:24:16 Creating adapter 2023-10-30T14:24:16+01:00 ERRO client/internal/engine.go:229: failed creating tunnel interface wt0: [open \\.\pipe\ProtectedPrefix\Administrators\WireGuard\wt0: This security ID may not be assigned as the owner of this object.] 2023-10-30T14:24:16+01:00 ERRO client/internal/connect.go:178: error while starting Netbird Connection Engine: open \\.\pipe\ProtectedPrefix\Administrators\WireGuard\wt0: This security ID may not be assigned as the owner of this object. 2023-10-30T14:24:25+01:00 ERRO client/internal/routemanager/manager.go:41: server router is not supported: firewall not supported on windows 2023/10/30 14:24:25 Using existing driver 0.14 ` No other software using wt0, it's non-existent.
Author
Owner

@mlsmaycon commented on GitHub (Oct 30, 2023):

Hello @teoder there is no support for running NetBird in the foreground without a system account. That's why you should run it as a service only or with a tool called PSexec, which can be installed using chocolatey:

choco install -y sysinternals
PsExec64 -s netbird up -F -l debug
@mlsmaycon commented on GitHub (Oct 30, 2023): Hello @teoder there is no support for running NetBird in the foreground without a system account. That's why you should run it as a service only or with a tool called PSexec, which can be installed using [chocolatey](https://chocolatey.org/install): ```shell choco install -y sysinternals PsExec64 -s netbird up -F -l debug ```
Author
Owner

@teoder commented on GitHub (Oct 31, 2023):

Hello @teoder there is no support for running NetBird in the foreground without a system account. That's why you should run it as a service only or with a tool called PSexec, which can be installed using chocolatey:

choco install -y sysinternals
PsExec64 -s netbird up -F -l debug

Thanks, that explained a lot! I was testing it out all wrong.
I Still have issues, but not related to this :)

@teoder commented on GitHub (Oct 31, 2023): > Hello @teoder there is no support for running NetBird in the foreground without a system account. That's why you should run it as a service only or with a tool called PSexec, which can be installed using [chocolatey](https://chocolatey.org/install): > > ```shell > choco install -y sysinternals > PsExec64 -s netbird up -F -l debug > ``` Thanks, that explained a lot! I was testing it out all wrong. I Still have issues, but not related to this :)
Author
Owner

@rgl commented on GitHub (Dec 19, 2023):

@mlsmaycon, I confirm that I do not have any interface named wt0. Netbird sits in a loop doing:

2023-12-19T16:54:47Z DEBG client/internal/login.go:93: connecting to the Management service https://api.wiretrustee.com:443
2023-12-19T16:54:48Z DEBG client/internal/login.go:63: connected to the Management service https://api.wiretrustee.com:443
2023-12-19T16:54:48Z DEBG client/internal/login.go:93: connecting to the Management service https://api.wiretrustee.com:443
2023-12-19T16:54:48Z DEBG client/internal/login.go:63: connected to the Management service https://api.wiretrustee.com:443
2023-12-19T16:54:48Z INFO client/internal/connect.go:56: starting NetBird client version 0.25.0
2023-12-19T16:54:48Z DEBG client/internal/connect.go:111: connecting to the Management service api.wiretrustee.com:443
2023-12-19T16:54:48Z DEBG client/internal/connect.go:119: connected to the Management service api.wiretrustee.com:443
2023-12-19T16:54:48Z DEBG signal/client/grpc.go:91: connected to Signal Service: signal.netbird.io:443
2023/12/19 16:54:48 Using existing driver 0.14
2023/12/19 16:54:48 Creating adapter
2023-12-19T16:54:49Z DEBG iface/tun_windows.go:108: UAPI listener started
2023-12-19T16:54:49Z DEBG iface/tun_windows.go:164: adding address 100.71.22.239 to interface: wt0
2023-12-19T16:54:49Z DEBG iface/iface.go:54: configuring Wireguard interface wt0
2023-12-19T16:54:49Z DEBG iface/wg_configurer_nonmobile.go:26: adding Wireguard private key
2023-12-19T16:54:49Z DEBG iface/tun_windows.go:103: exit tunDevice.IpcHandle
2023-12-19T16:54:49Z ERRO client/internal/engine.go:262: failed configuring Wireguard interface [wt0]: received error "read: wguser: errno=-98" while configuring interface wt0 with port 51820
2023-12-19T16:54:49Z DEBG client/internal/engine.go:1037: removing Netbird interface wt0
2023-12-19T16:54:49Z DEBG iface/tun_windows.go:103: exit tunDevice.IpcHandle
2023-12-19T16:54:49Z ERRO client/internal/connect.go:187: error while starting Netbird Connection Engine: received error "read: wguser: errno=-98" while configuring interface wt0 with port 51820
2023-12-19T16:54:49Z DEBG client/internal/connect.go:111: connecting to the Management service api.wiretrustee.com:443
2023-12-19T16:54:49Z DEBG client/internal/connect.go:119: connected to the Management service api.wiretrustee.com:443
2023-12-19T16:54:52Z DEBG signal/client/grpc.go:91: connected to Signal Service: signal.netbird.io:443
2023/12/19 16:54:52 Using existing driver 0.14
2023/12/19 16:54:52 Creating adapter
@rgl commented on GitHub (Dec 19, 2023): @mlsmaycon, I confirm that I do not have any interface named wt0. Netbird sits in a loop doing: ``` 2023-12-19T16:54:47Z DEBG client/internal/login.go:93: connecting to the Management service https://api.wiretrustee.com:443 2023-12-19T16:54:48Z DEBG client/internal/login.go:63: connected to the Management service https://api.wiretrustee.com:443 2023-12-19T16:54:48Z DEBG client/internal/login.go:93: connecting to the Management service https://api.wiretrustee.com:443 2023-12-19T16:54:48Z DEBG client/internal/login.go:63: connected to the Management service https://api.wiretrustee.com:443 2023-12-19T16:54:48Z INFO client/internal/connect.go:56: starting NetBird client version 0.25.0 2023-12-19T16:54:48Z DEBG client/internal/connect.go:111: connecting to the Management service api.wiretrustee.com:443 2023-12-19T16:54:48Z DEBG client/internal/connect.go:119: connected to the Management service api.wiretrustee.com:443 2023-12-19T16:54:48Z DEBG signal/client/grpc.go:91: connected to Signal Service: signal.netbird.io:443 2023/12/19 16:54:48 Using existing driver 0.14 2023/12/19 16:54:48 Creating adapter 2023-12-19T16:54:49Z DEBG iface/tun_windows.go:108: UAPI listener started 2023-12-19T16:54:49Z DEBG iface/tun_windows.go:164: adding address 100.71.22.239 to interface: wt0 2023-12-19T16:54:49Z DEBG iface/iface.go:54: configuring Wireguard interface wt0 2023-12-19T16:54:49Z DEBG iface/wg_configurer_nonmobile.go:26: adding Wireguard private key 2023-12-19T16:54:49Z DEBG iface/tun_windows.go:103: exit tunDevice.IpcHandle 2023-12-19T16:54:49Z ERRO client/internal/engine.go:262: failed configuring Wireguard interface [wt0]: received error "read: wguser: errno=-98" while configuring interface wt0 with port 51820 2023-12-19T16:54:49Z DEBG client/internal/engine.go:1037: removing Netbird interface wt0 2023-12-19T16:54:49Z DEBG iface/tun_windows.go:103: exit tunDevice.IpcHandle 2023-12-19T16:54:49Z ERRO client/internal/connect.go:187: error while starting Netbird Connection Engine: received error "read: wguser: errno=-98" while configuring interface wt0 with port 51820 2023-12-19T16:54:49Z DEBG client/internal/connect.go:111: connecting to the Management service api.wiretrustee.com:443 2023-12-19T16:54:49Z DEBG client/internal/connect.go:119: connected to the Management service api.wiretrustee.com:443 2023-12-19T16:54:52Z DEBG signal/client/grpc.go:91: connected to Signal Service: signal.netbird.io:443 2023/12/19 16:54:52 Using existing driver 0.14 2023/12/19 16:54:52 Creating adapter ```
Author
Owner

@indigitale commented on GitHub (Nov 21, 2024):

i have the same problem with windows 11

@indigitale commented on GitHub (Nov 21, 2024): i have the same problem with windows 11
Author
Owner

@Java2Boy commented on GitHub (Dec 12, 2024):

me too..
CMD:netbird status -d
Peers detail:
OS: windows/amd64
Daemon version: 0.34.1
CLI version: 0.34.1
Management: Disconnected, reason: rpc error: code = PermissionDenied desc = no peer auth method prov
ided, please use a setup key or interactive SSO login
Signal: Disconnected
Relays:
Nameservers:
FQDN:
NetBird IP: N/A
Interface type: N/A
Quantum resistance: false
Routes: -

@Java2Boy commented on GitHub (Dec 12, 2024): me too.. CMD:netbird status -d Peers detail: OS: windows/amd64 Daemon version: 0.34.1 CLI version: 0.34.1 Management: Disconnected, reason: rpc error: code = PermissionDenied desc = no peer auth method prov ided, please use a setup key or interactive SSO login Signal: Disconnected Relays: Nameservers: FQDN: NetBird IP: N/A Interface type: N/A Quantum resistance: false Routes: -
Author
Owner

@nazarewk commented on GitHub (Apr 28, 2025):

Hello @rgl,

We're currently reviewing our open issues and would like to verify if this problem still exists in the latest NetBird version.

Could you please confirm if the issue is still there?

We may close this issue temporarily if we don't hear back from you within 2 weeks, but feel free to reopen it with updated information.

Thanks for your contribution to improving the project!

@nazarewk commented on GitHub (Apr 28, 2025): Hello @rgl, We're currently reviewing our open issues and would like to verify if this problem still exists in the [latest NetBird version](https://github.com/netbirdio/netbird/releases). Could you please confirm if the issue is still there? We may close this issue temporarily if we don't hear back from you within **2 weeks**, but feel free to reopen it with updated information. Thanks for your contribution to improving the project!
Author
Owner

@rgl commented on GitHub (Apr 29, 2025):

in the meantime, I've migrated to windows 11.

in windows 11, the latest versions work fine :-)

thx for pinging!

@rgl commented on GitHub (Apr 29, 2025): in the meantime, I've migrated to windows 11. in windows 11, the latest versions work fine :-) thx for pinging!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/netbird#428