hashicorp/nomad · error
failed sve lookup: %s
Error message
failed sve lookup: %s
What it means
Inside varSetTxn, the initial memdb read of the existing variable (namespace/path) failed; the wrapped lookup error aborts the plain variable set with an error response.
Source
Thrown at nomad/state/state_store_variables.go:203
if ok {
// If the existing index does not match the provided CAS index arg, then we
// shouldn't update anything and can safely return early here.
if sv.ModifyIndex != svEx.ModifyIndex {
return req.ConflictResponse(idx, svEx)
}
}
// If we made it this far, we should perform the set.
return s.varSetTxn(tx, idx, req)
}
// varSetTxn is used to insert or update a variable in the state
// store. It is the inner method used and handles only the actual storage.
func (s *StateStore) varSetTxn(tx WriteTxn, idx uint64, req *structs.VarApplyStateRequest) *structs.VarApplyStateResponse {
sv := req.Var
existingRaw, err := tx.First(TableVariables, indexID, sv.Namespace, sv.Path)
if err != nil {
return req.ErrorResponse(idx, fmt.Errorf("failed sve lookup: %s", err))
}
existing, _ := existingRaw.(*structs.VariableEncrypted)
existingQuota, err := tx.First(TableVariablesQuotas, indexID, sv.Namespace)
if err != nil {
return req.ErrorResponse(idx, fmt.Errorf("variable quota lookup failed: %v", err))
}
var quotaChange int64
// Set the CreateIndex and CreateTime
if existing != nil {
// If the variable is locked, it can only be updated by providing the correct
// lock ID.
if isLocked(existing.Lock, req) {
zeroVal := &structs.VariableEncrypted{
VariableMetadata: structs.VariableMetadata{View on GitHub (pinned to 482b49bf1a)
Solutions
- Retry the variable set
- Check server logs for memdb errors
Defensive patterns
Strategy: retry
When it happens
Trigger: Thrown at nomad/state/state_store_variables.go:203 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/e2cd57b037747e00.
Report an issue: GitHub.