{"record":{"id":"553da5e3e496a7a3","repo":"slackhq/nebula","slug":"failed-to-load-config-s","errorCode":null,"errorMessage":"failed to load config: %s","messagePattern":"failed to load config: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"cmd/nebula-service/service.go","lineNumber":31,"sourceCode":"\nvar logger service.Logger\n\ntype program struct {\n\tconfigPath *string\n\tbuild      string\n\tcontrol    *nebula.Control\n}\n\nfunc (p *program) Start(s service.Service) error {\n\t// Start should not block.\n\tlogger.Info(\"Nebula service starting.\")\n\n\tl := newPlatformLogger()\n\n\tc := config.NewC(l)\n\terr := c.Load(*p.configPath)\n\tif err != nil {\n\t\treturn fmt.Errorf(\"failed to load config: %s\", err)\n\t}\n\n\tif err := logging.ApplyConfig(l, c); err != nil {\n\t\treturn fmt.Errorf(\"failed to apply logging config: %s\", err)\n\t}\n\tc.RegisterReloadCallback(func(c *config.C) {\n\t\tif err := logging.ApplyConfig(l, c); err != nil {\n\t\t\tl.Error(\"Failed to reconfigure logger on reload\", \"error\", err)\n\t\t}\n\t})\n\n\tp.control, err = nebula.Main(c, false, Build, l, nil)\n\tif err != nil {\n\t\treturn err\n\t}\n\n\tif err := p.control.Start(); err != nil {\n\t\treturn err","sourceCodeStart":13,"sourceCodeEnd":49,"githubUrl":"https://github.com/slackhq/nebula/blob/dd8f660c0ac37903ec4080ca4d3c861ba9342ceb/cmd/nebula-service/service.go#L13-L49","documentation":"Wrapping error in the Windows/macOS service program Start: config.Load failed on the service's config path — no YAML found, unreadable files, or parse errors. The underlying error is appended with %s; the service cannot start without a valid config.","triggerScenarios":"Thrown at cmd/nebula-service/service.go:31 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the config path passed to the service is correct and readable","Fix any YAML syntax or missing-file errors reported in the wrapped message","Run `nebula-service -config /path/to/config.yaml` explicitly to see the error"],"exampleFix":null,"handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"dd8f660c0ac37903ec4080ca4d3c861ba9342ceb","analyzedAt":"2026-09-03T11:13:55.444Z","contentChangedAt":"2026-09-03T11:13:55.444Z","schemaVersion":2},"datasetVersion":"2026-09-10T17:17:09.494Z"}