{"record":{"id":"cda3d53e7ae35751","repo":"hashicorp/nomad","slug":"acl-auth-method-deletion-failed-v","errorCode":null,"errorMessage":"ACL auth method deletion failed: %v","messagePattern":"ACL auth method deletion failed: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"nomad/state/state_store_acl_sso.go","lineNumber":151,"sourceCode":"\n\treturn txn.Commit()\n}\n\n// deleteACLAuthMethodTxn deletes a single ACL method name from the state store\n// using the provided write transaction. It is the responsibility of the caller\n// to update the index table.\nfunc (s *StateStore) deleteACLAuthMethodTxn(txn *txn, methodName string) error {\n\texisting, err := txn.First(TableACLAuthMethods, indexID, methodName)\n\tif err != nil {\n\t\treturn fmt.Errorf(\"ACL auth method lookup failed: %v\", err)\n\t}\n\tif existing == nil {\n\t\treturn errors.New(\"ACL auth method not found\")\n\t}\n\n\t// Delete the existing entry from the table.\n\tif err := txn.Delete(TableACLAuthMethods, existing); err != nil {\n\t\treturn fmt.Errorf(\"ACL auth method deletion failed: %v\", err)\n\t}\n\treturn nil\n}\n\n// GetACLAuthMethods returns an iterator that contains all ACL auth methods\n// stored within state.\nfunc (s *StateStore) GetACLAuthMethods(ws memdb.WatchSet) (memdb.ResultIterator, error) {\n\ttxn := s.db.ReadTxn()\n\n\t// Walk the entire table to get all ACL auth methods.\n\titer, err := txn.Get(TableACLAuthMethods, indexID)\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"ACL auth method lookup failed: %v\", err)\n\t}\n\tws.Add(iter.WatchCh())\n\n\treturn iter, nil\n}","sourceCodeStart":133,"sourceCodeEnd":169,"githubUrl":"https://github.com/hashicorp/nomad/blob/482b49bf1aec006f089bcfc7e632d8f6ac303e5e/nomad/state/state_store_acl_sso.go#L133-L169","documentation":"Deleting an ACL auth method failed at the memdb Delete call after the entry was found; the wrapped error aborts the deletion transaction.","triggerScenarios":"Thrown at nomad/state/state_store_acl_sso.go:151 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Retry the auth method deletion","Inspect server logs for state store delete errors"],"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"}