multica-ai/multica · error

--all-profiles and --workspaces-root are mutually exclusive

Error message

--all-profiles and --workspaces-root are mutually exclusive

What it means

Error "--all-profiles and --workspaces-root are mutually exclusive" thrown in multica-ai/multica.

Source

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

	byWorkspace, _ := cmd.Flags().GetBool("by-workspace")
	byTask, _ := cmd.Flags().GetBool("by-task")
	top, _ := cmd.Flags().GetInt("top")
	output, _ := cmd.Flags().GetString("output")
	allProfiles, _ := cmd.Flags().GetBool("all-profiles")

	if taskContext {
		if err := checkTaskDiskUsageScope(profile, rootOverride, allProfiles); err != nil {
			return err
		}
	}
	if byWorkspace && byTask {
		return fmt.Errorf("--by-workspace and --by-task are mutually exclusive")
	}
	if top < 0 {
		return fmt.Errorf("--top must be a non-negative integer")
	}
	if allProfiles && rootOverride != "" {
		return fmt.Errorf("--all-profiles and --workspaces-root are mutually exclusive")
	}

	if allProfiles {
		return runDaemonDiskUsageAggregate(cmd, byWorkspace, top, output)
	}

	workspacesRoot, err := resolveDiskUsageRoot(taskContext, profile, rootOverride)
	if err != nil {
		return fmt.Errorf("resolve workspaces root: %w", err)
	}

	report, err := daemon.ScanDiskUsage(workspacesRoot, daemon.ArtifactPatternsFromEnv())
	if err != nil {
		return err
	}
	// Resolve before --top trims the slice: the batch endpoint costs the same
	// either way, and the JSON consumer sees statuses for everything it gets.
	// Skipped in a task: the fetcher authenticates with the Owner profile's

View on GitHub (pinned to 2c0912b6ec)

Solutions

  1. Use either --all-profiles or --workspaces-root, not both.

When it happens

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