Skip to content

Error connecting Windows users via SSO #3869

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

Open
artkrp31 opened this issue May 23, 2025 · 3 comments
Open

Error connecting Windows users via SSO #3869

artkrp31 opened this issue May 23, 2025 · 3 comments

Comments

@artkrp31
Copy link

There is a problem with connecting Windows users. Previously, the user could connect to NetBird, which is hosted on its own infrastructure. A few days later, this user tries to connect again and receives the error rpc error: code = PermissionDenied desc = invalid user

Steps to reproduce the behavior:

  1. Go to NetBird client
  2. Click on connect
  3. See error

Image

Successful connection to NetBird

self-host NetBird's control plane.

0.45.1

Is any other VPN software installed?

No

Debug output

2025-05-23T12:21:22+03:00 ERRO management/client/grpc.go:350: failed to login to Management Service: rpc error: code = PermissionDenied desc = peer login has expired, please log in once more
2025-05-23T12:21:22+03:00 ERRO management/client/grpc.go:350: failed to login to Management Service: rpc error: code = PermissionDenied desc = invalid user
2025-05-23T12:21:22+03:00 ERRO client/internal/login.go:145: failed registering peer rpc error: code = PermissionDenied desc = invalid user,00000000-0000-0000-0000-000000000000
2025-05-23T12:21:22+03:00 WARN client/server/server.go:283: failed login: rpc error: code = PermissionDenied desc = invalid user
2025-05-23T12:41:38+03:00 ERRO management/client/grpc.go:350: failed to login to Management Service: rpc error: code = PermissionDenied desc = peer login has expired, please log in once more
2025-05-23T12:41:38+03:00 WARN client/server/server.go:283: failed login: rpc error: code = InvalidArgument desc = invalid setup-key or no sso information provided, err: invalid UUID length: 0
2025-05-23T12:41:38+03:00 WARN client/server/server.go:469: canceling previous waiting execution
2025-05-23T12:42:08+03:00 ERRO management/client/grpc.go:350: failed to login to Management Service: rpc error: code = PermissionDenied desc = peer login has expired, please log in once more
2025-05-23T12:42:08+03:00 ERRO management/client/grpc.go:350: failed to login to Management Service: rpc error: code = PermissionDenied desc = invalid user
2025-05-23T12:42:08+03:00 ERRO client/internal/login.go:145: failed registering peer rpc error: code = PermissionDenied desc = invalid user,00000000-0000-0000-0000-000000000000
2025-05-23T12:42:08+03:00 WARN client/server/server.go:283: failed login: rpc error: code = PermissionDenied desc = invalid user
2025-05-23T12:44:31+03:00 INFO client/server/server.go:672: service is down
2025-05-23T12:44:31+03:00 INFO client/cmd/root.go:194: shutdown signal received
2025-05-23T12:44:33+03:00 INFO client/cmd/service_controller.go:94: stopped Netbird service

@lixmal
Copy link
Contributor

lixmal commented May 23, 2025

Have you taken a look at

This section in particular: https://docs.netbird.io/how-to/troubleshooting-client#client-login-failures

@artkrp31
Copy link
Author

@lixmal, Hello.
Yes, I've read it. It states that this error occurs if multiple users try to connect to NetBird from the same device, but the problem is that the user is alone. The connection is made via SSO Keycloak. This problem definitely does not arise due to the fact that users are different, there is always 1 user connected behind 1 device. The problem occurs unexpectedly.

@creatorofuniverses
Copy link

I encountered a similar issue. Keycloak as SSO, operating system was Fedora 42.

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

No branches or pull requests

3 participants