{"record":{"id":"950128f41298e049","repo":"goharbor/harbor","slug":"current-registry-is-unhealthy-regid-v-name-v","errorCode":null,"errorMessage":"current registry is unhealthy, regID:%v, Name:%v, Status: %v","messagePattern":"current registry is unhealthy, regID:(.+?), Name:(.+?), Status: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/controller/proxy/remote.go","lineNumber":78,"sourceCode":"\tif err := r.init(ctx); err != nil {\n\t\treturn nil, err\n\t}\n\treturn r, nil\n}\n\nfunc (r *remoteHelper) init(ctx context.Context) error {\n\tif r.registry != nil {\n\t\treturn nil\n\t}\n\treg, err := r.registryMgr.Get(ctx, r.regID)\n\tif err != nil {\n\t\treturn err\n\t}\n\tif reg == nil {\n\t\treturn fmt.Errorf(\"failed to get registry, registryID: %v\", r.regID)\n\t}\n\tif reg.Status != model.Healthy {\n\t\treturn fmt.Errorf(\"current registry is unhealthy, regID:%v, Name:%v, Status: %v\", reg.ID, reg.Name, reg.Status)\n\t}\n\tfactory, err := adapter.GetFactory(reg.Type)\n\tif err != nil {\n\t\treturn err\n\t}\n\tadp, err := factory.Create(reg)\n\tif err != nil {\n\t\treturn err\n\t}\n\tr.registry = adp.(adapter.ArtifactRegistry)\n\treturn nil\n}\n\nfunc (r *remoteHelper) BlobReader(repo, dig string) (int64, io.ReadCloser, error) {\n\tsz, bReader, err := r.registry.PullBlob(repo, dig)\n\tif err != nil {\n\t\treturn 0, nil, err\n\t}","sourceCodeStart":60,"sourceCodeEnd":96,"githubUrl":"https://github.com/goharbor/harbor/blob/7b2fd08cc568955cca339afeefab27372840d936/src/controller/proxy/remote.go#L60-L96","documentation":"Error \"current registry is unhealthy, regID:%v, Name:%v, Status: %v\" thrown in goharbor/harbor.","triggerScenarios":"Thrown at src/controller/proxy/remote.go:78 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"}