multica-ai/multica · error

config value %q for %s must be >= 0

Error message

config value %q for %s must be >= 0

What it means

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

Source

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

//     valid here (it's the "disabled" sentinel).
//  4. Otherwise -> nil, LoadConfig applies DefaultAgentTimeout.
func resolveDaemonAgentTimeoutOverride(cmd *cobra.Command, envName string, cfgValue *string) (*time.Duration, error) {
	if cmd.Flags().Changed("agent-timeout") {
		d, _ := cmd.Flags().GetDuration("agent-timeout")
		return &d, nil
	}
	if !envUnset(envName) {
		return nil, nil
	}
	if cfgValue == nil || *cfgValue == "" {
		return nil, nil
	}
	parsed, err := time.ParseDuration(strings.TrimSpace(*cfgValue))
	if err != nil {
		return nil, fmt.Errorf("config value %q for %s is not a valid duration: %w", *cfgValue, envName, err)
	}
	if parsed < 0 {
		return nil, fmt.Errorf("config value %q for %s must be >= 0", *cfgValue, envName)
	}
	return &parsed, nil
}

// resolveDaemonDisableSignal resolves a single-direction disable signal —
// auto-update (--no-auto-update) and auto-reload (--no-auto-reload) share the
// shape. Precedence, using auto-update as the example:
//
//  1. --no-auto-update flag passed -> disable.
//  2. MULTICA_DAEMON_AUTO_UPDATE explicitly set to a falsy value ->
//     disable. Env values other than false/0/no/off are handled inside
//     daemon.LoadConfig (they may enable auto-update on self-host, which
//     is not something we can express via CLI overrides today).
//  3. config.json disable_auto_update=true (only when both flag and env
//     are silent) -> disable.
//  4. Otherwise -> leave the override off; LoadConfig picks the default.
func resolveDaemonDisableSignal(flagValue bool, envName string, cfgValue bool) bool {
	if flagValue {

View on GitHub (pinned to 2c0912b6ec)

Solutions

  1. Set the config value to a number >= 0.

When it happens

Trigger: Thrown at server/cmd/multica/cmd_daemon.go:1727 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/f741e991e790a08e. Report an issue: GitHub.