SparkBox tailscale healthcheck bug — causes container to restart every ~90s forever
Posted by GipoidJr
The tailscale module's health check in modules/tailscale/docker-compose.yml does: grep -q '"BackendState":"Running"' But tailscale status --json on v1.98.10 actually outputs "BackendState": "Running" (with a space after the colon), so the grep never matches. Container gets marked unhealthy permanently — even when it's fully connected and working fine — and something ends up restarting it every ~90 seconds around the clock, so you're basically never stably on your tailnet for more than a minute and a half at a time. Fix is a one-liner, just make the grep whitespace-tolerant: grep -qE '"BackendState":[[:space:]]"Running"'