{"record":{"id":"fbb743a9d87c9a1c","repo":"hashicorp/nomad","slug":"node-s-not-found","errorCode":null,"errorMessage":"node %s not found","messagePattern":"node (.+?) not found","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"nomad/node_endpoint.go","lineNumber":1541,"sourceCode":"\n\t// Ensure at least a single alloc\n\tif len(args.Alloc) == 0 {\n\t\treturn fmt.Errorf(\"must update at least one allocation\")\n\t}\n\n\t// Ensure the node is allowed to update allocs.\n\t// The node needs to successfully heartbeat before updating its allocs.\n\ttargetNodeID := args.Alloc[0].NodeID\n\tif targetNodeID == \"\" {\n\t\treturn fmt.Errorf(\"missing node ID\")\n\t}\n\n\tnode, err := n.srv.State().NodeByID(nil, targetNodeID)\n\tif err != nil {\n\t\treturn fmt.Errorf(\"failed to retrieve node %s: %v\", targetNodeID, err)\n\t}\n\tif node == nil {\n\t\treturn fmt.Errorf(\"node %s not found\", targetNodeID)\n\t}\n\tif !aclObj.AllowClientOp(node.NodePool) {\n\t\treturn structs.ErrPermissionDenied\n\t}\n\tif err := auth.AuthorizeSameNode(args.GetIdentity(), targetNodeID); err != nil {\n\t\treturn err\n\t}\n\tif node.UnresponsiveStatus() {\n\t\treturn fmt.Errorf(\"node %s is not allowed to update allocs while in status %s\", targetNodeID, node.Status)\n\t}\n\n\t// Ensure that evals aren't set from client RPCs\n\t// We create them here before the raft update\n\tif len(args.Evals) != 0 {\n\t\treturn fmt.Errorf(\"evals field must not be set\")\n\t}\n\n\t// Update modified timestamp for client initiated allocation updates","sourceCodeStart":1523,"sourceCodeEnd":1559,"githubUrl":"https://github.com/hashicorp/nomad/blob/482b49bf1aec006f089bcfc7e632d8f6ac303e5e/nomad/node_endpoint.go#L1523-L1559","documentation":"Node.UpdateAlloc could not find the node referenced by the first allocation's NodeID in the state store; the client is reporting allocations for a node the server never registered or has since forgotten.","triggerScenarios":"Thrown at nomad/node_endpoint.go:1541 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Ensure the node is registered with the server (client must call Register before UpdateAlloc)","Verify the NodeID on the allocations matches an existing node","Re-register or restart the client if its node entry was garbage-collected"],"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"}