Tailscale auth lost after every sysupgrade (2)

(continuation of closed topic: Tailscale auth lost after every sysupgrade)

I found this reddit post with apparently the same issue:
https://www.reddit.com/r/Tailscale/comments/106lrju/tailscale_key_expires_on_reboot/

Which links to this other reddit post
https://www.reddit.com/r/Tailscale/comments/104y6nq/docker_tailscale_and_caddy_with_https_a_love_story/

Which basically says the key thing to having the auth survive a reboot is to export the environment variables, so maybe these need to be exported earlier in the boot process or before the tailscaled process restarts?

  • TS_STATE_DIR (should be /etc/tailscale/tailscaled.state ???)
  • TS_AUTH_KEY (stored in config file ?)

This topic was automatically closed after 15 days. New replies are no longer allowed.