{"record":{"id":"cc013ae69b2948c1","repo":"pbakaus/impeccable","slug":"no-running-live-server-found-start-one-with-cmd","errorCode":null,"errorMessage":"No running live server found. Start one with: {cmd}\n","messagePattern":"No running live server found\\. Start one with: (.+?)\n","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/live/src/live_poll.rs","lineNumber":693,"sourceCode":"        None => default,\n    }\n}\n\npub fn run(args: &[String], io: &mut Io) -> i32 {\n    let mut argv: Vec<String> = args.to_vec();\n    if let Err(code) = enter_live_root(&mut argv, io) {\n        return code;\n    }\n    let cwd = io.cwd.to_string_lossy().into_owned();\n    let env = io.env.clone();\n\n    if argv.iter().any(|a| a == \"--help\" || a == \"-h\") {\n        println(io, HELP);\n        return 0;\n    }\n\n    let Some((info, _)) = read_live_server_info(&cwd, &env) else {\n        io.err(&format!(\n            \"No running live server found. Start one with: {}\\n\",\n            script_cmd(&env, &cwd, \"live\")\n        ));\n        return 1;\n    };\n    let port = info\n        .raw\n        .get(\"port\")\n        .map(js_display)\n        .unwrap_or_else(|| \"undefined\".to_string());\n    let token = info\n        .raw\n        .get(\"token\")\n        .map(js_display)\n        .unwrap_or_else(|| \"undefined\".to_string());\n    let base = format!(\"http://localhost:{}\", port);\n\n    if argv.iter().any(|a| a == \"--reply\") {","sourceCodeStart":675,"sourceCodeEnd":711,"githubUrl":"https://github.com/pbakaus/impeccable/blob/2bc2879276c1f321a53c4ca99d3371e411329b52/crates/live/src/live_poll.rs#L675-L711","documentation":"The `impeccable live-poll` command requires a running live-mode server in the current workspace. Before doing any work it reads the server info file (written by `live` when it starts); if that file is absent or stale, it prints this message and exits 1. It is an intentional early-exit, not a crash.","triggerScenarios":"Running `live-poll` (with or without --reply/--stream) when `read_live_server_info(&cwd, &env)` returns None — i.e. no live server was ever started in this cwd, or its info file was deleted.","commonSituations":"Running live-poll from a different working directory than the one where the live server was started; the server crashed or was killed leaving no info file; invoking live-poll before ever running `live`; a stale checkout or container where the session file does not exist.","solutions":["Start the live server first: run the `live` command printed in the error message (the script_cmd for your environment).","Re-run live-poll from the same working directory where the live server session was created.","If a server was previously started but crashed, start it again to regenerate the server info file."],"exampleFix":"// before\n$ impeccable live-poll\nNo running live server found. Start one with: ./scripts/impeccable live\n// after\n$ ./scripts/impeccable live &\n$ impeccable live-poll","handlingStrategy":"validation","validationCode":"// shell: only poll if the server info file exists in this cwd\n[ -f .impeccable/live-server.json ] && impeccable live-poll || { echo 'start live first'; ./scripts/impeccable live; }","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Always start the live server (`live`) before any live-poll invocation.","Run all live-mode commands from the same working directory the session was created in.","Check for the server info file's existence in scripts before polling."],"tags":["cli","live-server","process-lifecycle"],"backgroundTag":"connection-refused","analyzedSha":"2bc2879276c1f321a53c4ca99d3371e411329b52","analyzedAt":"2026-09-08T04:51:14.109Z","contentChangedAt":"2026-09-08T04:51:14.109Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}