{"record":{"id":"ad0e9408780ed705","repo":"goharbor/harbor","slug":"scan-artifact-s-s-failed","errorCode":null,"errorMessage":"scan artifact %s@%s failed","messagePattern":"scan artifact (.+?)@(.+?) failed","errorType":"http","errorClass":null,"httpStatus":500,"severity":"error","filePath":"src/controller/scan/base_controller.go","lineNumber":360,"sourceCode":"\t\t\treturn err\n\t\t}\n\n\t\topts.ExecutionID = executionID\n\t}\n\n\terrs = errs[:0]\n\tfor _, launchScanJobParam := range launchScanJobParams {\n\t\tlaunchScanJobParam.ExecutionID = opts.ExecutionID\n\n\t\tif err := bc.launchScanJob(ctx, launchScanJobParam, opts); err != nil {\n\t\t\tlog.G(ctx).Warningf(\"scan artifact %s@%s failed, error: %v\", artifact.RepositoryName, artifact.Digest, err)\n\t\t\terrs = append(errs, err)\n\t\t}\n\t}\n\n\t// all scanning of the artifacts failed\n\tif len(errs) == len(launchScanJobParams) {\n\t\treturn fmt.Errorf(\"scan artifact %s@%s failed\", artifact.RepositoryName, artifact.Digest)\n\t}\n\n\treturn nil\n}\n\n// Stop scan job of a given artifact\nfunc (bc *basicController) Stop(ctx context.Context, artifact *ar.Artifact, capType string) error {\n\tif artifact == nil {\n\t\treturn errors.New(\"nil artifact to stop scan\")\n\t}\n\tvendorType := sca.GetScanHandler(capType).JobVendorType()\n\tquery := q.New(q.KeyWords{\"vendor_type\": vendorType, \"extra_attrs.artifact.digest\": artifact.Digest, \"extra_attrs.enabled_capabilities.type\": capType})\n\texecutions, err := bc.execMgr.List(ctx, query)\n\tif err != nil {\n\t\treturn err\n\t}\n\n\tif len(executions) == 0 {","sourceCodeStart":342,"sourceCodeEnd":378,"githubUrl":"https://github.com/goharbor/harbor/blob/7b2fd08cc568955cca339afeefab27372840d936/src/controller/scan/base_controller.go#L342-L378","documentation":"Error \"scan artifact %s@%s failed\" thrown in goharbor/harbor.","triggerScenarios":"Thrown at src/controller/scan/base_controller.go:360 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"7b2fd08cc568955cca339afeefab27372840d936","analyzedAt":"2026-08-16T00:00:10.961Z","schemaVersion":2},"datasetVersion":"2026-08-16T03:17:38.424Z"}