{"record":{"id":"ec7b461e601d1d4f","repo":"hashicorp/nomad","slug":"error-getting-server-raft-protocol-versions-s","errorCode":null,"errorMessage":"error getting server raft protocol versions: %s","messagePattern":"error getting server raft protocol versions: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"nomad/operator_endpoint.go","lineNumber":406,"sourceCode":"\t\treturn err\n\t}\n\top.srv.MeasureRPCRate(\"operator\", structs.RateMetricRead, args)\n\tif authErr != nil {\n\t\treturn structs.ErrPermissionDenied\n\t}\n\n\t// This action requires operator read access.\n\taclObj, err := op.srv.ResolveACL(args)\n\tif err != nil {\n\t\treturn err\n\t} else if !aclObj.AllowOperatorRead() {\n\t\treturn structs.ErrPermissionDenied\n\t}\n\n\t// Exit early if the min Raft version is too low\n\tminRaftProtocol, err := op.srv.MinRaftProtocol()\n\tif err != nil {\n\t\treturn fmt.Errorf(\"error getting server raft protocol versions: %s\", err)\n\t}\n\tif minRaftProtocol < 3 {\n\t\treturn fmt.Errorf(\"all servers must have raft_protocol set to 3 or higher to use this endpoint\")\n\t}\n\n\t*reply = *op.srv.GetClusterHealth()\n\n\treturn nil\n}\n\n// SchedulerSetConfiguration is used to set the current Scheduler configuration.\nfunc (op *Operator) SchedulerSetConfiguration(args *structs.SchedulerSetConfigRequest, reply *structs.SchedulerSetConfigurationResponse) error {\n\n\tauthErr := op.srv.Authenticate(op.ctx, args)\n\tif done, err := op.srv.forward(\"Operator.SchedulerSetConfiguration\", args, args, reply); done {\n\t\treturn err\n\t}\n\top.srv.MeasureRPCRate(\"operator\", structs.RateMetricWrite, args)","sourceCodeStart":388,"sourceCodeEnd":424,"githubUrl":"https://github.com/hashicorp/nomad/blob/482b49bf1aec006f089bcfc7e632d8f6ac303e5e/nomad/operator_endpoint.go#L388-L424","documentation":"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.","triggerScenarios":"Thrown at nomad/operator_endpoint.go:406 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","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"],"exampleFix":null,"handlingStrategy":"retry","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"482b49bf1aec006f089bcfc7e632d8f6ac303e5e","analyzedAt":"2026-09-04T07:54:14.808Z","contentChangedAt":"2026-09-04T07:54:14.808Z","schemaVersion":2},"datasetVersion":"2026-09-08T10:18:20.063Z"}