hashicorp/nomad · error
VaultGrace has been deprecated as of Nomad 0.11 and ignored
Error message
VaultGrace has been deprecated as of Nomad 0.11 and ignored since Vault 0.5. Please remove VaultGrace / vault_grace from template block.
What it means
Deprecation warning (not a hard failure) from Template.Warnings: the vault_grace field has been ignored by Vault since v0.5 and is deprecated since Nomad 0.11; its presence indicates stale job spec content.
Source
Thrown at nomad/structs/structs.go:9026
if t.Perms != "" {
if _, err := strconv.ParseUint(t.Perms, 8, 12); err != nil {
_ = multierror.Append(&mErr, fmt.Errorf("Failed to parse %q as octal: %v", t.Perms, err))
}
}
if err = t.Wait.Validate(); err != nil {
_ = multierror.Append(&mErr, err)
}
return mErr.ErrorOrNil()
}
func (t *Template) Warnings() error {
var mErr multierror.Error
// Deprecation notice for vault_grace
if t.VaultGrace != 0 {
mErr.Errors = append(mErr.Errors, fmt.Errorf("VaultGrace has been deprecated as of Nomad 0.11 and ignored since Vault 0.5. Please remove VaultGrace / vault_grace from template block."))
}
return mErr.ErrorOrNil()
}
// DiffID fulfills the DiffableWithID interface.
func (t *Template) DiffID() string {
return t.DestPath
}
// ChangeScript holds the configuration for the script that is executed if
// change mode is set to script
type ChangeScript struct {
// Command is the full path to the script
Command string
// Args is a slice of arguments passed to the script
Args []string
// Timeout is the amount of seconds we wait for the script to finishView on GitHub (pinned to 482b49bf1a)
Solutions
- Remove the vault_grace / VaultGrace field from the template block
- Rely on Vault's own lease handling, which needs no grace setting
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at nomad/structs/structs.go:9026 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/ef13c864149f3983.
Report an issue: GitHub.