Skip to content

Netbird not waking up after sleep #3880

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

Open
coffeediver opened this issue May 26, 2025 · 12 comments
Open

Netbird not waking up after sleep #3880

coffeediver opened this issue May 26, 2025 · 12 comments

Comments

@coffeediver
Copy link

After my computer goes to sleep for inactiviy or I close the lid (set to sleep), Netbird will not reach my remote server. Ping and tracert show nothing Microsoft Windows [Version 10.0.26100.4061]
(c) Microsoft Corporation. All rights reserved.

C:\Users\coffe>ping 192.168.4.116

Pinging 192.168.4.116 with 32 bytes of data:
Request timed out.
Request timed out.
Request timed out.
Request timed out.

Ping statistics for 192.168.4.116:
Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),

C:\Users\coffe>tracert 192.168.4.116

Tracing route to 192.168.4.116 over a maximum of 30 hops

1 * * * Request timed out.
2 * * * Request timed out.
3 * * * Request timed out.
4 * * * Request timed out.
5 * * * Request timed out.
6 ^C

I can ping the netbird assigned ip address. I have to disconnect netbird and reconnect for it to start working again. Also the Netbird peers dashboard will show everything connected.

@mlsmaycon
Copy link
Collaborator

@coffeediver, can you confirm if the issue is reproducible? Also, do you need to authenticate again when you reconnect?

@coffeediver
Copy link
Author

Yes, it happens whenever my laptop goes to sleep. I timed it at exactly 1 minute and had to disconnect and reconnect Netbird but do not have to authenticate. I also tried it for 10 seconds and the problem did not happen. I do not know exactly what the time limit is but is repeatable. The bird icon in my tray shows the connect check mark but will not connect or ping/tracert to my remote network but I can ping the ip address that Netbird assigns. On my peers dashboard it shows everything connected. At first I was just rebooting my laptop until I figured out that just right click on the Netbird icon in the system tray, disconnect and then reconnect works everytime.

@mlsmaycon
Copy link
Collaborator

@coffeediver I've attempted to reproduce the issue locally without success.

If possible, can you please run the following steps?

  1. enable debug logs by running the following command:
netbird debug log level trace
  1. make the laptop enter sleep mode, as you mentioned before
  2. wake the computer again
  3. confirm that it is unable to restore connectivity
  4. run the following commands:
    netbird down
    netbird up
    netbird debug bundle -AS -U
  5. disable debug logs by running the following command:
netbird debug log level info

This will generate a bundle for us to analyze your case. Please share the upload key here.

@coffeediver
Copy link
Author

@lfarkas
Copy link

lfarkas commented May 27, 2025

it's happened with usnetbird-0.45.1-1.x86_64

@gcsontos
Copy link

Same here. The difference is that I change my location from work to home or vice versa. Laptop is in sleep mode between.
I have netbird hosts at both locations with subnet routes configured.
Fedora 42 with netbird-0.45.1-1.x86_64
It was working fine before this version.

❯ netbird debug log level trace
Log level set successfully to trace
❯ ping 192.168.208.1
PING 192.168.208.1 (192.168.208.1) 56(84) bytes of data.
From 100.92.244.51 icmp_seq=1 Destination Host Unreachable
ping: sendmsg: Required key not available
From 100.92.244.51 icmp_seq=2 Destination Host Unreachable
ping: sendmsg: Required key not available
From 100.92.244.51 icmp_seq=3 Destination Host Unreachable
ping: sendmsg: Required key not available
^C
--- 192.168.208.1 ping statistics ---
3 packets transmitted, 0 received, +3 errors, 100% packet loss, time 2062ms
❯ netbird down
Disconnected
❯ netbird up
Connected
❯ ping 192.168.208.1
PING 192.168.208.1 (192.168.208.1) 56(84) bytes of data.
64 bytes from 192.168.208.1: icmp_seq=1 ttl=63 time=43.8 ms
64 bytes from 192.168.208.1: icmp_seq=2 ttl=63 time=44.7 ms
^C
--- 192.168.208.1 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 43.838/44.288/44.739/0.450 ms
❯ netbird debug bundle -AS -U
Local file:
/tmp/netbird.debug.3526160544.zip
Upload file key:
f79e391890ab27fb37c88b3b4be7011e22aa2e5ca6f38ffa9c4481884941f726/c70b5720-7d98-4cf6-9da4-10f51c1a8ccd

netbird.debug.3526160544.zip

@Nordlicht-13
Copy link

I had the same problem with my Windows 11 laptop, but i can't reproduce it every time. It happens just sometimes.

@tropnikovvl
Copy link

The same on macos

@patrick-brigel
Copy link

We also have this problem on all our clients

@Nordlicht-13
Copy link

This already happens, when the display gets black for a couple of minutes and you come back.
Then I have to disconnect netbird and connect again to access the smb-shares on my TrueNAS.

@WortmannImpleco
Copy link

We have the same Problem for at least some of our Windows Clients.
It started around 1 1/2 weeks ago according to the users. They said
"For about 1 1/2 weeks now, 1-2 times a day, if I have been inactive for a longer period of time or after a certain time, I have the problem that I get a “Page cannot be accessed” message with SYSTEM1 and SYSTEM2. When I reconnect, it works again immediately"

@WortmannImpleco
Copy link

Nearly every new Windows Client we add now has this issue.
Only started around 10 days ago.
The Client on the System sometimes shows that its still connected and I can also the a connection in the manager, but the client can not open any of the pages with configured routes. Every website thats not configured via a route works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

9 participants