netbird icon indicating copy to clipboard operation
netbird copied to clipboard

Can not Start netbird on Windows Server 2008 R2

Open duanyunlun opened this issue 2 years ago • 12 comments

Describe the problem I can install Netbird on the Windows Server 2008 R2 System and already login the Admin Panel, but can't "connect"(Click but nothing happen), and I don't see the default "wt" adapter in the network adapter interface.

To Reproduce Just install it on a windows server 2008 r2 sysytem.

duanyunlun avatar Nov 14 '23 07:11 duanyunlun

Hi @duanyunlun, to understand what is the root cause could you please provide logs from the Netbird agent? By default, on Windows, they should be in C:\ProgramData\Netbird\client.log.

surik avatar Nov 14 '23 08:11 surik

@surik Sorry, here's the part of the log file(mostly is like that):

2023-11-12T20:57:10-05:00 INFO client/internal/connect.go:47: starting NetBird client version 0.24.2
2023-11-12T20:57:10-05:00 ERRO client/system/info_windows.go:42: The system cannot find the file specified.
2023-11-12T20:57:10-05:00 ERRO client/system/info_windows.go:46: The system cannot find the file specified.
2023-11-12T20:57:10-05:00 ERRO client/internal/routemanager/manager.go:41: server router is not supported: firewall not supported on windows
2023-11-12T20:57:14-05:00 ERRO client/internal/engine.go:236: failed configuring Wireguard interface [wt0]: received error "The data is invalid." while configuring interface wt0 with port 51820
2023-11-12T20:57:15-05:00 ERRO client/internal/connect.go:178: error while starting Netbird Connection Engine: received error "The data is invalid." while configuring interface wt0 with port 51820
2023-11-12T20:57:15-05:00 ERRO client/internal/engine.go:236: failed configuring Wireguard interface [wt0]: received error "The data is invalid." while configuring interface wt0 with port 51820
2023-11-12T20:57:15-05:00 ERRO client/internal/connect.go:178: error while starting Netbird Connection Engine: received error "The data is invalid." while configuring interface wt0 with port 51820
2023-11-12T20:57:17-05:00 ERRO client/system/info_windows.go:42: The system cannot find the file specified.
2023-11-12T20:57:17-05:00 ERRO client/system/info_windows.go:46: The system cannot find the file specified.
2023-11-12T20:57:17-05:00 ERRO client/internal/routemanager/manager.go:41: server router is not supported: firewall not supported on windows
2023-11-12T20:57:19-05:00 ERRO client/internal/engine.go:236: failed configuring Wireguard interface [wt0]: received error "The data is invalid." while configuring interface wt0 with port 51820
2023-11-12T20:57:20-05:00 ERRO client/internal/connect.go:178: error while starting Netbird Connection Engine: received error "The data is invalid." while configuring interface wt0 with port 51820
2023-11-12T20:57:22-05:00 ERRO client/system/info_windows.go:42: The system cannot find the file specified.
2023-11-12T20:57:22-05:00 ERRO client/system/info_windows.go:46: The system cannot find the file specified.
2023-11-12T20:57:22-05:00 ERRO client/internal/routemanager/manager.go:41: server router is not supported: firewall not supported on windows
2023-11-12T20:57:23-05:00 ERRO client/internal/engine.go:236: failed configuring Wireguard interface [wt0]: received error "The data is invalid." while configuring interface wt0 with port 51820
2023-11-12T20:57:23-05:00 ERRO client/internal/connect.go:178: error while starting Netbird Connection Engine: received error "The data is invalid." while configuring interface wt0 with port 51820
2023-11-12T20:57:25-05:00 ERRO client/system/info_windows.go:42: The system cannot find the file specified.
2023-11-12T20:57:25-05:00 ERRO client/system/info_windows.go:46: The system cannot find the file specified.
2023-11-12T20:57:25-05:00 ERRO client/internal/routemanager/manager.go:41: server router is not supported: firewall not supported on windows
2023-11-12T20:57:26-05:00 ERRO client/internal/engine.go:236: failed configuring Wireguard interface [wt0]: received error "The data is invalid." while configuring interface wt0 with port 51820
2023-11-12T20:57:26-05:00 ERRO client/internal/connect.go:178: error while starting Netbird Connection Engine: received error "The data is invalid." while configuring interface wt0 with port 51820
2023-11-12T20:57:33-05:00 ERRO client/system/info_windows.go:42: The system cannot find the file specified.
2023-11-12T20:57:33-05:00 ERRO client/system/info_windows.go:46: The system cannot find the file specified.
2023-11-12T20:57:33-05:00 ERRO client/system/info_windows.go:42: The system cannot find the file specified.
2023-11-12T20:57:33-05:00 ERRO client/system/info_windows.go:46: The system cannot find the file specified.

