{"record":{"id":"0d03621a5023c0ba","repo":"hashicorp/nomad","slug":"node-s-is-not-allowed-to-update-allocs-while-in-s","errorCode":null,"errorMessage":"node %s is not allowed to update allocs while in status %s","messagePattern":"node (.+?) is not allowed to update allocs while in status (.+?)","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"nomad/node_endpoint.go","lineNumber":1550,"sourceCode":"\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\n\tnow := time.Now()\n\tvar evals []*structs.Evaluation\n\n\tfor _, allocToUpdate := range args.Alloc {\n\t\tevalTriggerBy := \"\"\n\t\tallocToUpdate.ModifyTime = now.UTC().UnixNano()\n\n\t\talloc, _ := n.srv.State().AllocByID(nil, allocToUpdate.ID)\n\t\tif alloc == nil {","sourceCodeStart":1532,"sourceCodeEnd":1568,"githubUrl":"https://github.com/hashicorp/nomad/blob/482b49bf1aec006f089bcfc7e632d8f6ac303e5e/nomad/node_endpoint.go#L1532-L1568","documentation":"Node.UpdateAlloc refused the update because the node's status is down or disconnected (UnresponsiveStatus); a node must successfully heartbeat before it may update allocations, so its status must first be restored.","triggerScenarios":"Thrown at nomad/node_endpoint.go:1550 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Restore node connectivity so heartbeats resume and the status leaves down/disconnected","Have the client call UpdateStatus once it is ready","Investigate why the node was marked unresponsive (network, agent down)"],"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"}