Failed to connect to NetBird seervice #1984

Closed
opened 2025-11-20 06:10:41 -05:00 by saavagebueno · 2 comments
Owner

Originally created by @MichalisDBA on GitHub (Jun 19, 2025).

Hello.

We have setup self-hosted NetBird with Keykloak. Everything was working fine with Keycloak until now.

With the latest version of NetBird client when we click connect and go to authentication page, we authenticate just fine and we redirect to the NetBird Login successful page. But, after that there is an error from the client Failed to connect to NetBird service

It happens on Windows machine. If the client is setup with setup keys, it is working. We haven't touch or change anything on Keycloak for long time now and as i said, NetBird was working fine until recent versions.

Why is that happening?

2025-06-19T09:13:34+03:00 ERRO management/client/grpc.go:349: failed to login to Management Service: rpc error: code = PermissionDenied desc = no peer auth method provided, please use a setup key or interactive SSO login
2025-06-19T09:13:34+03:00 WARN client/server/server.go:268: failed login: rpc error: code = InvalidArgument desc = invalid setup-key or no sso information provided, err: invalid UUID length: 0
2025-06-19T09:13:34+03:00 WARN client/server/server.go:476: canceling previous waiting execution
2025-06-19T09:13:39+03:00 ERRO management/client/grpc.go:349: failed to login to Management Service: rpc error: code = PermissionDenied desc = no peer auth method provided, please use a setup key or interactive SSO login
2025-06-19T09:13:39+03:00 ERRO management/client/grpc.go:349: failed to login to Management Service: rpc error: code = InvalidArgument desc = invalid jwt token, err: token could not be parsed: Token used before issued
2025-06-19T09:13:39+03:00 ERRO client/internal/login.go:151: failed registering peer rpc error: code = InvalidArgument desc = invalid jwt token, err: token could not be parsed: Token used before issued,00000000-0000-0000-0000-000000000000
2025-06-19T09:13:39+03:00 WARN client/server/server.go:268: failed login: rpc error: code = InvalidArgument desc = invalid jwt token, err: token could not be parsed: Token used before issued
Originally created by @MichalisDBA on GitHub (Jun 19, 2025). Hello. We have setup self-hosted NetBird with Keykloak. Everything was working fine with Keycloak until now. With the latest version of NetBird client when we click connect and go to authentication page, we authenticate just fine and we redirect to the NetBird Login successful page. But, after that there is an error from the client `Failed to connect to NetBird service` It happens on Windows machine. If the client is setup with setup keys, it is working. We haven't touch or change anything on Keycloak for long time now and as i said, NetBird was working fine until recent versions. Why is that happening? ``` 2025-06-19T09:13:34+03:00 ERRO management/client/grpc.go:349: failed to login to Management Service: rpc error: code = PermissionDenied desc = no peer auth method provided, please use a setup key or interactive SSO login 2025-06-19T09:13:34+03:00 WARN client/server/server.go:268: failed login: rpc error: code = InvalidArgument desc = invalid setup-key or no sso information provided, err: invalid UUID length: 0 2025-06-19T09:13:34+03:00 WARN client/server/server.go:476: canceling previous waiting execution 2025-06-19T09:13:39+03:00 ERRO management/client/grpc.go:349: failed to login to Management Service: rpc error: code = PermissionDenied desc = no peer auth method provided, please use a setup key or interactive SSO login 2025-06-19T09:13:39+03:00 ERRO management/client/grpc.go:349: failed to login to Management Service: rpc error: code = InvalidArgument desc = invalid jwt token, err: token could not be parsed: Token used before issued 2025-06-19T09:13:39+03:00 ERRO client/internal/login.go:151: failed registering peer rpc error: code = InvalidArgument desc = invalid jwt token, err: token could not be parsed: Token used before issued,00000000-0000-0000-0000-000000000000 2025-06-19T09:13:39+03:00 WARN client/server/server.go:268: failed login: rpc error: code = InvalidArgument desc = invalid jwt token, err: token could not be parsed: Token used before issued ```
saavagebueno added the triage-needed label 2025-11-20 06:10:41 -05:00
Author
Owner

@MichalisDBA commented on GitHub (Jun 19, 2025):

Tried also on a Linux Mint clean VM to install the new client and authenticate. Same thing happens

@MichalisDBA commented on GitHub (Jun 19, 2025): Tried also on a Linux Mint clean VM to install the new client and authenticate. Same thing happens
Author
Owner

@MichalisDBA commented on GitHub (Jun 19, 2025):

Found it. The server and the client had 2 seconds difference. Resolved.

@MichalisDBA commented on GitHub (Jun 19, 2025): Found it. The server and the client had 2 seconds difference. Resolved.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/netbird#1984