multica-ai/multica · error
cannot resolve the state directory for profile %q
Error message
cannot resolve the state directory for profile %q
What it means
Error "cannot resolve the state directory for profile %q" thrown in multica-ai/multica.
Source
Thrown at server/cmd/multica/cmd_daemon.go:1533
return "default"
}
return profile
}
// daemonLogSourcePath resolves the daemon.log path for a profile —
// ~/.multica/daemon.log for the default profile,
// ~/.multica/profiles/<name>/daemon.log for a named one — and guarantees it is
// absolute, because this path is shown to the user to paste into an editor or
// another shell.
//
// A relative result means daemonDirForProfile could not resolve the home
// directory and swallowed the error, leaving a bare "daemon.log". That is
// reported instead of returned: it would resolve against the caller's cwd and
// name a file with nothing to do with the daemon.
func daemonLogSourcePath(profile string) (string, error) {
logPath := daemonLogPathForProfile(profile)
if !filepath.IsAbs(logPath) {
return "", fmt.Errorf("cannot resolve the state directory for profile %q", profileLabel(profile))
}
return logPath, nil
}
func runDaemonLogs(cmd *cobra.Command, _ []string) error {
if err := requireHumanLocalCommand("daemon logs"); err != nil {
return err
}
profile := resolveProfile(cmd)
if err := requireKnownProfile(profile); err != nil {
return err
}
logPath, err := daemonLogSourcePath(profile)
if err != nil {
return err
}
if _, err := os.Stat(logPath); os.IsNotExist(err) {
return fmt.Errorf("no log file found at %s\nThe daemon may not have been started in background mode", logPath)View on GitHub (pinned to 2c0912b6ec)
Solutions
- Check the profile name and daemon state directory configuration.
When it happens
Trigger: Thrown at server/cmd/multica/cmd_daemon.go:1533 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/4040abab9dbb995f.
Report an issue: GitHub.