Description
Describe the problem
After waking up my MacBook Pro from hibernation, Netbird fails to connect to the overlay network again:
$ sudo netbird status
Error: status failed: create wg interface: resource busy
$ sudo ifconfig utun100
utun100: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1280
inet 100.90.208.249 --> 100.90.208.249 netmask 0xff000000
inet6 fe80::f22f:4bff:fe13:efad%utun100 prefixlen 64 scopeid 0x20
inet6 fe80::%utun100 prefixlen 64 scopeid 0x20
nd6 options=201<PERFORMNUD,DAD>
$ sudo netbird up
Connected
$ sudo netbird status
Error: status failed: create wg interface: resource busy
$ sudo ifconfig utun100
utun100: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1280
inet 100.90.208.249 --> 100.90.208.249 netmask 0xff000000
inet6 fe80::f22f:4bff:fe13:efad%utun100 prefixlen 64 scopeid 0x20
inet6 fe80::%utun100 prefixlen 64 scopeid 0x20
nd6 options=201<PERFORMNUD,DAD>
I have Netbird UI 0.28.2 installed. My machine has multiple network interfaces: When undocked, it's only connected to my WiFi. When being docked, it's also connected via a Thunderbolt Ethernet adapter with 10Gbps, so when docking/undocking my notebook the OS is actually roaming. This may or may not be related to the problem.
I can do netbird down
, netbird up
, but it doesn't reconnect again. Wireguard stays unconnected:
$ sudo wg show
interface: utun100
public key: (not shown)
private key: (hidden)
listening port: 51820
The only way to reconnect is to reboot the OS, which is very annoying. Is there another workaround at least?
Expected behavior
Netbird should automatically reconnect to the overlay network after waking up the machine from hibernation or undocking/docking it.
Are you using NetBird Cloud?
Yes.
NetBird version
0.28.2
NetBird status -d output:
$ sudo netbird status -d
Error: status failed: create wg interface: resource busy