netbirdio / netbird

Connect your devices into a secure WireGuard®-based overlay network with SSO, MFA and granular access controls.
https://netbird.io
BSD 3-Clause "New" or "Revised" License
10.8k stars 490 forks source link

The connect button has no response after self-hosting #1393

Open gogpgg opened 9 months ago

gogpgg commented 9 months ago

Describe the problem After netbird is self-hosted, the netbird client is installed on the win11 system. The client sets the setting to the self-hosted domain name (https://mydomain.com:443) and then saves it successfully. However, when the client clicks the connect button, nothing happens. PC Browse will not open any login window. However, the computer client of win10 system works normally.

In win11 system, if the client management URL is the default address (https://api.wiretrustee.com:443), clicking the connect button will pop up the login page,it works normally too.

Please help me, what should I do under my win11 system? Thank you.

mlsmaycon commented 9 months ago

Hello @gogpgg it seems like there is an issue in your configuration with the PKCE or Device flow. Can you check that by running netbird up in a PowerShell window and share the output?

Can you also share your identity provider?

gogpgg commented 9 months ago

Hello@mlsmaycon

PS C:\Users\DD> netbird up 2023-12-19T22:45:59+08:00 WARN client/cmd/root.go:188: retrying Login to the Management service in 763.5862ms due to error rpc error: code = Unknown desc = getting device authorization flow info failed with error: context deadline exceeded Error: login backoff cycle failed: rpc error: code = Unknown desc = no SSO provider returned from management. Please proceed with setting up this device using setup keys https://docs.netbird.io/how-to/register-machines-using-setup-keys

PS C:\Users\DD> netbird up 2023-12-19T22:55:24+08:00 WARN client/cmd/root.go:188: retrying Login to the Management service in 781.434361ms due to error rpc error: code = Unknown desc = no SSO provider returned from management. Please proceed with setting up this device using setup keys https://docs.netbird.io/how-to/register-machines-using-setup-keys Error: login backoff cycle failed: rpc error: code = Unknown desc = getting device authorization flow info failed with error: context deadline exceeded PS C:\Users\DD>

My identity provider is the Zitadel. Thank you.

rqi14 commented 7 months ago

I experienced the same problem. I'm using azure

Mifody-07 commented 5 months ago

try restarting the service in Windows

net stop hns
net start hns

then try to start netbird

netbird service run --config C:\ProgramData\Netbird\config.json --log-level debug --log-file C:\ProgramData\Netbird\client.log