netbird self hosted with keycloak. Client able to connect, but client are not able to come online #1465

Closed
opened 2025-11-20 05:31:04 -05:00 by saavagebueno · 7 comments
Owner

Originally created by @rahul-jangra on GitHub (Dec 1, 2024).

Describe the problem

I have self hosted netbird instance with keycloak IDP.
I am able to access dashboard.
I install android client app, and try to to connect host. I get redirected to keycloak login page, I enter the user credentials, I get a login succesfull message
I go back to previous page, it still shows connecting.
I check dashboard, new client is added, but its not online.
I check management logs, I get following error msg:

management-1  | 2024-12-01T08:33:02Z WARN [context: GRPC, requestID: f285a960-373e-49e5-adc7-20ee92005945, accountID: UNKNOWN, peerID: 9bRKd5PKG5YuHXW8dpK9RVLLvJGy56CxH9CdMuBqzBE=] management/server/grpcserver.go:466: failed logging in peer 9bRKd5PKG5YuHXW8dpK9RVLLvJGy56CxH9CdMuBqzBE=: no peer auth method provided, please use a setup key or interactive SSO login
management-1  | 2024-12-01T08:33:04Z WARN [context: GRPC, requestID: 27b8344f-e739-4991-9183-1df2076650e9, accountID: UNKNOWN, peerID: 9bRKd5PKG5YuHXW8dpK9RVLLvJGy56CxH9CdMuBqzBE=] management/server/grpcserver.go:466: failed logging in peer 9bRKd5PKG5YuHXW8dpK9RVLLvJGy56CxH9CdMuBqzBE=: no peer auth method provided, please use a setup key or interactive SSO login
management-1  | 2024-12-01T08:33:05Z INFO management/server/peer.go:737: Peer needs login
management-1  | 2024-12-01T08:33:18Z INFO management/server/peer.go:737: Peer needs login
management-1  | 2024-12-01T08:33:31Z INFO management/server/peer.go:737: Peer needs login
management-1  | 2024-12-01T08:33:46Z INFO management/server/peer.go:737: Peer needs login
management-1  | 2024-12-01T08:33:59Z INFO management/server/peer.go:737: Peer needs login
management-1  | 2024-12-01T08:34:10Z INFO management/server/peer.go:737: Peer needs login

Are you using NetBird Cloud?
No, this is a self hosted instance.

NetBird version

latest as of today

CONTAINER                REPOSITORY             TAG                 IMAGE ID            SIZE
artifacts-coturn-1       coturn/coturn          latest              0d2918daccb2        169MB
artifacts-dashboard-1    netbirdio/dashboard    latest              3f69a0adf9cd        121MB
artifacts-management-1   netbirdio/management   latest              27929d72790e        185MB
artifacts-relay-1        netbirdio/relay        latest              9a5e48d4e593        51.4MB
artifacts-signal-1       netbirdio/signal       latest              7946e65988f4        47.6MB

Screenshots

able to access dashbord, client added but it never comes online :-
Screenshot 2024-12-01 at 2 16 27 PM

mobile client login successfull image :-
image

error screenshot :-
Screenshot 2024-12-01 at 2 04 54 PM

