Root daemon self-terminates on Windows after a brief stall ("Deleting stale info ... daemon.json") — connector then loops forever instead of recovering
Environment Telepresence: v2.31.0 (OSS), client on Windows Traffic Manager: v2.31.0 Cluster: k3d, k3s v1.34.9
Summary The root daemon (rootd) intermittently shuts down its own DNS server and gRPC tunnel mid-session, with no telepresence quit ever issued by the user. The trigger is in rootd's info-watcher: if the daemon.json info file's heartbeat isn't refreshed for some period (KeepInfoAlive's 3× keepAliveInterval staleness rule), the watcher deletes the file and calls CancelWhenRmFromCache, tearing down networking as if the daemon had disappeared. Immediately after, the user daemon (userd) detects the lost connection and enters a reconnect loop that does not recover on its own — it never respawns rootd, it just retries and fails indefinitely (context deadline exceeded / context canceled) until someone manually runs telepresence quit -s and reconnects.
We've captured this happening 4 separate times across a week of logs from one engineer's machine (2026-09-22, 09-23, 09-28, 09-29), always with the identical signature:
DEBUG rootd/info-watcher: Deleting stale info rootd\daemon.json with age = <7.67s|18.99s|20.89s|29.84s>
DEBUG rootd/info-watcher: info-watcher cancels everything because daemon info daemon.json does not exist
DEBUG rootd/server-grpc: Initiating shutdown
DEBUG rootd/server-grpc: gRPC server ended...followed immediately by, in userd's log:
ERROR userd/serve-grpc: activity watcher failed: EOF
WARN userd/serve-grpc: root daemon connection lost: EOF; reconnecting
ERROR userd/serve-grpc: failed to reconnect to root daemon (attempt 1): context deadline exceeded
... (repeats every ~5s; in the worst observed case, 96 attempts over 15+ minutes with no recovery)Impact Because rootd owns both the cluster-DNS proxy and the intercept tunnel, once it dies:
Cluster-only DNS names stop resolving for intercepted services (observed as a downstream Java app spamming UnknownHostException for a cluster-internal RabbitMQ hostname every 5–10s).
Any already-open connections routed through the tunnel get severed in-flight (observed as Connection reset on a DB connection and EOFException on RabbitMQ topology recovery, in a session where the failure hit mid-use rather than at cold start).
Restarting the intercepted application does nothing, since the app's own process is fine — the daemon it depends on is dead.
The only reliable recovery is telepresence quit -s followed by a fresh connect; a soft "reset" that doesn't force-kill the wedged userd first can fail to recover.
What we'd expect instead
- rootd's info-watcher shouldn't treat a transient scheduling stall (observed: 7.7s–29.8s) as "I no longer exist" and tear down live networking.
- Failing that, userd should detect a genuinely-dead rootd and restart it, rather than retrying an unrecoverable connection forever.
Related issues we found telepresenceio/telepresence#4010 — same "Deleting stale info ...json with age=..." log line reported on Windows across v2.15.1–v2.25.1, closed as not-planned/undiagnosed. We now have a reproducible trigger (brief process stall) and consistent downstream symptoms, which that issue lacked. PR telepresenceio/telepresence#4320 — fixes a related but distinct race (reconnect loop triggered by session cancellation racing the activity watcher, not by info-watcher self-deletion), merged 2026-09-24 for v2.32.0 — not present in our v2.31.0 client, and doesn't appear to cover this trigger. telepresenceio/telepresence#3795 — same class of complaint (connector doesn't auto-recover after losing the root daemon connection).
Logs available I've attached all relevant telepresence logs.
telepresence_logs_260929T122103.zip telepresence_logs_260929T121746.zip telepresence_logs_260928T162158.zip
Source: telepresenceio/telepresence