[GH-ISSUE #2613] nebird does not work properly when the macbook is restarted #5410

Closed
opened 2026-08-05 01:03:04 -04:00 by saavagebueno · 8 comments
Owner

Originally created by @xcstatus on GitHub (Sep 17, 2024).
Original GitHub issue: https://github.com/netbirdio/netbird/issues/2613

Describe the problem

nebird does not work properly when the macbook is restarted。netbird service must be restarted with root privileges

Are you using NetBird Cloud?

self-host NetBird

NetBird version

0.29.2

Additional context

➜ ~ netbird status
Error: failed to connect to daemon error: context deadline exceeded
If the daemon is not running please run:
netbird service install
netbird service start

➜ ~ netbird service start
"launchctl" failed with stderr: Warning: Expecting a LaunchAgents path since the command was ran as user. Got LaunchDaemons instead.
launchctl bootstrap is a recommended alternative.

Error: "launchctl" failed with stderr: Warning: Expecting a LaunchAgents path since the command was ran as user. Got LaunchDaemons instead.
launchctl bootstrap is a recommended alternative.

➜ ~ sudo netbird service start
Password:
Netbird service has been started
➜ ~ netbird status
OS: darwin/arm64
Daemon version: 0.29.2
CLI version: 0.29.2
Management: Connected
Signal: Connected
Relays: 3/3 Available
Nameservers: 1/1 Available
FQDN: macbook-pro.netbird.selfhosted
NetBird IP: 100.75.44.80/16
Interface type: Userspace
Quantum resistance: true (permissive)
Routes: -
Peers count: 2/7 Connected

Originally created by @xcstatus on GitHub (Sep 17, 2024). Original GitHub issue: https://github.com/netbirdio/netbird/issues/2613 **Describe the problem** nebird does not work properly when the macbook is restarted。netbird service must be restarted with root privileges **Are you using NetBird Cloud?** self-host NetBird **NetBird version** 0.29.2 **Additional context** ➜ ~ netbird status Error: failed to connect to daemon error: context deadline exceeded If the daemon is not running please run: netbird service install netbird service start ➜ ~ netbird service start "launchctl" failed with stderr: Warning: Expecting a LaunchAgents path since the command was ran as user. Got LaunchDaemons instead. `launchctl bootstrap` is a recommended alternative. Error: "launchctl" failed with stderr: Warning: Expecting a LaunchAgents path since the command was ran as user. Got LaunchDaemons instead. `launchctl bootstrap` is a recommended alternative. ➜ ~ sudo netbird service start Password: Netbird service has been started ➜ ~ netbird status OS: darwin/arm64 Daemon version: 0.29.2 CLI version: 0.29.2 Management: Connected Signal: Connected Relays: 3/3 Available Nameservers: 1/1 Available FQDN: macbook-pro.netbird.selfhosted NetBird IP: 100.75.44.80/16 Interface type: Userspace Quantum resistance: true (permissive) Routes: - Peers count: 2/7 Connected
saavagebueno added the triage-needed label 2026-08-05 01:03:04 -04:00
Author
Owner

@mlsmaycon commented on GitHub (Sep 17, 2024):

@xcstatus, We just released v0.29.3. Can you test using this version?

Also, can you share all logs from /var/log/netbird?

<!-- gh-comment-id:2356208569 --> @mlsmaycon commented on GitHub (Sep 17, 2024): @xcstatus, We just released v0.29.3. Can you test using this version? Also, can you share all logs from /var/log/netbird?
Author
Owner

@xcstatus commented on GitHub (Sep 17, 2024):

client0917.log

<!-- gh-comment-id:2357334037 --> @xcstatus commented on GitHub (Sep 17, 2024): [client0917.log](https://github.com/user-attachments/files/17037331/client0917.log)
Author
Owner

@0xjoeblack commented on GitHub (Sep 18, 2024):

Seeing the same here. Reverted back to 28.8 and problem disappeared.
I was seeing this in the logs when it happened

2024-09-17T11:55:06+03:00 WARN iface/iface.go:135: failed to remove WireGuard interface utun100: 
  timeout when waiting for interface utun100 to be removed

2024-09-17T11:55:06+03:00 ERRO client/internal/engine.go:1130: 
  failed closing Netbird interface utun100 failed to remove WireGuard interface utun100: 
  failed to remove interface utun100: exit status 1 - ifconfig: SIOCIFDESTROY: Invalid argument

2024-09-17T11:55:06+03:00 ERRO client/internal/connect.go:275: 
  error while starting Netbird Connection Engine: 
  create wg interface: error creating tun device: resource busy
<!-- gh-comment-id:2358003345 --> @0xjoeblack commented on GitHub (Sep 18, 2024): Seeing the same here. Reverted back to 28.8 and problem disappeared. I was seeing this in the logs when it happened ``` 2024-09-17T11:55:06+03:00 WARN iface/iface.go:135: failed to remove WireGuard interface utun100: timeout when waiting for interface utun100 to be removed 2024-09-17T11:55:06+03:00 ERRO client/internal/engine.go:1130: failed closing Netbird interface utun100 failed to remove WireGuard interface utun100: failed to remove interface utun100: exit status 1 - ifconfig: SIOCIFDESTROY: Invalid argument 2024-09-17T11:55:06+03:00 ERRO client/internal/connect.go:275: error while starting Netbird Connection Engine: create wg interface: error creating tun device: resource busy ```
Author
Owner

@xcstatus commented on GitHub (Sep 18, 2024):

After uninstalling netbird, delete the related files and reinstall it. The problem did not come up again。

rm -rf /etc/netbird ;
rm -rf /var/log/netbrid;
rm -rf /var/log/netbird.*

<!-- gh-comment-id:2359920152 --> @xcstatus commented on GitHub (Sep 18, 2024): After uninstalling netbird, delete the related files and reinstall it. The problem did not come up again。 rm -rf /etc/netbird ; rm -rf /var/log/netbrid; rm -rf /var/log/netbird.*
Author
Owner

@0xjoeblack commented on GitHub (Sep 19, 2024):

That does not sound like a good solution.
Somebody should look into why is this happening and fix the underlying problem.
@xcstatus can you please re-open the issue?

<!-- gh-comment-id:2360308118 --> @0xjoeblack commented on GitHub (Sep 19, 2024): That does not sound like a good solution. Somebody should look into why is this happening and fix the underlying problem. @xcstatus can you please re-open the issue?
Author
Owner

@WortmannImpleco commented on GitHub (Sep 19, 2024):

For me the same problem is happening on nearly all MacBooks in our company. Even after reinstalls (with a clean uninstall before).

<!-- gh-comment-id:2360643857 --> @WortmannImpleco commented on GitHub (Sep 19, 2024): For me the same problem is happening on nearly all MacBooks in our company. Even after reinstalls (with a clean uninstall before).
Author
Owner

@mgarces commented on GitHub (Sep 19, 2024):

are you experiencing this with latest version 0.29.3 ?

<!-- gh-comment-id:2360659883 --> @mgarces commented on GitHub (Sep 19, 2024): are you experiencing this with latest version `0.29.3` ?
Author
Owner

@0xjoeblack commented on GitHub (Sep 20, 2024):

are you experiencing this with latest version 0.29.3 ?

0.29.3 fixed it for me.

<!-- gh-comment-id:2364161118 --> @0xjoeblack commented on GitHub (Sep 20, 2024): > are you experiencing this with latest version `0.29.3` ? 0.29.3 fixed it for me.
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#5410