multica-ai/multica · error

MULTICA_AGENT_TEMP_BASE: create task temp dir: %w

Error message

MULTICA_AGENT_TEMP_BASE: create task temp dir: %w

What it means

Error "MULTICA_AGENT_TEMP_BASE: create task temp dir: %w" thrown in multica-ai/multica.

Source

Thrown at server/internal/daemon/daemon.go:8242

	if envRoot == "" {
		return "", errors.New("env root is empty")
	}
	workspaceID = strings.TrimSpace(workspaceID)
	if workspaceID == "" {
		return "", errors.New("workspace id is empty")
	}
	taskID = strings.TrimSpace(taskID)
	if taskID == "" {
		return "", errors.New("task id is empty")
	}
	base, overrideConfigured, err := taskTempBaseDir()
	if err != nil {
		return "", err
	}
	dir, err := os.MkdirTemp(base, "multica-task-")
	if err != nil {
		if overrideConfigured {
			return "", fmt.Errorf("MULTICA_AGENT_TEMP_BASE: create task temp dir: %w", err)
		}
		return "", err
	}
	if err := os.Chmod(dir, 0o700); err != nil {
		return "", err
	}
	return dir, nil
}

// taskTempBaseDir resolves the parent directory for private per-task temp
// dirs on Linux and macOS. The daemon operator can relocate it with
// MULTICA_AGENT_TEMP_BASE, which must be an absolute path to an existing,
// writable directory; an invalid value fails task startup instead of silently
// falling back. Windows ignores the variable. Unset keeps the platform default
// exactly as before, down to the syscalls made.
// Operators should pick a short path: child tools may bind AF_UNIX sockets
// under $TMPDIR (sun_path is 108 bytes on Linux, 104 on macOS).
func taskTempBaseDir() (string, bool, error) {

View on GitHub (pinned to 2c0912b6ec)

Solutions

  1. Check that MULTICA_AGENT_TEMP_BASE exists and is writable.

When it happens

Trigger: Thrown at server/internal/daemon/daemon.go:8242 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/1726bface3fa2252. Report an issue: GitHub.