Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not Start netbird on Windows Server 2008 R2 #1307

Open
duanyunlun opened this issue Nov 14, 2023 · 19 comments
Open

Can not Start netbird on Windows Server 2008 R2 #1307

duanyunlun opened this issue Nov 14, 2023 · 19 comments

Comments

@duanyunlun
Copy link

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.

@surik
Copy link
Contributor

surik commented Nov 14, 2023

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.

@duanyunlun
Copy link
Author

duanyunlun commented Nov 16, 2023

@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.

@surik
Copy link
Contributor

surik commented Nov 16, 2023

@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?

@duanyunlun
Copy link
Author

@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
Copy link
Author

@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?

@surik
Copy link
Contributor

surik commented Nov 17, 2023

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.

@z0gg
Copy link

z0gg commented Jan 31, 2024

This bug is still present on the latest V0.25.5

@mlsmaycon
Copy link
Collaborator

@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

@z0gg
Copy link

z0gg commented Jan 31, 2024

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
Copy link

z0gg commented Jan 31, 2024

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

golang/go#64622

@i486
Copy link

i486 commented May 5, 2024

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.

@stunndard
Copy link

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

@freebs65
Copy link

freebs65 commented Aug 2, 2024

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

this does not work...for netbird

@stunndard
Copy link

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

@freebs65
Copy link

freebs65 commented Aug 2, 2024

hmmm i was trying on windows server 2008

@stunndard
Copy link

hmmm i was trying on windows server 2008

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

@freebs65
Copy link

freebs65 commented Aug 3, 2024

Not for me..

https://imgur.com/a/lqdMNrl

@stunndard
Copy link

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

@freebs65
Copy link

freebs65 commented Aug 3, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants