goharbor/harbor · error
param not found
Error message
param %s not found
What it means
Generic replication job parameter guard: the named parameter (e.g. src_resource, dst_resource) is missing from the job's parameter map, so the transfer cannot be set up. This is a sentinel used by parseParam for all required string parameters.
Solutions
- Ensure the replication scheduler includes all required params (src_resource, dst_resource)
- Check for parameter loss during job serialization
- Re-trigger the replication after fixing the scheduling payload
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at src/jobservice/job/impl/replication/replication.go:164 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of goharbor/harbor@7b2fd08cc5 (2026-08-16).
Data as JSON: /api/errors/990659e76d2ecd50.
Report an issue: GitHub.
Appendix: source
Thrown at src/jobservice/job/impl/replication/replication.go:164
var copyByChunk bool
value, exist = params["copy_by_chunk"]
if exist {
if boolVal, ok := value.(bool); ok {
copyByChunk = boolVal
}
}
opts := transfer.NewOptions(
transfer.WithSpeed(speed),
transfer.WithCopyByChunk(copyByChunk),
)
return src, dst, opts, nil
}
func parseParam(params map[string]any, name string, v any) error {
value, exist := params[name]
if !exist {
return fmt.Errorf("param %s not found", name)
}
str, ok := value.(string)
if !ok {
return fmt.Errorf("the value of %s isn't string", name)
}
return json.Unmarshal([]byte(str), v)
}
View on GitHub (pinned to 7b2fd08cc5)