{"record":{"id":"464c9b4407e930bf","repo":"goharbor/harbor","slug":"no-log-data-getter-is-configured","errorCode":null,"errorMessage":"no log data getter is configured","messagePattern":"no log data getter is configured","errorType":"http","errorClass":null,"httpStatus":500,"severity":"error","filePath":"src/jobservice/logger/log_data_handler.go","lineNumber":27,"sourceCode":"// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\npackage logger\n\nimport (\n\t\"errors\"\n\n\t\"github.com/goharbor/harbor/src/jobservice/logger/getter\"\n)\n\n// Retrieve is wrapper func for getter.Retrieve\nfunc Retrieve(logID string) ([]byte, error) {\n\tval, ok := singletons.Load(systemKeyLogDataGetter)\n\tif !ok {\n\t\treturn nil, errors.New(\"no log data getter is configured\")\n\t}\n\n\treturn val.(getter.Interface).Retrieve(logID)\n}\n","sourceCodeStart":9,"sourceCodeEnd":32,"githubUrl":"https://github.com/goharbor/harbor/blob/7b2fd08cc568955cca339afeefab27372840d936/src/jobservice/logger/log_data_handler.go#L9-L32","documentation":"logger.Retrieve failed because the package singleton store contains no log data getter under systemKeyLogDataGetter — the jobservice log getter was never initialized, so there is no backend to read log data from. This is an initialization-order/config issue, not a bad input.","triggerScenarios":"Thrown at src/jobservice/logger/log_data_handler.go:27 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Call the getter initialization (logger.GetLogger or the setter that stores the file getter singleton) during jobservice startup before serving requests","Ensure Retrieve is only used inside the jobservice process, not from other binaries that skip initialization"],"exampleFix":null,"handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"7b2fd08cc568955cca339afeefab27372840d936","analyzedAt":"2026-08-16T00:00:10.961Z","contentChangedAt":"2026-08-16T00:00:10.961Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}