hashicorp/nomad · error
error getting server raft protocol versions: %s
Error message
error getting server raft protocol versions: %s
What it means
ServerHealth could not determine the minimum Raft protocol version across servers; the wrapped error comes from MinRaftProtocol, typically because server versions/protocol info could not be resolved from the peers cache.
Source
Thrown at nomad/operator_endpoint.go:406
return err
}
op.srv.MeasureRPCRate("operator", structs.RateMetricRead, args)
if authErr != nil {
return structs.ErrPermissionDenied
}
// This action requires operator read access.
aclObj, err := op.srv.ResolveACL(args)
if err != nil {
return err
} else if !aclObj.AllowOperatorRead() {
return structs.ErrPermissionDenied
}
// Exit early if the min Raft version is too low
minRaftProtocol, err := op.srv.MinRaftProtocol()
if err != nil {
return fmt.Errorf("error getting server raft protocol versions: %s", err)
}
if minRaftProtocol < 3 {
return fmt.Errorf("all servers must have raft_protocol set to 3 or higher to use this endpoint")
}
*reply = *op.srv.GetClusterHealth()
return nil
}
// SchedulerSetConfiguration is used to set the current Scheduler configuration.
func (op *Operator) SchedulerSetConfiguration(args *structs.SchedulerSetConfigRequest, reply *structs.SchedulerSetConfigurationResponse) error {
authErr := op.srv.Authenticate(op.ctx, args)
if done, err := op.srv.forward("Operator.SchedulerSetConfiguration", args, args, reply); done {
return err
}
op.srv.MeasureRPCRate("operator", structs.RateMetricWrite, args)View on GitHub (pinned to 482b49bf1a)
Solutions
- Retry after the peers cache refreshes
- Verify all servers are reachable and reporting versions (`nomad server members`)
- Inspect server logs for errors building the version/peers cache
Defensive patterns
Strategy: retry
When it happens
Trigger: Thrown at nomad/operator_endpoint.go:406 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of hashicorp/nomad@482b49bf1a (2026-09-04).
Data as JSON: /api/errors/ec7b461e601d1d4f.
Report an issue: GitHub.