diff --git a/agent/agent.go b/agent/agent.go index 9e5b8841c6f8..cb2be4fe64b2 100644 --- a/agent/agent.go +++ b/agent/agent.go @@ -628,7 +628,11 @@ func (a *Agent) Start(ctx context.Context) error { // Check for a last seen timestamp and exit if deemed stale before attempting to join // Serf/Raft or listen for requests. if err := a.checkServerLastSeen(consul.ReadServerMetadata); err != nil { - // TODO: log a bunch of times first? + deadline := time.Now().Add(time.Minute) + for time.Now().Before(deadline) { + a.logger.Error("startup error: %s", err) + time.Sleep(10 * time.Second) + } return err }