multica-ai/multica · error
MULTICA_AGENT_TEMP_BASE must be an absolute path, got %q
Error message
MULTICA_AGENT_TEMP_BASE must be an absolute path, got %q
What it means
Error "MULTICA_AGENT_TEMP_BASE must be an absolute path, got %q" thrown in multica-ai/multica.
Source
Thrown at server/internal/daemon/daemon.go:8269
// 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) {
if runtime.GOOS == "windows" {
return socketSafeTempBaseDir(), false, nil
}
base := strings.TrimSpace(os.Getenv("MULTICA_AGENT_TEMP_BASE"))
if base == "" {
return socketSafeTempBaseDir(), false, nil
}
if !filepath.IsAbs(base) {
return "", true, fmt.Errorf("MULTICA_AGENT_TEMP_BASE must be an absolute path, got %q", base)
}
return base, true, nil
}
func socketSafeTempBaseDir() string {
if os.PathSeparator == '/' {
if info, err := os.Stat("/tmp"); err == nil && info.IsDir() {
return "/tmp"
}
}
return os.TempDir()
}
// isBlockedEnvKey returns true if the key must not be overridden by user-
// configured custom_env. This prevents accidental or malicious override of
// daemon-internal variables and critical system paths.
func isBlockedEnvKey(key string) bool {
upper := strings.ToUpper(key)View on GitHub (pinned to 2c0912b6ec)
Solutions
- Set MULTICA_AGENT_TEMP_BASE to an absolute path.
When it happens
Trigger: Thrown at server/internal/daemon/daemon.go:8269 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/166778a5833fdd31.
Report an issue: GitHub.