[GH-ISSUE #2527] Deadlock in latest master build when starting service #5189

Open
opened 2026-08-05 01:01:52 -04:00 by saavagebueno · 0 comments
Owner

Originally created by @hurricanehrndz on GitHub (Sep 3, 2024).
Original GitHub issue: https://github.com/netbirdio/netbird/issues/2527

Describe the problem

Following PR created a deadlock
13e7198046

Specifically this line and so this never gets executed https://github.com/netbirdio/netbird/blob/main/client/cmd/service_controller.go#L62 because of of the deadlock

To Reproduce

Steps to reproduce the behavior:
Not sure because it happens at various times, and independent of the flag

Expected behavior
GRPC Socket to be responsive and status cmd to work

Are you using NetBird Cloud?
no

Please specify whether you use NetBird Cloud or self-host NetBird's control plane.

NetBird version

master

NetBird status -dA output:

NA

I did builds where I remove the wait, and sure enough netbird status would be functional again. On non working instances the log file was missing

started daemon server
Originally created by @hurricanehrndz on GitHub (Sep 3, 2024). Original GitHub issue: https://github.com/netbirdio/netbird/issues/2527 **Describe the problem** Following PR created a deadlock https://github.com/netbirdio/netbird/commit/13e7198046a0d73a9cd91bf8e063fafb3d41885c Specifically this [line](https://github.com/netbirdio/netbird/commit/13e7198046a0d73a9cd91bf8e063fafb3d41885c#diff-b9a524a16fa54801148c3bf6f07149721310a5d097f234e839466a751ca900d8R151) and so this never gets executed https://github.com/netbirdio/netbird/blob/main/client/cmd/service_controller.go#L62 because of of the deadlock **To Reproduce** Steps to reproduce the behavior: Not sure because it happens at various times, and independent of the flag **Expected behavior** GRPC Socket to be responsive and status cmd to work **Are you using NetBird Cloud?** no Please specify whether you use NetBird Cloud or self-host NetBird's control plane. **NetBird version** master **NetBird status -dA output:** NA I did builds where I remove the wait, and sure enough `netbird status` would be functional again. On non working instances the log file was missing ``` started daemon server ```
saavagebueno added the triage-needed label 2026-08-05 01:01:52 -04:00
Sign in to join this conversation.
No Label triage-needed
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DYNR/netbird#5189