zeroclaw-labs/zeroclaw · error
All copy methods failed. Run this command manually, then res
Error message
All copy methods failed. Run this command manually, then restart ZeroClaw:\n\n sudo cp {src_str} {dst_str}\n What it means
Error "All copy methods failed. Run this command manually, then restart ZeroClaw:\n\n sudo cp {src_str} {dst_str}\n" thrown in zeroclaw-labs/zeroclaw.
Source
Thrown at crates/zeroclaw-hardware/src/uf2.rs:250
::zeroclaw_log::record!(
WARN,
::zeroclaw_log::Event::new(module_path!(), ::zeroclaw_log::Action::Note)
.with_outcome(::zeroclaw_log::EventOutcome::Unknown),
&format!("sudo cp failed: {}", stderr.trim())
);
}
Ok(Err(e)) => ::zeroclaw_log::record!(
WARN,
::zeroclaw_log::Event::new(module_path!(), ::zeroclaw_log::Action::Note)
.with_outcome(::zeroclaw_log::EventOutcome::Unknown)
.with_attrs(::serde_json::json!({"error": format!("{}", e)})),
"sudo cp spawn failed"
),
}
}
// ── All attempts failed — give the user a clear manual command ────────────
bail!(
"All copy methods failed. Run this command manually, then restart ZeroClaw:\n\
\n sudo cp {src_str} {dst_str}\n"
)
}
/// Wait for `/dev/cu.usbmodem*` (macOS) or `/dev/ttyACM*` (Linux) to appear.
/// Polls every `interval` for up to `timeout`. Returns the first matching path
/// found, or `None` if the deadline expires.
pub async fn wait_for_serial_port(
timeout: std::time::Duration,
interval: std::time::Duration,
) -> Option<PathBuf> {
#[cfg(target_os = "macos")]
let patterns = &["/dev/cu.usbmodem*"];
#[cfg(target_os = "linux")]
let patterns = &["/dev/ttyACM*"];
#[cfg(not(any(target_os = "macos", target_os = "linux")))]
let patterns: &[&str] = &[];View on GitHub (pinned to 88bb9c8533)
Solutions
- Run the printed sudo cp command manually to copy the UF2 to the Pico, then restart ZeroClaw.
When it happens
Trigger: Thrown at crates/zeroclaw-hardware/src/uf2.rs:250 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of zeroclaw-labs/zeroclaw@88bb9c8533 (2026-08-23).
Data as JSON: /api/errors/9ec115e61ff1edf3.
Report an issue: GitHub.