multica-ai/multica · error

config value %q for %s must be positive

Error message

config value %q for %s must be positive

What it means

Error "config value %q for %s must be positive" thrown in multica-ai/multica.

Source

Thrown at server/cmd/multica/cmd_daemon.go:1677

// resolveDaemonDurationOverride is the numeric counterpart for
// poll_interval. flagValue > 0 wins; otherwise, if the env var is unset
// we parse cfgValue. Parse errors and non-positive values are surfaced
// so a bad config.json value doesn't silently fall through to the
// default — `config set` already rejects the same shapes at write
// time, and this guard catches legacy configs that predate that check.
func resolveDaemonDurationOverride(flagValue time.Duration, envName, cfgValue string) (time.Duration, error) {
	if flagValue > 0 {
		return flagValue, nil
	}
	if !envUnset(envName) || cfgValue == "" {
		return 0, nil
	}
	parsed, err := time.ParseDuration(cfgValue)
	if err != nil {
		return 0, fmt.Errorf("config value %q for %s is not a valid duration: %w", cfgValue, envName, err)
	}
	if parsed <= 0 {
		return 0, fmt.Errorf("config value %q for %s must be positive", cfgValue, envName)
	}
	return parsed, nil
}

// resolveDaemonIntOverride is the max_concurrent_tasks counterpart to
// resolveDaemonStringOverride. flagValue > 0 wins; otherwise the config
// value applies only when the env var is unset.
func resolveDaemonIntOverride(flagValue int, envName string, cfgValue int) int {
	if flagValue > 0 {
		return flagValue
	}
	if !envUnset(envName) {
		return 0
	}
	if cfgValue > 0 {
		return cfgValue
	}
	return 0

View on GitHub (pinned to 2c0912b6ec)

Solutions

  1. Set the config value to a positive duration.

When it happens

Trigger: Thrown at server/cmd/multica/cmd_daemon.go:1677 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of multica-ai/multica@2c0912b6ec (2026-08-15). Data as JSON: /api/errors/5254c6a22cf608cf. Report an issue: GitHub.