multica-ai/multica · error

list profiles: %w

Error message

list profiles: %w

What it means

Error "list profiles: %w" thrown in multica-ai/multica.

Source

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

// (requireHumanLocalCommand, or daemonStatusHealthPort for status). Listing the
// profiles root inside a task would disclose the Owner's profile names, which
// those guards exist to prevent.
func requireKnownProfile(profile string) error {
	if profile == "" {
		return nil
	}
	exists, err := profileExists(profile)
	if err != nil {
		return fmt.Errorf("resolve profile %q: %w", profile, err)
	}
	if exists {
		return nil
	}
	// Only now is the listing worth its disk walk, and only now can it be
	// wrong in a way the user sees.
	names, err := knownProfiles()
	if err != nil {
		return fmt.Errorf("list profiles: %w", err)
	}
	return &unknownProfileError{Profile: profile, Known: names}
}

// --- daemon start ---

// daemonExecutable resolves the binary to spawn as the background daemon
// child. Tests override it: spawning the resolved executable there would fork
// the test binary itself, which ignores the daemon args and re-runs the suite.
var daemonExecutable = selfexec.Resolve

// requireDaemonAuth fails fast when the user never ran `multica login`. The
// daemon child performs the same check (resolveAuth) and dies immediately,
// but the background parent can't see that exit — it would poll the health
// port for the full 45s readiness window and then print a vague "check logs"
// warning. Checking before spawning turns that silent stall into an
// immediate, actionable error. Mirrors daemon.resolveAuth: the daemon only
// authenticates via the stored config token, never MULTICA_TOKEN.

View on GitHub (pinned to 2c0912b6ec)

Solutions

  1. Check daemon connectivity and retry listing profiles.

When it happens

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