istio/istio · error

failed to get readiness stats: %v

Error message

failed to get readiness stats: %v

What it means

Error "failed to get readiness stats: %v" thrown in istio/istio.

Source

Thrown at pilot/cmd/pilot-agent/status/ready/probe.go:149

func StateString(state ServerInfoState) string {
	switch state {
	case Live:
		return "LIVE"
	case Draining:
		return "DRAINING"
	case PreInitializing:
		return "PRE_INITIALIZING"
	case Initializing:
		return "INITIALIZING"
	}
	return "UNKNOWN"
}

// checkEnvoyStats actually executes the Stats Query on Envoy admin endpoint.
func checkEnvoyStats(host string, port uint16) error {
	state, ws, err := util.GetReadinessStats(host, port)
	if err != nil {
		return fmt.Errorf("failed to get readiness stats: %v", err)
	}

	if state != nil && ServerInfoState(*state) != Live {
		return fmt.Errorf("server is not live, current state is: %v", StateString(ServerInfoState(*state)))
	}

	if !ws {
		return fmt.Errorf("workers have not yet started")
	}

	return nil
}

View on GitHub (pinned to 8dc789c5cf)

When it happens

Trigger: Thrown at pilot/cmd/pilot-agent/status/ready/probe.go:149 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of istio/istio@8dc789c5cf (2026-08-15). Data as JSON: /api/errors/bdbedf96ebe09d71. Report an issue: GitHub.