{"record":{"id":"e256696244821477","repo":"hashicorp/nomad","slug":"acl-auth-method-insert-failed-v","errorCode":null,"errorMessage":"ACL auth method insert failed: %v","messagePattern":"ACL auth method insert failed: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"nomad/state/state_store_acl_sso.go","lineNumber":110,"sourceCode":"\n\t\t// If the method already exists, check whether the update contains any\n\t\t// difference. If it doesn't, we can avoid a state update as well as\n\t\t// updates to any blocking queries.\n\t\tif existing.Equal(method) {\n\t\t\treturn false, nil\n\t\t}\n\n\t\tmethod.CreateIndex = existing.CreateIndex\n\t\tmethod.CreateTime = existing.CreateTime\n\t\tmethod.ModifyIndex = index\n\t} else {\n\t\tmethod.CreateIndex = index\n\t\tmethod.ModifyIndex = index\n\t}\n\n\t// Insert the auth method into the table.\n\tif err := txn.Insert(TableACLAuthMethods, method); err != nil {\n\t\treturn false, fmt.Errorf(\"ACL auth method insert failed: %v\", err)\n\t}\n\treturn true, nil\n}\n\n// DeleteACLAuthMethods is responsible for batch deleting ACL methods. It uses\n// a single write transaction for efficiency, however, any error means no\n// entries will be committed. An error is produced if a method is not found\n// within state which has been passed within the array.\nfunc (s *StateStore) DeleteACLAuthMethods(index uint64, authMethodNames []string) error {\n\ttxn := s.db.WriteTxnMsgT(structs.ACLAuthMethodsDeleteRequestType, index)\n\tdefer txn.Abort()\n\n\tfor _, methodName := range authMethodNames {\n\t\tif err := s.deleteACLAuthMethodTxn(txn, methodName); err != nil {\n\t\t\treturn err\n\t\t}\n\t}\n","sourceCodeStart":92,"sourceCodeEnd":128,"githubUrl":"https://github.com/hashicorp/nomad/blob/482b49bf1aec006f089bcfc7e632d8f6ac303e5e/nomad/state/state_store_acl_sso.go#L92-L128","documentation":"Inserting an ACL auth method into the acl_auth_methods table failed; the wrapped txn.Insert error aborts the auth method upsert.","triggerScenarios":"Thrown at nomad/state/state_store_acl_sso.go:110 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Retry the auth method upsert","Check server logs for memdb write errors","Verify server/Raft health"],"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"}