slackhq/nebula · error

no config files found at %s

Error message

no config files found at %s

What it means

Error from config.C.Load: the resolve pass over the configured path found zero YAML files. The path exists (or stat failed silently) but no loadable YAML was discovered, so there is nothing to parse; the path itself is included in the message.

Source

Thrown at config/config.go:51

func NewC(l *slog.Logger) *C {
	return &C{
		Settings: make(map[string]any),
		l:        l,
	}
}

// Load will find all yaml files within path and load them in lexical order
func (c *C) Load(path string) error {
	c.path = path
	c.files = make([]string, 0)

	err := c.resolve(path, true)
	if err != nil {
		return err
	}

	if len(c.files) == 0 {
		return fmt.Errorf("no config files found at %s", path)
	}

	sort.Strings(c.files)

	err = c.parse()
	if err != nil {
		return err
	}

	return nil
}

func (c *C) LoadString(raw string) error {
	if raw == "" {
		return errors.New("Empty configuration")
	}
	return c.parseRaw([]byte(raw))
}

View on GitHub (pinned to dd8f660c0a)

Solutions

  1. Point -config at a directory containing .yaml/.yml files or at a single YAML file
  2. Check the filename extension matches what the loader accepts
  3. Verify the path was not mistyped
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at config/config.go:51 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of slackhq/nebula@dd8f660c0a (2026-09-03). Data as JSON: /api/errors/51e5349a18dc3ab2. Report an issue: GitHub.