{"record":{"id":"5037c431b21cc4d3","repo":"hashicorp/nomad","slug":"failed-to-get-job-node-pool-q-v-5037c4","errorCode":null,"errorMessage":"failed to get job node pool %q: %v","messagePattern":"failed to get job node pool %q: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"scheduler/scheduler_system.go","lineNumber":214,"sourceCode":"\t// Try again if the plan was not fully committed, potential conflict\n\tfullCommit, expected, actual := result.FullCommit(s.plan)\n\tif !fullCommit {\n\t\ts.logger.Debug(\"plan didn't fully commit\", \"attempted\", expected, \"placed\", actual)\n\t\treturn false, nil\n\t}\n\n\t// Success!\n\treturn true, nil\n}\n\n// setJob updates the stack with the given job and job's node pool scheduler\n// configuration.\nfunc (s *SystemScheduler) setJob(job *structs.Job) error {\n\t// Fetch node pool and global scheduler configuration to determine how to\n\t// configure the scheduler.\n\tpool, err := s.state.NodePoolByName(nil, job.NodePool)\n\tif err != nil {\n\t\treturn fmt.Errorf(\"failed to get job node pool %q: %v\", job.NodePool, err)\n\t}\n\n\t_, schedConfig, err := s.state.SchedulerConfig()\n\tif err != nil {\n\t\treturn fmt.Errorf(\"failed to get scheduler configuration: %v\", err)\n\t}\n\n\ts.stack.SetJob(job)\n\ts.stack.SetSchedulerConfiguration(schedConfig.WithNodePool(pool))\n\treturn nil\n}\n\n// computeJobAllocs is used to reconcile differences between the job,\n// existing allocations and node status to update the allocations.\nfunc (s *SystemScheduler) computeJobAllocs() error {\n\t// Lookup the allocations by JobID\n\tws := memdb.NewWatchSet()\n\tallocs, err := s.state.AllocsByJob(ws, s.eval.Namespace, s.eval.JobID, true)","sourceCodeStart":196,"sourceCodeEnd":232,"githubUrl":"https://github.com/hashicorp/nomad/blob/482b49bf1aec006f089bcfc7e632d8f6ac303e5e/scheduler/scheduler_system.go#L196-L232","documentation":"SystemScheduler.setJob failed to look up the job's node pool in the state store. The scheduler needs the pool to apply the correct scheduler configuration; the wrapped error holds the store cause.","triggerScenarios":"Thrown at scheduler/scheduler_system.go:214 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check server logs for the state store error","Verify the node pool still exists; the eval will be retried"],"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"}