hashicorp/nomad · error

ACL auth method deletion failed: %v

Error message

ACL auth method deletion failed: %v

What it means

Deleting an ACL auth method failed at the memdb Delete call after the entry was found; the wrapped error aborts the deletion transaction.

Source

Thrown at nomad/state/state_store_acl_sso.go:151

	return txn.Commit()
}

// deleteACLAuthMethodTxn deletes a single ACL method name from the state store
// using the provided write transaction. It is the responsibility of the caller
// to update the index table.
func (s *StateStore) deleteACLAuthMethodTxn(txn *txn, methodName string) error {
	existing, err := txn.First(TableACLAuthMethods, indexID, methodName)
	if err != nil {
		return fmt.Errorf("ACL auth method lookup failed: %v", err)
	}
	if existing == nil {
		return errors.New("ACL auth method not found")
	}

	// Delete the existing entry from the table.
	if err := txn.Delete(TableACLAuthMethods, existing); err != nil {
		return fmt.Errorf("ACL auth method deletion failed: %v", err)
	}
	return nil
}

// GetACLAuthMethods returns an iterator that contains all ACL auth methods
// stored within state.
func (s *StateStore) GetACLAuthMethods(ws memdb.WatchSet) (memdb.ResultIterator, error) {
	txn := s.db.ReadTxn()

	// Walk the entire table to get all ACL auth methods.
	iter, err := txn.Get(TableACLAuthMethods, indexID)
	if err != nil {
		return nil, fmt.Errorf("ACL auth method lookup failed: %v", err)
	}
	ws.Add(iter.WatchCh())

	return iter, nil
}

View on GitHub (pinned to 482b49bf1a)

Solutions

  1. Retry the auth method deletion
  2. Inspect server logs for state store delete errors
Defensive patterns

Strategy: retry

When it happens

Trigger: Thrown at nomad/state/state_store_acl_sso.go:151 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of hashicorp/nomad@482b49bf1a (2026-09-04). Data as JSON: /api/errors/cda3d53e7ae35751. Report an issue: GitHub.