{"record":{"id":"028f7afe968a2858","repo":"hashicorp/nomad","slug":"unable-to-look-up-summary-for-job-v-028f7a","errorCode":null,"errorMessage":"unable to look up summary for job: %v","messagePattern":"unable to look up summary for job: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"nomad/node_pool_endpoint.go","lineNumber":457,"sourceCode":"\t\t\t\t\t\tif allowableNamespaces != nil && !allowableNamespaces[job.Namespace] {\n\t\t\t\t\t\t\treturn false\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif job.NodePool != args.Name {\n\t\t\t\t\t\t\treturn false\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn true\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\n\t\t\t\tpager, err := paginator.NewPaginator(iter, args.QueryOptions, selector,\n\t\t\t\t\tpaginator.NamespaceIDTokenizer[*structs.Job](args.NextToken),\n\t\t\t\t\tfunc(job *structs.Job) (*structs.JobListStub, error) {\n\t\t\t\t\t\tsummary, err := store.JobSummaryByID(ws, job.Namespace, job.ID)\n\t\t\t\t\t\tif err != nil || summary == nil {\n\t\t\t\t\t\t\treturn nil, fmt.Errorf(\"unable to look up summary for job: %v\", job.ID)\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn job.Stub(summary, args.Fields), nil\n\t\t\t\t\t})\n\t\t\t\tif err != nil {\n\t\t\t\t\treturn structs.NewErrRPCCodedf(\n\t\t\t\t\t\thttp.StatusBadRequest, \"failed to create result paginator: %v\", err)\n\t\t\t\t}\n\n\t\t\t\tjobs, nextToken, err := pager.Page()\n\t\t\t\tif err != nil {\n\t\t\t\t\treturn structs.NewErrRPCCodedf(\n\t\t\t\t\t\thttp.StatusBadRequest, \"failed to read result page: %v\", err)\n\t\t\t\t}\n\n\t\t\t\treply.QueryMeta.NextToken = nextToken\n\t\t\t\treply.Jobs = jobs\n\t\t\t}\n","sourceCodeStart":439,"sourceCodeEnd":475,"githubUrl":"https://github.com/hashicorp/nomad/blob/482b49bf1aec006f089bcfc7e632d8f6ac303e5e/nomad/node_pool_endpoint.go#L439-L475","documentation":"While paginating jobs in a node pool listing, the state store failed to read (or returned nil for) a job summary; the error wraps that lookup failure during result transformation rather than indicating a bad request.","triggerScenarios":"Thrown at nomad/node_pool_endpoint.go:457 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Retry the list request; the read may have raced a state update","Check server logs for state store errors","Verify server/Raft health if the error persists"],"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"}