Originally created by @rahul-jangra on GitHub (Dec 1, 2024). **Describe the problem** I have self hosted netbird instance with keycloak IDP. I am able to access dashboard. I install android client app, and try to to connect host. I get redirected to keycloak login page, I enter the user credentials, I get a login succesfull message I go back to previous page, it still shows connecting. I check dashboard, new client is added, but its not online. I check management logs, I get following error msg: ``` management-1 | 2024-12-01T08:33:02Z WARN [context: GRPC, requestID: f285a960-373e-49e5-adc7-20ee92005945, accountID: UNKNOWN, peerID: 9bRKd5PKG5YuHXW8dpK9RVLLvJGy56CxH9CdMuBqzBE=] management/server/grpcserver.go:466: failed logging in peer 9bRKd5PKG5YuHXW8dpK9RVLLvJGy56CxH9CdMuBqzBE=: no peer auth method provided, please use a setup key or interactive SSO login management-1 | 2024-12-01T08:33:04Z WARN [context: GRPC, requestID: 27b8344f-e739-4991-9183-1df2076650e9, accountID: UNKNOWN, peerID: 9bRKd5PKG5YuHXW8dpK9RVLLvJGy56CxH9CdMuBqzBE=] management/server/grpcserver.go:466: failed logging in peer 9bRKd5PKG5YuHXW8dpK9RVLLvJGy56CxH9CdMuBqzBE=: no peer auth method provided, please use a setup key or interactive SSO login management-1 | 2024-12-01T08:33:05Z INFO management/server/peer.go:737: Peer needs login management-1 | 2024-12-01T08:33:18Z INFO management/server/peer.go:737: Peer needs login management-1 | 2024-12-01T08:33:31Z INFO management/server/peer.go:737: Peer needs login management-1 | 2024-12-01T08:33:46Z INFO management/server/peer.go:737: Peer needs login management-1 | 2024-12-01T08:33:59Z INFO management/server/peer.go:737: Peer needs login management-1 | 2024-12-01T08:34:10Z INFO management/server/peer.go:737: Peer needs login ``` **Are you using NetBird Cloud?** No, this is a self hosted instance. **NetBird version** `latest as of today` ``` CONTAINER REPOSITORY TAG IMAGE ID SIZE artifacts-coturn-1 coturn/coturn latest 0d2918daccb2 169MB artifacts-dashboard-1 netbirdio/dashboard latest 3f69a0adf9cd 121MB artifacts-management-1 netbirdio/management latest 27929d72790e 185MB artifacts-relay-1 netbirdio/relay latest 9a5e48d4e593 51.4MB artifacts-signal-1 netbirdio/signal latest 7946e65988f4 47.6MB ``` **Screenshots** able to access dashbord, client added but it never comes online :- <img width="1438" alt="Screenshot 2024-12-01 at 2 16 27 PM" src="https://github.com/user-attachments/assets/a528f1d4-8560-4c08-9bf6-5e72b16e7978"> mobile client login successfull image :- ![image](https://github.com/user-attachments/assets/372c8710-94ab-4478-8685-2fba3bf51bb8) error screenshot :- <img width="1148" alt="Screenshot 2024-12-01 at 2 04 54 PM" src="https://github.com/user-attachments/assets/0a8bf910-eddd-4187-b11f-c79d7e64b051">
saavagebueno added the waiting-feedbackself-hosting labels 2025-11-20 05:31:04 -05:00
Author
Owner

@mgarces commented on GitHub (Dec 2, 2024):

can you please try to remove the peer completely from the dashboard and testing again?

@mgarces commented on GitHub (Dec 2, 2024): can you please try to remove the peer completely from the dashboard and testing again?
Author
Owner

@rahul-jangra commented on GitHub (Dec 4, 2024):

Hi @mgarces , thanks for the reply, yes I have checked removing and adding the client again multiple times.
I have tried reinstalling the app, restarting the netbird management service, restarting the dashboard as well.

@rahul-jangra commented on GitHub (Dec 4, 2024): Hi @mgarces , thanks for the reply, yes I have checked removing and adding the client again multiple times. I have tried reinstalling the app, restarting the netbird management service, restarting the dashboard as well.
Author
Owner

@vgit5989 commented on GitHub (Dec 7, 2024):

Hi, I am also facing the same issue with authentik as the authentication provider. The clients also seem to disconnect and reconnect every few minutes

@vgit5989 commented on GitHub (Dec 7, 2024): Hi, I am also facing the same issue with authentik as the authentication provider. The clients also seem to disconnect and reconnect every few minutes
Author
Owner

@rswafford1980 commented on GitHub (Dec 13, 2024):

same here, using zitadel as my provider.

@rswafford1980 commented on GitHub (Dec 13, 2024): same here, using zitadel as my provider.
Author
Owner

@epicteammate commented on GitHub (Dec 30, 2024):

Hi, I am also facing the same issue with authentik as the authentication provider. The clients also seem to disconnect and reconnect every few minutes

Second this. Here are the management logs from when I tried to add one of my Linux servers to Netbird

WARN [accountID: UNKNOWN, peerID: xELfsPgy5fehiPc9wJyy34HMpSzwlf7gU/iv8pIdazs=, context: GRPC, requestID: 97026caf-9280-497f-ae40-9bf7537af264] management/server/grpcserver.go:471: failed logging in peer xELfsPgy5fehiPc9wJyy34HMpSzwlf7gU/iv8pIdazs=: no peer auth method provided, please use a setup key or interactive SSO login
WARN [peerID: xELfsPgy5fehiPc9wJyy34HMpSzwlf7gU/iv8pIdazs=, context: GRPC, requestID: 23b96b14-eb93-44bb-8bca-51752d0ba92b, accountID: UNKNOWN] management/server/grpcserver.go:471: failed logging in peer xELfsPgy5fehiPc9wJyy34HMpSzwlf7gU/iv8pIdazs=: no peer auth method provided, please use a setup key or interactive SSO login

command used was
netbird up --management-url https://netbird.tld --setup-key *key*

@epicteammate commented on GitHub (Dec 30, 2024): > Hi, I am also facing the same issue with authentik as the authentication provider. The clients also seem to disconnect and reconnect every few minutes Second this. Here are the management logs from when I tried to add one of my Linux servers to Netbird `WARN [accountID: UNKNOWN, peerID: xELfsPgy5fehiPc9wJyy34HMpSzwlf7gU/iv8pIdazs=, context: GRPC, requestID: 97026caf-9280-497f-ae40-9bf7537af264] management/server/grpcserver.go:471: failed logging in peer xELfsPgy5fehiPc9wJyy34HMpSzwlf7gU/iv8pIdazs=: no peer auth method provided, please use a setup key or interactive SSO login` `WARN [peerID: xELfsPgy5fehiPc9wJyy34HMpSzwlf7gU/iv8pIdazs=, context: GRPC, requestID: 23b96b14-eb93-44bb-8bca-51752d0ba92b, accountID: UNKNOWN] management/server/grpcserver.go:471: failed logging in peer xELfsPgy5fehiPc9wJyy34HMpSzwlf7gU/iv8pIdazs=: no peer auth method provided, please use a setup key or interactive SSO login` command used was `netbird up --management-url https://netbird.tld --setup-key *key*`
Author
Owner

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

Hello @rahul-jangra,

We're currently reviewing our open issues and would like to verify if this problem still exists in the latest NetBird version.

Could you please confirm if the issue is still there?

We may close this issue temporarily if we don't hear back from you within 2 weeks, but feel free to reopen it with updated information.

Thanks for your contribution to improving the project!

@nazarewk commented on GitHub (Apr 28, 2025): Hello @rahul-jangra, We're currently reviewing our open issues and would like to verify if this problem still exists in the [latest NetBird version](https://github.com/netbirdio/netbird/releases). Could you please confirm if the issue is still there? We may close this issue temporarily if we don't hear back from you within **2 weeks**, but feel free to reopen it with updated information. Thanks for your contribution to improving the project!
Author
Owner

@mlsmaycon commented on GitHub (Jun 1, 2025):

closing issue due to no recent feedback. Feel free to open a new one if the issue persist or reopen if this was a feature request.

@mlsmaycon commented on GitHub (Jun 1, 2025): closing issue due to no recent feedback. Feel free to open a new one if the issue persist or reopen if this was a feature request.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/netbird#1465