getting device authorization flow info failed with error: failed while getting Management Service public key when connect to self-host server #1503

Open
opened 2025-11-20 05:31:50 -05:00 by saavagebueno · 3 comments
Owner

Originally created by @bestnite on GitHub (Dec 17, 2024).

Describe the problem

sudo netbird up --management-url xxx --admin-url xxx
2024-12-18T11:54:06+08:00 WARN client/cmd/root.go:245: retrying Login to the Management service in 690.220108ms due to error rpc error: code = Unknown desc = getting device authorization flow info failed with error: failed while getting Management Service public key
2024-12-18T11:54:09+08:00 WARN client/cmd/root.go:245: retrying Login to the Management service in 2.199479217s due to error rpc error: code = Unknown desc = getting device authorization flow info failed with error: failed while getting Management Service public key
2024-12-18T11:54:13+08:00 WARN client/cmd/root.go:245: retrying Login to the Management service in 1.967353557s due to error rpc error: code = Unknown desc = getting device authorization flow info failed with error: failed while getting Management Service public key
2024-12-18T11:54:17+08:00 WARN client/cmd/root.go:245: retrying Login to the Management service in 2.356804163s due to error rpc error: code = Unknown desc = getting device authorization flow info failed with error: failed while getting Management Service public key
2024-12-18T11:54:21+08:00 WARN client/cmd/root.go:245: retrying Login to the Management service in 5.196377811s due to error rpc error: code = Unknown desc = getting device authorization flow info failed with error: failed while getting Management Service public key
Error: login backoff cycle failed: rpc error: code = Unknown desc = getting device authorization flow info failed with error: failed while getting Management Service public key

Solution
If you encounter this problem, you might be connecting a netbird server behinding cloudflare CDN. Just turning on gRPC in cloudflare network tab, the problem might be solved.
writing down to help someone in need.

Originally created by @bestnite on GitHub (Dec 17, 2024). **Describe the problem** ``` sudo netbird up --management-url xxx --admin-url xxx 2024-12-18T11:54:06+08:00 WARN client/cmd/root.go:245: retrying Login to the Management service in 690.220108ms due to error rpc error: code = Unknown desc = getting device authorization flow info failed with error: failed while getting Management Service public key 2024-12-18T11:54:09+08:00 WARN client/cmd/root.go:245: retrying Login to the Management service in 2.199479217s due to error rpc error: code = Unknown desc = getting device authorization flow info failed with error: failed while getting Management Service public key 2024-12-18T11:54:13+08:00 WARN client/cmd/root.go:245: retrying Login to the Management service in 1.967353557s due to error rpc error: code = Unknown desc = getting device authorization flow info failed with error: failed while getting Management Service public key 2024-12-18T11:54:17+08:00 WARN client/cmd/root.go:245: retrying Login to the Management service in 2.356804163s due to error rpc error: code = Unknown desc = getting device authorization flow info failed with error: failed while getting Management Service public key 2024-12-18T11:54:21+08:00 WARN client/cmd/root.go:245: retrying Login to the Management service in 5.196377811s due to error rpc error: code = Unknown desc = getting device authorization flow info failed with error: failed while getting Management Service public key Error: login backoff cycle failed: rpc error: code = Unknown desc = getting device authorization flow info failed with error: failed while getting Management Service public key ``` **Solution** If you encounter this problem, you might be connecting a netbird server behinding cloudflare CDN. Just turning on gRPC in cloudflare network tab, the problem might be solved. writing down to help someone in need.
saavagebueno added the waiting-feedbacktriage-needed labels 2025-11-20 05:31:50 -05:00
Author
Owner

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

Hello @bestnite,

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 @bestnite, 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

@sergeytys commented on GitHub (May 7, 2025):

I had the same issue (as topic-starter); Im behind cloudflare, self-hosting;
turning gRPC there solved it for me too right away!

@sergeytys commented on GitHub (May 7, 2025): I had the same issue (as topic-starter); Im behind cloudflare, self-hosting; turning gRPC there solved it for me too right away!
Author
Owner

@qazer2687 commented on GitHub (Sep 27, 2025):

Enabling gRPC on cloudflare also fixed the issue for me! Thanks.

@qazer2687 commented on GitHub (Sep 27, 2025): Enabling gRPC on cloudflare also fixed the issue for me! Thanks.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/netbird#1503