netbirdio / netbird

Connect your devices into a single secure private WireGuard®-based mesh network with SSO/MFA and simple access controls.
https://netbird.io
BSD 3-Clause "New" or "Revised" License
9.78k stars 424 forks source link

error: failed while getting Management Service public key #2043

Open LuizFelipeAlvesMaia opened 1 month ago

LuizFelipeAlvesMaia commented 1 month ago

Describe the problem

The error message you are encountering, "rpc error: code = Unknown desc = getting device authorization flow info failed with error: failed while getting Management Service public key," indicates that the Netbird agent is unable to retrieve the public key from the Management Service. This public key is essential for establishing a secure communication channel between the agent and the management service. The failure could be due to several reasons, such as network connectivity issues, misconfiguration of the management service, or problems with the service's key management or distribution.

To Reproduce

Steps to reproduce the behavior:

Follow all the steps in the Self-Hosted guide, using Google Workspace IDP. Attempt to connect a Windows agent to https://netbird.mydomain.com:443.

Expected behavior:

The agent should successfully connect to the Netbird self-hosted instance, retrieving the Management Service public key and completing the authorization process without errors.

Are you using NetBird Cloud?

No, I am self-hosting NetBird's control plane.

NetBird version: 0.27.9

If applicable, add screenshots to help explain your problem.

image

LuizFelipeAlvesMaia commented 1 month ago

UPDATE: Now I have an error when trying to connect my Netbird agent. My management container has the following log: management-1 | 2024-05-24T21:17:55Z WARN management/server/grpcserver.go:371: failed logging in peer

Amplificator commented 3 weeks ago

I have the same error as you initially did - how did you fix it?