diff options
| author | Irbe Krumina <irbe@tailscale.com> | 2024-10-25 13:48:08 -0500 |
|---|---|---|
| committer | Irbe Krumina <irbe@tailscale.com> | 2024-10-25 13:51:55 -0500 |
| commit | c771d2ed86e3538496c81ef57ec83de6fac85e06 (patch) | |
| tree | cf02afcd5e5a6499eded716b5cc1231066412c64 | |
| parent | 7fe6e508588c6359fc51b0221aa1c20ac39e3eaa (diff) | |
| download | tailscale-irbekrm/serve_log.tar.xz tailscale-irbekrm/serve_log.zip | |
ipn/ipnlocal: log if ServeConfig cannot be configuredirbekrm/serve_log
We have lately seen a bunch of mystery issues where serve config 'disappears' on kube,
which may have been because of transient errors when reading state from a kube Secret.
Updates tailscale/tailscale#13900,tailscale/tailscale#12079
Signed-off-by: Irbe Krumina <irbe@tailscale.com>
| -rw-r--r-- | ipn/ipnlocal/local.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ipn/ipnlocal/local.go b/ipn/ipnlocal/local.go index b01f3a0c0..dfa8140b9 100644 --- a/ipn/ipnlocal/local.go +++ b/ipn/ipnlocal/local.go @@ -5729,6 +5729,7 @@ func (b *LocalBackend) reloadServeConfigLocked(prefs ipn.PrefsView) { // if the profile has not changed. confj, err := b.store.ReadState(confKey) if err != nil { + b.logf("error reading ServeConfig from tailscale state: %v, any previously set ServeConfig will be reset", err) b.lastServeConfJSON = mem.B(nil) b.serveConfig = ipn.ServeConfigView{} return |
