slackhq/nebula · error

no default config found at %s or %s

Error message

no default config found at %s or %s

What it means

Error from defaultPathInDir: neither config.yaml nor config.yml exists next to the running executable, and no explicit config path was given. Both candidate paths are named in the message so the user knows exactly where a default config was expected.

Source

Thrown at config/default.go:28

// If neither file exists an error is returned that names both paths checked.
func DefaultPath() (string, error) {
	ex, err := os.Executable()
	if err != nil {
		return "", err
	}
	return defaultPathInDir(filepath.Dir(ex))
}

func defaultPathInDir(dir string) (string, error) {
	yamlPath := filepath.Join(dir, "config.yaml")
	if _, err := os.Stat(yamlPath); err == nil {
		return yamlPath, nil
	}
	ymlPath := filepath.Join(dir, "config.yml")
	if _, err := os.Stat(ymlPath); err == nil {
		return ymlPath, nil
	}
	return "", fmt.Errorf("no default config found at %s or %s", yamlPath, ymlPath)
}

View on GitHub (pinned to dd8f660c0a)

Solutions

  1. Place a config.yaml (or config.yml) in the executable's directory
  2. Pass an explicit config path instead of relying on the default
Defensive patterns

Strategy: fallback

When it happens

Trigger: Thrown at config/default.go:28 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/694b205e7f221645. Report an issue: GitHub.