Windows: tailscaled exits during Modern Standby (S0 Network Connected); SCM restart then times out
What is the issue? On Windows 11 with Modern Standby (S0 Low Power Idle, Network Connected), tailscaled terminates unexpectedly (SCM event 7031) only while the machine is in standby. All 5 exits on Nov 21 fall inside Kernel-Power 506/507 standby windows; none occur while the machine is awake. After the exit, the SCM restart frequently hangs and fails (7009 timeout after 60000 ms, then 7000), leaving the service stopped until it is started manually.
There is no Go panic in the logs and no Application Error event. The final log lines before an exit show the network disappearing, followed by a storm of captive portal detection: health: connectivity impacted; triggering captive portal detection (repeated ~15x in the same ms) [v2] DetectCaptivePortal: no interfaces up, returning false captiveportal.go:99: subscriber for health.Change is slow (12.1s elapsed) ipnlocal local.go:735: subscriber for health.Change is slow (33.0s elapsed) ipnlocal local.go:735: subscriber for health.Change is slow (1m8.07s elapsed) The log then goes silent, and the process exits about 25 minutes later.
Separately, before "Run unattended" was enabled, the log showed a tight start/stop loop ("error: Tailscale is stopped" / "authRoutine: exiting" / "Client.Shutdown done.", ~740 cycles). Enabling --unattended stopped that loop but not the standby exits.
Steps to reproduce
- Windows 11 laptop with Modern Standby (Network Connected), Tailscale 1.104.7, unattended mode on
- Let the machine sit in standby for several hours
- Check System log for Service Control Manager 7031 / 7009 / 7000 for Tailscale
Bug report IDs BUG-8e1c7251f90994060341f086be846d1f3adf098790aa4f16a3b7929ce8f50ee1-20261122000305Z-477fc51f8b9cc528 BUG-8e1c7251f90994060341f086be846d1f3adf098790aa4f16a3b7929ce8f50ee1-20261122210208Z-ee4d5e233b4b0c60
Version 1.104.7 (Windows 11, Asus Zenbook A16) Also seen on 1.104.1
Update after 3 more days (Nov 22–24) on 1.104.7, unattended mode on:
Still exiting about twice a day: 6 SCM 7031 events between Nov 22 4:56 PM and Nov 24 11:16 AM (EST). In 4 of the 6, the automatic SCM restart then hung: 7009 (60000 ms timeout) followed by 7000 ("failed to start ... The operation completed successfully").
Time from exit to the next tailscaled start (taken from the log file start times): Nov 22 4:56 PM exit -> back 4:57 PM (1 min) Nov 22 10:57 PM exit + hung restart -> back 3:12 AM (~4 h) Nov 23 12:30 PM exit + hung restart -> back 2:18 PM (~1 h 45 m) Nov 23 9:22 PM exit -> back 9:22 PM (seconds) Nov 23 10:09 PM exit + hung restart -> back 3:05 AM (~5 h) Nov 24 11:16 AM exit + hung restart -> back 11:38 AM (~20 min)
So a plain exit recovers quickly, but when the restart hangs, the service stays down until something outside SCM starts it. A scheduled task running "sc.exe start Tailscale" every 5 minutes did not reliably bring it back from that state.
The exits continue to line up with Modern Standby (Kernel-Power 506/507). As before, there is no panic in the logs and no Application Error event.
Current workaround, for anyone else hitting this: a SYSTEM scheduled task that runs on Kernel-Power 507 (resume) and every 5 minutes. It starts the service if it is Stopped. If the service is in any other non-Running state for more than 90 seconds, it kills tailscaled.exe and starts the service again.