{"record":{"id":"da0efefb8e44b5f7","repo":"hashicorp/nomad","slug":"all-servers-should-be-running-version-v-to-update","errorCode":null,"errorMessage":"All servers should be running version %v to update autopilot config","messagePattern":"All servers should be running version (.+?) to update autopilot config","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"nomad/operator_endpoint.go","lineNumber":363,"sourceCode":"\tif done, err := op.srv.forward(\"Operator.AutopilotSetConfiguration\", args, args, reply); done {\n\t\treturn err\n\t}\n\top.srv.MeasureRPCRate(\"operator\", structs.RateMetricWrite, args)\n\tif authErr != nil {\n\t\treturn structs.ErrPermissionDenied\n\t}\n\n\t// This action requires operator write access.\n\taclObj, err := op.srv.ResolveACL(args)\n\tif err != nil {\n\t\treturn err\n\t} else if !aclObj.AllowOperatorWrite() {\n\t\treturn structs.ErrPermissionDenied\n\t}\n\n\t// All servers should be at or above 0.8.0 to apply this operation\n\tif !op.srv.peersCache.ServersMeetMinimumVersion(op.srv.Region(), minAutopilotVersion, false) {\n\t\treturn fmt.Errorf(\"All servers should be running version %v to update autopilot config\", minAutopilotVersion)\n\t}\n\n\t// Apply the update\n\tresp, _, err := op.srv.raftApply(structs.AutopilotRequestType, args)\n\tif err != nil {\n\t\top.logger.Error(\"failed applying AutoPilot configuration\", \"error\", err)\n\t\treturn err\n\t}\n\n\t// Check if the return type is a bool.\n\tif respBool, ok := resp.(bool); ok {\n\t\t*reply = respBool\n\t}\n\treturn nil\n}\n\n// ServerHealth is used to get the current health of the servers.\nfunc (op *Operator) ServerHealth(args *structs.GenericRequest, reply *structs.OperatorHealthReply) error {","sourceCodeStart":345,"sourceCodeEnd":381,"githubUrl":"https://github.com/hashicorp/nomad/blob/482b49bf1aec006f089bcfc7e632d8f6ac303e5e/nomad/operator_endpoint.go#L345-L381","documentation":"AutopilotSetConfiguration was rejected because not all servers in the region meet the minimum Nomad version required for autopilot config updates (0.8.0+); the cluster is running mixed versions.","triggerScenarios":"Thrown at nomad/operator_endpoint.go:363 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Upgrade all servers in the region to at least the minimum required version","Finish any in-progress rolling upgrade and retry once the peers cache reflects the new versions","Check `nomad server members` for outdated servers"],"exampleFix":null,"handlingStrategy":"validation","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"}