{"record":{"id":"03d053a5992a8a95","repo":"goharbor/harbor","slug":"not-found-03d053","errorCode":"NOT_FOUND","errorMessage":"cert not found in path: %s","messagePattern":"cert not found in path: (.+?)","errorType":"http","errorClass":"lib/errors.NotFoundError","httpStatus":404,"severity":"error","filePath":"src/controller/systeminfo/controller.go","lineNumber":165,"sourceCode":"\treturn utils.SafeCastString(cfg[common.OIDCName])\n}\n\nfunc (c *controller) GetCapacity(_ context.Context) (*imagestorage.Capacity, error) {\n\tsysteminfo.Init()\n\treturn imagestorage.GlobalDriver.Cap()\n}\n\nfunc (c *controller) GetCA(ctx context.Context) (io.ReadCloser, error) {\n\tlogger := log.GetLogger(ctx)\n\tpath := defaultRootCert\n\tif len(testRootCertPath) > 0 {\n\t\tpath = testRootCertPath\n\t}\n\t_, err := os.Stat(path)\n\tif err == nil {\n\t\treturn os.Open(path)\n\t} else if os.IsNotExist(err) {\n\t\treturn nil, errors.NotFoundError(fmt.Errorf(\"cert not found in path: %s\", path))\n\t}\n\t// else\n\tlogger.Errorf(\"Failed to stat the cert, path: %s, error: %v\", path, err)\n\treturn nil, err\n}\n\n// NewController return an instance of controller\nfunc NewController() Controller {\n\treturn &controller{}\n}\n","sourceCodeStart":147,"sourceCodeEnd":176,"githubUrl":"https://github.com/goharbor/harbor/blob/7b2fd08cc568955cca339afeefab27372840d936/src/controller/systeminfo/controller.go#L147-L176","documentation":"Error \"cert not found in path: %s\" thrown in goharbor/harbor.","triggerScenarios":"Thrown at src/controller/systeminfo/controller.go:165 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"}