-
Notifications
You must be signed in to change notification settings - Fork 426
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to connect to overlay network after hibernation or changing the docking status on macos #2196
Comments
@christian-schlichtherle can you upgrade to 0.28.3 and enable the network monitor with:
|
This is related to #2130 |
After upgrading to 0.28.3, a first test seems to be successful: After wakeup from hibernation for some minutes, the Netbird client reconnects to the other peers one by one: $ netbird status
OS: darwin/arm64
Daemon version: 0.28.3
CLI version: 0.28.3
Management: Connected
Signal: Connected
Relays: 2/2 Available
Nameservers: 0/0 Available
FQDN: (not shown)
NetBird IP: 100.90.208.249/16
Interface type: Userspace
Quantum resistance: false
Routes: -
Peers count: 10/10 Connected I still have to test the docking/undocking scenario, so please don't close this ticket yet. |
Yeah it is because of multiple interfaces, I am going to get a PR ready, hopefully Netbird team can fix it and make it pretty for their standards |
@christian-schlichtherle feel free to test out the branch if you know how |
@hurricanehrndz thanks for the PR, we will have a look and give you feedback ASAP. @christian-schlichtherle If you want to test the PR change, you can download the files from here: https://github.com/netbirdio/netbird/actions/runs/9667635878/artifacts/1637361966 And replace the netbird bin in your system, probably sudo netbird service stop
sudo cp extracted/bin/path/netbird /Applications/NetBird.app/Contents/MacOS/netbird
sudo chmod +x /Applications/NetBird.app/Contents/MacOS/netbird
sudo netbird service start |
Following up my testing, after docking my notebook with 0.28.3 installed I run into the same problem again: $ netbird status
Error: status failed: create wg interface: resource busy Next, I will try the supplied patch. PS: Same result when waking up from hibernation while being docked => The root cause is related to multiple NICs. |
I've installed the new client: $ netbird status
OS: darwin/arm64
Daemon version: 0.28.3-SNAPSHOT-2c869542
CLI version: 0.28.3-SNAPSHOT-2c869542
Management: Connected
Signal: Connected
Relays: 2/2 Available
Nameservers: 0/0 Available
FQDN: (not shown)
NetBird IP: 100.90.208.249/16
Interface type: Userspace
Quantum resistance: false
Routes: -
Peers count: 10/10 Connected BTW: Following semantic versioning, the version tag should be |
I've completed the test series now: With the new snapshot version, I can dock/undock/hibernate my notebook in any fashion and it reconnects seamlessly - great! I noticed something interesting however: When doing As I understand this I can suppress it: netbird down
netbird up --network-monitor=false I will give that a try. |
Network monitor is beneficial when you go from dock to wifi, because the primary route would change. You can test the negative behaviour by sshing to a device on the wireguard interface. |
Describe the problem
After waking up my MacBook Pro from hibernation, Netbird fails to connect to the overlay network again:
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: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:
The text was updated successfully, but these errors were encountered: