{"record":{"id":"6c679d08c4075091","repo":"multica-ai/multica","slug":"resolve-executable-path-w","errorCode":null,"errorMessage":"resolve executable path: %w","messagePattern":"resolve executable path: %w","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"server/cmd/multica/cmd_daemon.go","lineNumber":584,"sourceCode":"\t\tif err := daemonIdentityMismatch(health, profile, healthPort); err != nil {\n\t\t\treturn err\n\t\t}\n\t\tlabel := \"daemon\"\n\t\tif profile != \"\" {\n\t\t\tlabel = fmt.Sprintf(\"daemon [%s]\", profile)\n\t\t}\n\t\tpid, _ := health[\"pid\"].(float64)\n\t\treturn fmt.Errorf(\"%s is already running (pid %v). Use 'daemon restart' to restart it\", label, int(pid))\n\t}\n\n\tif err := requireDaemonAuth(profile); err != nil {\n\t\treturn err\n\t}\n\n\t// Resolve current executable so the foreground child reuses this binary.\n\texePath, err := daemonExecutable()\n\tif err != nil {\n\t\treturn fmt.Errorf(\"resolve executable path: %w\", err)\n\t}\n\n\t// Build child args: daemon start --foreground + forwarded flags.\n\targs := buildDaemonStartArgs(cmd)\n\n\t// Ensure daemon directory exists.\n\tdir := daemonDirForProfile(profile)\n\tif err := os.MkdirAll(dir, 0o755); err != nil {\n\t\treturn fmt.Errorf(\"create daemon directory: %w\", err)\n\t}\n\n\t// The child (foreground daemon) writes daemon.log itself through a\n\t// rotating writer; its inherited stdout/stderr only need to catch raw\n\t// crash output, which goes to a separate, non-rotated sink so it never\n\t// holds daemon.log open (see daemonStderrLogPathForProfile).\n\terrLogPath := daemonStderrLogPathForProfile(profile)\n\tlogFile, err := openBoundedErrLog(errLogPath)\n\tif err != nil {","sourceCodeStart":566,"sourceCodeEnd":602,"githubUrl":"https://github.com/multica-ai/multica/blob/2c0912b6ec764b373d44eeea1e80f0d9f11ab417/server/cmd/multica/cmd_daemon.go#L566-L602","documentation":"Error \"resolve executable path: %w\" thrown in multica-ai/multica.","triggerScenarios":"Thrown at server/cmd/multica/cmd_daemon.go:584 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Reinstall the CLI; the executable path could not be resolved."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"2c0912b6ec764b373d44eeea1e80f0d9f11ab417","analyzedAt":"2026-08-15T13:25:18.241Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}