duanyunlun avatar Nov 16 '23 07:11 duanyunlun

@duanyunlun Thank you for providing the logs. This looks similar to https://github.com/netbirdio/netbird/issues/1097 and may be a compatibility issue. We will have to take a deeper look at this. Any chance you can try it on client version 0.15?

surik avatar Nov 16 '23 09:11 surik

@duanyunlun Thank you for providing the logs. This looks similar to #1097 and may be a compatibility issue. We will have to take a deeper look at this. Any chance you can try it on client version 0.15?

I will test v0.15 if device ready

duanyunlun avatar Nov 16 '23 11:11 duanyunlun

@duanyunlun Thank you for providing the logs. This looks similar to #1097 and may be a compatibility issue. We will have to take a deeper look at this. Any chance you can try it on client version 0.15?

I installed 0.15.3 and it worked now, What caused the latest version connect failed?

duanyunlun avatar Nov 17 '23 06:11 duanyunlun

Happy to hear that it worked. We will investigate the issue with some internals used since v0.16.0 and confirm if this can be fixed.

surik avatar Nov 17 '23 09:11 surik

This bug is still present on the latest V0.25.5

z0gg avatar Jan 31 '24 01:01 z0gg

@x1d0 can you share more details about your case? You can get the client logs as documented here: https://docs.netbird.io/how-to/troubleshooting-client#getting-client-logs

mlsmaycon avatar Jan 31 '24 08:01 mlsmaycon

Sorry The client log is not generated This is the output of the command

C:\Users\Administrateur>netbird Exception 0xc0000005 0x8 0x0 0x0 PC=0x0

runtime.asmstdcall() /opt/hostedtoolcache/go/1.21.6/x64/src/runtime/sys_windows_amd64.s:65 +0 x75 fp=0x22fca0 sp=0x22fc80 pc=0x46e215 rax 0x0 rbx 0x1c20260 rcx 0x219f240 rdi 0x7fffffde000 rsi 0x22fea0 rbp 0x22fde0 rsp 0x22fc78 r8 0x0 r9 0x22fee0 r10 0x1c70278 r11 0x21 r12 0x22fec0 r13 0x1 r14 0x1c1f800 r15 0x0 rip 0x0 rflags 0x10293 cs 0x33 fs 0x53 gs 0x2b

z0gg avatar Jan 31 '24 16:01 z0gg

Just found the "why" Golang 1.21 require at least Windows 10 so its a no go on Windows 7 and Server 2008

https://github.com/golang/go/issues/64622

z0gg avatar Jan 31 '24 16:01 z0gg

I'm not a developer, but from what I can gather from this discussion, it seems like there's only one API change that broke Go on Windows 7. After reading the entire conversation, it looks like many of the main Go developers are open to make Go compatible with Windows 7 again. They're just waiting for a volunteer to handle it through proper channels.

i486 avatar May 05 '24 02:05 i486

try this: https://github.com/stunndard/golangwin7patch

stunndard avatar Jun 20 '24 05:06 stunndard

try this: https://github.com/stunndard/golangwin7patch

this does not work...for netbird

freebs65 avatar Aug 02 '24 20:08 freebs65

this does not work...for netbird

this indeed works. video captured on windows 7 with the latest netbird from releases. https://mega.nz/file/vc9yyQrC#wW2DF0lDAdnH-54Gc1XDeVBDuBWLAnM8uaOjhCVgWW0

stunndard avatar Aug 02 '24 21:08 stunndard

hmmm i was trying on windows server 2008

freebs65 avatar Aug 02 '24 21:08 freebs65

hmmm i was trying on windows server 2008

it works with server 2008 as well. https://imgur.com/a/LiemSFQ

stunndard avatar Aug 03 '24 00:08 stunndard

Not for me..

https://imgur.com/a/lqdMNrl

freebs65 avatar Aug 03 '24 01:08 freebs65

You don't want to patch the netbird installer. Install it, then use the patcher to patch the actual netbird exe file(s)

stunndard avatar Aug 03 '24 12:08 stunndard

good grief... my apologies.. thank you.. it works now :) I guess it helps to do it properly..

freebs65 avatar Aug 03 '24 23:08 freebs65