{"record":{"id":"7d860616a25c06f8","repo":"goharbor/harbor","slug":"load-configurations-error-s","errorCode":null,"errorMessage":"load configurations error: %s\n","messagePattern":"load configurations error: (.+?)\n","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/jobservice/main.go","lineNumber":65,"sourceCode":"\n\tcfgLib.DefaultCfgManager = common.RestCfgManager\n\tif err := cfgLib.DefaultMgr().Load(context.Background()); err != nil {\n\t\tpanic(fmt.Sprintf(\"failed to load configuration, error: %v\", err))\n\t}\n\n\t// Get parameters\n\tconfigPath := flag.String(\"c\", \"\", \"Specify the yaml config file path\")\n\tflag.Parse()\n\n\t// Missing config file\n\tif configPath == nil || utils.IsEmptyStr(*configPath) {\n\t\tflag.Usage()\n\t\tpanic(\"no config file is specified\")\n\t}\n\n\t// Load configurations\n\tif err := config.DefaultConfig.Load(*configPath, true); err != nil {\n\t\tpanic(fmt.Sprintf(\"load configurations error: %s\\n\", err))\n\t}\n\n\t// Append node ID\n\tvCtx := context.WithValue(context.Background(), utils.NodeID, utils.GenerateNodeID())\n\t// Create the root context\n\tctx, cancel := context.WithCancel(vCtx)\n\tdefer cancel()\n\n\t// Initialize logger\n\tif err := logger.Init(ctx); err != nil {\n\t\tpanic(err)\n\t}\n\n\tcfgLib.InitTraceConfig(ctx)\n\tdefer tracelib.InitGlobalTracer(context.Background()).Shutdown()\n\n\t// Set job context initializer\n\truntime.JobService.SetJobContextInitializer(func(ctx context.Context) (job.Context, error) {","sourceCodeStart":47,"sourceCodeEnd":83,"githubUrl":"https://github.com/goharbor/harbor/blob/7b2fd08cc568955cca339afeefab27372840d936/src/jobservice/main.go#L47-L83","documentation":"Fatal startup error in the jobservice main function: config.DefaultConfig.Load failed to read or parse the specified YAML config file (with strict/overwrite mode enabled). The panic carries the load error; common causes are a missing or unreadable file, invalid YAML syntax, or values that fail validation.","triggerScenarios":"Thrown at src/jobservice/main.go:65 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the panic text for the specific parse/read failure of the -c config file","Validate the YAML syntax (e.g. yamllint) and required fields against a known-good jobservice config","Ensure the file exists in the container, is readable, and is mounted at the path passed via -c; then restart"],"exampleFix":null,"handlingStrategy":"try-catch","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"}