goharbor/harbor · error
found more than one scheduled scan all job, please ensure th
Error message
found more than one scheduled scan all job, please ensure that only one schedule left
What it means
Error "found more than one scheduled scan all job, please ensure that only one schedule left" thrown in goharbor/harbor.
Source
Thrown at src/server/v2.0/handler/scan_all.go:226
}
}
cbParams := map[string]any{
// the operator of schedule job is harbor-jobservice
"operator": secret.JobserviceUser,
}
return s.scheduler.Schedule(ctx, job.ScanAllVendorType, 0, cronType, cron, scan.ScanAllCallback, cbParams, nil)
}
func (s *scanAllAPI) getScanAllSchedule(ctx context.Context) (*scheduler.Schedule, error) {
query := q.New(q.KeyWords{"vendor_type": job.ScanAllVendorType})
schedules, err := s.scheduler.ListSchedules(ctx, query.First(q.NewSort("creation_time", true)))
if err != nil {
return nil, err
}
if len(schedules) > 1 {
return nil, fmt.Errorf("found more than one scheduled scan all job, please ensure that only one schedule left")
} else if len(schedules) == 0 {
return nil, nil
}
return schedules[0], nil
}
func (s *scanAllAPI) getMetrics(ctx context.Context, trigger ...string) (*models.Stats, error) {
execution, err := s.getLatestScanAllExecution(ctx, trigger...)
if err != nil {
return nil, err
}
sts := &models.Stats{}
if execution != nil {
if execution.Metrics != nil {
metrics := execution.Metrics
View on GitHub (pinned to 7b2fd08cc5)
When it happens
Trigger: Thrown at src/server/v2.0/handler/scan_all.go:226 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/0fa48e6fb9b31178.
Report an issue: GitHub.