{"record":{"id":"0bf716646111fd93","repo":"hashicorp/nomad","slug":"evaluation-does-not-exist","errorCode":null,"errorMessage":"evaluation does not exist","messagePattern":"evaluation does not exist","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"nomad/eval_endpoint.go","lineNumber":406,"sourceCode":"\n\t// Verify the evaluation is outstanding, and that the tokens match.\n\tif err := e.srv.evalBroker.OutstandingReset(eval.ID, args.EvalToken); err != nil {\n\t\treturn err\n\t}\n\n\t// Look for the eval\n\tsnap, err := e.srv.fsm.State().Snapshot()\n\tif err != nil {\n\t\treturn err\n\t}\n\n\tws := memdb.NewWatchSet()\n\tout, err := snap.EvalByID(ws, eval.ID)\n\tif err != nil {\n\t\treturn err\n\t}\n\tif out == nil {\n\t\treturn fmt.Errorf(\"evaluation does not exist\")\n\t}\n\tif out.Status != structs.EvalStatusBlocked {\n\t\treturn fmt.Errorf(\"evaluation not blocked\")\n\t}\n\n\t// Reblock the eval\n\te.srv.blockedEvals.Reblock(eval, args.EvalToken)\n\treturn nil\n}\n\n// Reap is used to cleanup dead evaluations and allocations\nfunc (e *Eval) Reap(args *structs.EvalReapRequest,\n\treply *structs.GenericResponse) error {\n\n\taclObj, err := e.srv.AuthenticateServerOnly(e.ctx, args)\n\te.srv.MeasureRPCRate(\"eval\", structs.RateMetricWrite, args)\n\tif err != nil || !aclObj.AllowServerOp() {\n\t\treturn structs.ErrPermissionDenied","sourceCodeStart":388,"sourceCodeEnd":424,"githubUrl":"https://github.com/hashicorp/nomad/blob/482b49bf1aec006f089bcfc7e632d8f6ac303e5e/nomad/eval_endpoint.go#L388-L424","documentation":"Fires in Eval.Reblock when no evaluation with the given ID exists in the state store: the eval token was outstanding, but the eval itself is gone (GC'd or never committed), so there is nothing to reinsert into the blocked tracker.","triggerScenarios":"Thrown at nomad/eval_endpoint.go:406 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check whether the eval was GC'd or the cluster state was restored","Do not retry blindly; re-create the eval from the failing job instead"],"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"}