-
-
Notifications
You must be signed in to change notification settings - Fork 538
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. |
I am still facing this issue on 0.28.4
|
@fadyHemaya I can try and tweak the current code to see if we can get a build with better results |
Hi @fadyHemaya, we introduced a waiting mechanism into the netbird down command to wait until all the processes stopped and the wireguard interface is being removed. This change was released in version 0.28.5. Could you upgrade to a newer version and see if you are still facing this issue? |
I'm on netbird 0.28.7 on m1 mac and issue is still present.
|
+1 netbird 0.28.7 on m1 mac |
Same here with 28.8 🙏 |
Still facing the issue with v0.29.4 running on M3 Pro and Sonoma. The issue happens when I connect-disconnect a few times and only gets fixed whenever I restart my device. See logs:
|
@rsalunga29 can you verify that autoconnect and networkmonitor are both set to true in the config When the issue occurs can you also share the output of the following
|
+10 users with same error on versions 0.28.* 0.29.* |
It used to work just fine with v0.28.4, but somewhere between this and v0.29.4 it stopped working. Looks like a regression to me. |
Can we please get more information/logs, without the added information we really are guessing to what is going on. |
@christian-schlichtherle can you test this version https://github.com/netbirdio/netbird/actions/runs/11110902617?pr=2676 |
@hurricanehrndz maybe I can help with it? Could you pls describe scenario of test? |
In the link above you will see the artifacts for the main binary and the Ui replace the ones installed in the app bundle with the new ones, reboot |
I'm sorry I'm late to this conversation. We have upgraded to 0.30.0 today. Let me see if the problem surfaces again. |
Please do, as the PR was merged. |
So far it works, but it's only one day later. ;-) |
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: