{"record":{"id":"93fdcc8bbaa8cba3","repo":"hashicorp/nomad","slug":"scheduler-config-not-initialized-yet","errorCode":null,"errorMessage":"scheduler config not initialized yet","messagePattern":"scheduler config not initialized yet","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"nomad/operator_endpoint.go","lineNumber":504,"sourceCode":"\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\tstate := op.srv.fsm.State()\n\tindex, config, err := state.SchedulerConfig()\n\n\tif err != nil {\n\t\treturn err\n\t} else if config == nil {\n\t\treturn fmt.Errorf(\"scheduler config not initialized yet\")\n\t}\n\n\treply.SchedulerConfig = config\n\treply.QueryMeta.Index = index\n\top.srv.setQueryMeta(&reply.QueryMeta)\n\n\treturn nil\n}\n\nfunc (op *Operator) forwardStreamingRPC(region string, method string, args any, in io.ReadWriteCloser) error {\n\tserver, err := op.srv.findRegionServer(region)\n\tif err != nil {\n\t\treturn err\n\t}\n\n\treturn op.forwardStreamingRPCToServer(server, method, args, in)\n}\n","sourceCodeStart":486,"sourceCodeEnd":522,"githubUrl":"https://github.com/hashicorp/nomad/blob/482b49bf1aec006f089bcfc7e632d8f6ac303e5e/nomad/operator_endpoint.go#L486-L522","documentation":"SchedulerGetConfiguration found no scheduler configuration object in the state store; the cluster has not yet had a scheduler config applied (fresh cluster or version upgrade path), so there is nothing to return.","triggerScenarios":"Thrown at nomad/operator_endpoint.go:504 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Retry once the cluster has initialized and applied the default scheduler config","Set the scheduler configuration explicitly via the operator endpoint","Check server logs/Raft health if the config never appears"],"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"}