{"record":{"id":"72b1af268234bd91","repo":"hashicorp/nomad","slug":"failed-to-get-job-s-v-72b1af","errorCode":null,"errorMessage":"failed to get job '%s': %v","messagePattern":"failed to get job '(.+?)': (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"scheduler/scheduler_system.go","lineNumber":122,"sourceCode":"\t\t}\n\t\treturn err\n\t}\n\n\t// Update the status to complete\n\treturn setStatus(s.logger, s.planner, s.eval, nil,\n\t\ts.failedTGAllocs, s.planAnnotations, structs.EvalStatusComplete, \"\",\n\t\ts.queuedAllocs, s.deployment.GetID())\n}\n\n// process is wrapped in retryMax to iteratively run the handler until we have no\n// further work or we've made the maximum number of attempts.\nfunc (s *SystemScheduler) process() (bool, error) {\n\t// Lookup the Job by ID\n\tvar err error\n\tws := memdb.NewWatchSet()\n\ts.job, err = s.state.JobByID(ws, s.eval.Namespace, s.eval.JobID)\n\tif err != nil {\n\t\treturn false, fmt.Errorf(\"failed to get job '%s': %v\", s.eval.JobID, err)\n\t}\n\n\tnumTaskGroups := 0\n\tif !s.job.Stopped() {\n\t\tnumTaskGroups = len(s.job.TaskGroups)\n\t}\n\ts.queuedAllocs = make(map[string]int, numTaskGroups)\n\n\t// Get the ready nodes in the required datacenters\n\tif !s.job.Stopped() {\n\t\ts.nodes, s.notReadyNodes, s.nodesByDC, err = readyNodesInDCsAndPool(\n\t\t\ts.state, s.job.Datacenters, s.job.NodePool)\n\t\tif err != nil {\n\t\t\treturn false, fmt.Errorf(\"failed to get ready nodes: %v\", err)\n\t\t}\n\t}\n\n\ts.deployment, err = s.state.LatestDeploymentByJobID(ws, s.eval.Namespace, s.eval.JobID)","sourceCodeStart":104,"sourceCodeEnd":140,"githubUrl":"https://github.com/hashicorp/nomad/blob/482b49bf1aec006f089bcfc7e632d8f6ac303e5e/scheduler/scheduler_system.go#L104-L140","documentation":"System scheduler state-store error in process: reading the job by ID from Nomad's state store failed. This is an internal/infrastructure failure during evaluation processing, not a job spec problem; the scheduler aborts the pass and the eval is retried.","triggerScenarios":"Thrown at scheduler/scheduler_system.go:122 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check server logs for Raft/state store errors","Ensure the leader is healthy; the evaluation will be retried automatically"],"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"}