[GH-ISSUE #1388] can't connect #2174

Closed
opened 2026-08-05 00:45:43 -04:00 by saavagebueno · 12 comments
Owner

Originally created by @omarbenzekri on GitHub (Dec 14, 2023).
Original GitHub issue: https://github.com/netbirdio/netbird/issues/1388

Hi
I have an issue when click on connect from app client, after logging to my email it shows to message to authorize (only the first time) then it shows login successful,but nothing happens in the app.
running Windows 11 X64.

What i have tried :
Add an inbound rule for netbird program(allow all).
I have tried using the command line "netbird up" and this is the output :


C:\Windows\System32>netbird up -F --log-level debug
2023-12-14T11:21:03+01:00 DEBG client/internal/login.go:93: connecting to the Management service https://api.wiretrustee.com:443
2023-12-14T11:21:03+01:00 DEBG client/internal/login.go:63: connected to the Management service https://api.wiretrustee.com:443
2023-12-14T11:21:04+01:00 DEBG client/internal/login.go:72: peer registration required
2023-12-14T11:21:04+01:00 DEBG client/internal/pkce_auth.go:55: connecting to Management Service https://api.wiretrustee.com:443
2023-12-14T11:21:04+01:00 DEBG client/internal/pkce_auth.go:61: connected to the Management service https://api.wiretrustee.com:443
Please do the SSO login in your browser.
If your browser didn't open automatically, use this URL to log in:

https://login.netbird.io/authorize?audience=https%3A%2F%2Fapp.wiretrustee.com%2F&client_id=x3KvnKHEDY2j3b0n0wLq4eu8SiPDKq6o&code_challenge=jwfRSIiFj6LTWyKagVlnvN8R3cauYcFU1Wc3IVhjxhg&code_challenge_method=S256&redirect_uri=http%3A%2F%2Flocalhost%3A53000%2F&response_type=code&scope=openid+profile+email+offline_access+api+email_verified&state=508488a72510b6c5dc27b3a745527abc9338b3c50f93d334

2023-12-14T11:21:08+01:00 DEBG client/internal/login.go:93: connecting to the Management service https://api.wiretrustee.com:443
2023-12-14T11:21:08+01:00 DEBG client/internal/login.go:63: connected to the Management service https://api.wiretrustee.com:443
2023-12-14T11:21:09+01:00 DEBG client/internal/login.go:72: peer registration required
2023-12-14T11:21:09+01:00 DEBG client/internal/login.go:122: sending peer registration request to Management Service
2023-12-14T11:21:09+01:00 ERRO client/internal/login.go:126: failed registering peer rpc error: code = PermissionDenied desc = can't login,00000000-0000-0000-0000-000000000000
2023-12-14T11:21:09+01:00 INFO client/internal/connect.go:47: starting NetBird client version 0.24.4
2023-12-14T11:21:09+01:00 DEBG client/internal/connect.go:102: connecting to the Management service api.wiretrustee.com:443
2023-12-14T11:21:09+01:00 DEBG client/internal/connect.go:110: connected to the Management service api.wiretrustee.com:443
2023-12-14T11:21:09+01:00 DEBG client/internal/connect.go:121: rpc error: code = PermissionDenied desc = peer login has expired, please log in once more
2023-12-14T11:21:09+01:00 DEBG client/internal/connect.go:208: exiting client retry loop due to unrecoverable error: rpc error: code = PermissionDenied desc = peer login has expired, please log in once more
Error: rpc error: code = PermissionDenied desc = peer login has expired, please log in once more


NetBird status -d output:


Daemon status: NeedsLogin

Run UP command to log in with SSO (interactive login):

netbird up

If you are running a self-hosted version and no SSO provider has been configured in your Management Server,
you can use a setup-key:

netbird up --management-url <YOUR_MANAGEMENT_URL> --setup-key <YOUR_SETUP_KEY>

More info: https://docs.netbird.io/how-to/register-machines-using-setup-keys


thank you

Originally created by @omarbenzekri on GitHub (Dec 14, 2023). Original GitHub issue: https://github.com/netbirdio/netbird/issues/1388 Hi I have an issue when click on connect from app client, after logging to my email it shows to message to authorize (only the first time) then it shows login successful,but nothing happens in the app. running Windows 11 X64. What i have tried : Add an inbound rule for netbird program(allow all). I have tried using the command line "netbird up" and this is the output : ******** C:\Windows\System32>netbird up -F --log-level debug 2023-12-14T11:21:03+01:00 DEBG client/internal/login.go:93: connecting to the Management service https://api.wiretrustee.com:443 2023-12-14T11:21:03+01:00 DEBG client/internal/login.go:63: connected to the Management service https://api.wiretrustee.com:443 2023-12-14T11:21:04+01:00 DEBG client/internal/login.go:72: peer registration required 2023-12-14T11:21:04+01:00 DEBG client/internal/pkce_auth.go:55: connecting to Management Service https://api.wiretrustee.com:443 2023-12-14T11:21:04+01:00 DEBG client/internal/pkce_auth.go:61: connected to the Management service https://api.wiretrustee.com:443 Please do the SSO login in your browser. If your browser didn't open automatically, use this URL to log in: https://login.netbird.io/authorize?audience=https%3A%2F%2Fapp.wiretrustee.com%2F&client_id=x3KvnKHEDY2j3b0n0wLq4eu8SiPDKq6o&code_challenge=jwfRSIiFj6LTWyKagVlnvN8R3cauYcFU1Wc3IVhjxhg&code_challenge_method=S256&redirect_uri=http%3A%2F%2Flocalhost%3A53000%2F&response_type=code&scope=openid+profile+email+offline_access+api+email_verified&state=508488a72510b6c5dc27b3a745527abc9338b3c50f93d334 2023-12-14T11:21:08+01:00 DEBG client/internal/login.go:93: connecting to the Management service https://api.wiretrustee.com:443 2023-12-14T11:21:08+01:00 DEBG client/internal/login.go:63: connected to the Management service https://api.wiretrustee.com:443 2023-12-14T11:21:09+01:00 DEBG client/internal/login.go:72: peer registration required 2023-12-14T11:21:09+01:00 DEBG client/internal/login.go:122: sending peer registration request to Management Service 2023-12-14T11:21:09+01:00 ERRO client/internal/login.go:126: failed registering peer rpc error: code = PermissionDenied desc = can't login,00000000-0000-0000-0000-000000000000 2023-12-14T11:21:09+01:00 INFO client/internal/connect.go:47: starting NetBird client version 0.24.4 2023-12-14T11:21:09+01:00 DEBG client/internal/connect.go:102: connecting to the Management service api.wiretrustee.com:443 2023-12-14T11:21:09+01:00 DEBG client/internal/connect.go:110: connected to the Management service api.wiretrustee.com:443 2023-12-14T11:21:09+01:00 DEBG client/internal/connect.go:121: rpc error: code = PermissionDenied desc = peer login has expired, please log in once more 2023-12-14T11:21:09+01:00 DEBG client/internal/connect.go:208: exiting client retry loop due to unrecoverable error: rpc error: code = PermissionDenied desc = peer login has expired, please log in once more Error: rpc error: code = PermissionDenied desc = peer login has expired, please log in once more ******** **NetBird status -d output:** *********** Daemon status: NeedsLogin Run UP command to log in with SSO (interactive login): netbird up If you are running a self-hosted version and no SSO provider has been configured in your Management Server, you can use a setup-key: netbird up --management-url <YOUR_MANAGEMENT_URL> --setup-key <YOUR_SETUP_KEY> More info: https://docs.netbird.io/how-to/register-machines-using-setup-keys ***************** thank you
saavagebueno added the client label 2026-08-05 00:45:43 -04:00
Author
Owner

@mlsmaycon commented on GitHub (Dec 14, 2023):

Hello @omarbenzekri can you restart the agent with the following command and try again via regular powershell session:

Admin session powershell

netbird service restart

Regular session powershell

netbird up
<!-- gh-comment-id:1855658907 --> @mlsmaycon commented on GitHub (Dec 14, 2023): Hello @omarbenzekri can you restart the agent with the following command and try again via regular powershell session: **Admin session powershell** ``` netbird service restart ``` **Regular session powershell** ``` netbird up ```
Author
Owner

@omarbenzekri commented on GitHub (Dec 16, 2023):

it didn't work.
on powershell after "netbird up" no error returned but on APP still not connecting.
and on web site still i can't see my machine in the list of peers.
what port is listening to?

<!-- gh-comment-id:1858752717 --> @omarbenzekri commented on GitHub (Dec 16, 2023): it didn't work. on powershell after "netbird up" no error returned but on APP still not connecting. and on web site still i can't see my machine in the list of peers. what port is listening to?
Author
Owner

@Albert321123321 commented on GitHub (Jan 23, 2024):

Hi @omarbenzekri
I faced the same problem. I deleted the peer with login error and login again. That works for me.

<!-- gh-comment-id:1905613628 --> @Albert321123321 commented on GitHub (Jan 23, 2024): Hi @omarbenzekri I faced the same problem. I deleted the peer with login error and login again. That works for me.
Author
Owner

@VMax4 commented on GitHub (Mar 25, 2024):

Hi, i had a similar issue, login was expired and i don't know why, but Netbird icons in Desktop and system tray were deleted so to re-login i had to do it from terminal with "netbird down - netbird up", this worked but i'm without icons yet... Does anyone knows what could has been happened?

<!-- gh-comment-id:2018499060 --> @VMax4 commented on GitHub (Mar 25, 2024): Hi, i had a similar issue, login was expired and i don't know why, but Netbird icons in Desktop and system tray were deleted so to re-login i had to do it from terminal with "netbird down - netbird up", this worked but i'm without icons yet... Does anyone knows what could has been happened?
Author
Owner

@VMax4 commented on GitHub (Apr 3, 2024):

I answer to myself, it happened that netbird ui at login expiration had been uninstalled (but why???) so i had to reinstall netbird from scratch, all this in Windows 11

<!-- gh-comment-id:2035171614 --> @VMax4 commented on GitHub (Apr 3, 2024): I answer to myself, it happened that netbird ui at login expiration had been uninstalled (but why???) so i had to reinstall netbird from scratch, all this in Windows 11
Author
Owner

@mrbluecoat commented on GitHub (Apr 23, 2024):

I have a similar connection problem. I created a reusable Setup Key for unlimited clients and a 365 day expiration, then used it to connect an OpenWrt server just fine. I then tried to connect a Ubuntu x86_64 desktop machine and got this error:

$ curl -fsSL https://pkgs.netbird.io/install.sh | sh
Installation has been finished.
$ netbird login --setup-key C566D8D5-CBC9-4339-86BB-REDACTED
error: login failed: rpc error: code = PermissionDenied desc = peer login has expired, please log in once more

I tried with sudo and got the same error. I did netbird up and used the provided URL and the web page said it worked:

image

However, in my Netbird dashboard it doesn't show up and the terminal says Error: waiting sso login failed with: rpc error: code = PermissionDenied desc = can't login

$ netbird status
Daemon status: NeedsLogin
$ cat /etc/os-release 
PRETTY_NAME="Ubuntu 22.04.4 LTS"

Update: upgrading to Ubuntu 24.04 fixed it for me.

<!-- gh-comment-id:2073212672 --> @mrbluecoat commented on GitHub (Apr 23, 2024): I have a similar connection problem. I created a reusable Setup Key for unlimited clients and a 365 day expiration, then used it to connect an OpenWrt server just fine. I then tried to connect a Ubuntu x86_64 desktop machine and got this error: ``` $ curl -fsSL https://pkgs.netbird.io/install.sh | sh Installation has been finished. $ netbird login --setup-key C566D8D5-CBC9-4339-86BB-REDACTED error: login failed: rpc error: code = PermissionDenied desc = peer login has expired, please log in once more ``` I tried with sudo and got the same error. I did `netbird up` and used the provided URL and the web page said it worked: ![image](https://github.com/netbirdio/netbird/assets/382164/7fd01a08-017d-4a76-8c8d-f1b17f42b6a4) However, in my Netbird dashboard it doesn't show up and the terminal says `Error: waiting sso login failed with: rpc error: code = PermissionDenied desc = can't login` ``` $ netbird status Daemon status: NeedsLogin ``` ``` $ cat /etc/os-release PRETTY_NAME="Ubuntu 22.04.4 LTS" ``` **Update**: upgrading to Ubuntu 24.04 fixed it for me.
Author
Owner

@kukat commented on GitHub (Aug 4, 2024):

+1 for macos

❯ netbird up -k *****
Error: login failed: rpc error: code = PermissionDenied desc = peer login has expired, please log in once more
❯ netbird version
0.28.7
<!-- gh-comment-id:2268058593 --> @kukat commented on GitHub (Aug 4, 2024): +1 for macos ``` ❯ netbird up -k ***** Error: login failed: rpc error: code = PermissionDenied desc = peer login has expired, please log in once more ❯ netbird version 0.28.7 ```
Author
Owner

@mlsmaycon commented on GitHub (Aug 5, 2024):

@kukat it seems like you've previously authenticated using user credentials. you need to either remove the peer and add it again with a setup-key or reauthenticate with the same user from before.

<!-- gh-comment-id:2268539771 --> @mlsmaycon commented on GitHub (Aug 5, 2024): @kukat it seems like you've previously authenticated using user credentials. you need to either remove the peer and add it again with a setup-key or reauthenticate with the same user from before.
Author
Owner

@mlsmaycon commented on GitHub (Aug 5, 2024):

@mrbluecoat, the issue happened because you attempted to log in using a different user from when the peer was registered.

<!-- gh-comment-id:2268541883 --> @mlsmaycon commented on GitHub (Aug 5, 2024): @mrbluecoat, the issue happened because you attempted to log in using a different user from when the peer was registered.
Author
Owner

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

is the issue still happening on the latest NetBird version or can we close this?

There is a troubleshooting entry about login issues & resetting the client machine at https://docs.netbird.io/how-to/troubleshooting-client#client-login-failures / b64c52e5bd/src/pages/how-to/troubleshooting-client.mdx (L268-L293)

<!-- gh-comment-id:2825133426 --> @nazarewk commented on GitHub (Apr 23, 2025): is the issue still happening on the latest NetBird version or can we close this? There is a troubleshooting entry about login issues & resetting the client machine at https://docs.netbird.io/how-to/troubleshooting-client#client-login-failures / https://github.com/netbirdio/docs/blob/b64c52e5bd2d012ca8b8aaeb089dfe5f1c59ce17/src/pages/how-to/troubleshooting-client.mdx#L268-L293
Author
Owner

@marshallwalker commented on GitHub (Nov 23, 2025):

This is still an issue on v0.60.2

<!-- gh-comment-id:3568291675 --> @marshallwalker commented on GitHub (Nov 23, 2025): This is still an issue on v0.60.2
Author
Owner

@PizzaLovingNerd commented on GitHub (May 28, 2026):

We are closing this, as this issue is for a much older version of NetBird with no new information, and one user reported a fix just by upgrading to Ubuntu 24.04. If there is a new bug, please open a new report with new logs. Thanks!

<!-- gh-comment-id:4569350244 --> @PizzaLovingNerd commented on GitHub (May 28, 2026): We are closing this, as this issue is for a much older version of NetBird with no new information, and one user reported a fix just by upgrading to Ubuntu 24.04. If there is a new bug, please open a new report with new logs. Thanks!
Sign in to join this conversation.
No Label client
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DYNR/netbird#2174