caddyserver/caddy · error
failed to get argon2id time parameter
Error message
failed to get argon2id time parameter: %w
What it means
Wrapper in `caddy hash-password` for fs.GetUint32("argon2id-time") failure when the selected algorithm is argon2id: the --argon2id-time flag value could not be retrieved/parsed as uint32. Generic validation guard; the faulty input is the argon2id-time flag value.
Solutions
- Pass a valid integer for the argon2id time parameter, or omit the flag to use the default.
Defensive patterns
Strategy: try-catch
When it happens
Trigger: Thrown at modules/caddyhttp/caddyauth/command.go:151 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of caddyserver/caddy@50e54ee279 (2026-08-15).
Data as JSON: /api/errors/9dca7ecddba60f07.
Report an issue: GitHub.
Appendix: source
Thrown at modules/caddyhttp/caddyauth/command.go:151
plaintext = plaintext[:len(plaintext)-1] // Trailing newline
}
if len(plaintext) == 0 {
return caddy.ExitCodeFailedStartup, fmt.Errorf("plaintext is required")
}
}
var hash []byte
var hashString string
switch algorithm {
case bcryptName:
hash, err = BcryptHash{cost: bcryptCost}.Hash(plaintext)
hashString = string(hash)
case argon2idName:
time, err := fs.GetUint32("argon2id-time")
if err != nil {
return caddy.ExitCodeFailedStartup, fmt.Errorf("failed to get argon2id time parameter: %w", err)
}
memory, err := fs.GetUint32("argon2id-memory")
if err != nil {
return caddy.ExitCodeFailedStartup, fmt.Errorf("failed to get argon2id memory parameter: %w", err)
}
threads, err := fs.GetUint8("argon2id-threads")
if err != nil {
return caddy.ExitCodeFailedStartup, fmt.Errorf("failed to get argon2id threads parameter: %w", err)
}
keyLen, err := fs.GetUint32("argon2id-keylen")
if err != nil {
return caddy.ExitCodeFailedStartup, fmt.Errorf("failed to get argon2id keylen parameter: %w", err)
}
hash, _ = Argon2idHash{
time: time,
memory: memory,
threads: threads,View on GitHub (pinned to 50e54ee279)