Problem
runpod_deploy's workspace staging invokes rsync in SSH-transport mode
(rsync -az ... -e 'ssh ...' . root@host:/workspace/repo), which requires rsync
on both the local client and the remote container. Lean RunPod base images — e.g.
runpod/pytorch:2.4.0-py3.11-cuda12.4.1-devel-ubuntu22.04 — do not ship rsync, so
staging fails immediately:
bash: line 1: rsync: command not found
rsync error: error in rsync protocol data stream (code 12)
No GPU compute is consumed, but the failure mode is non-obvious and aborts the run.
Repro
- Use
runpod/pytorch:2.4.0-py3.11-cuda12.4.1-devel-ubuntu22.04 as the pod image.
- Run
run_job with any staging entry.
- Observe
CalledProcessError (exit 12) at the workspace-push step.
Workaround (currently required)
Add a setup step to the job spec to install rsync before staging:
setup:
- command: apt-get update -qq && apt-get install -y -qq rsync
timeout_sec: 120
~10 s of pod time; works, but is boilerplate noise in every spec targeting a lean image.
Suggested fix (pick one)
- (a) Document the rsync-on-remote requirement prominently in the quickstart/README.
- (b) Auto-install rsync as part of the SSH-ready validation step before staging fires.
- (c) Offer a
--transfer-mode scp|tar fallback for images without rsync.
Found while running a one-shot LoRA sweep (prompt-injection-portfolio Lane 1).
Problem
runpod_deploy's workspace staging invokesrsyncin SSH-transport mode(
rsync -az ... -e 'ssh ...' . root@host:/workspace/repo), which requiresrsyncon both the local client and the remote container. Lean RunPod base images — e.g.
runpod/pytorch:2.4.0-py3.11-cuda12.4.1-devel-ubuntu22.04— do not ship rsync, sostaging fails immediately:
No GPU compute is consumed, but the failure mode is non-obvious and aborts the run.
Repro
runpod/pytorch:2.4.0-py3.11-cuda12.4.1-devel-ubuntu22.04as the pod image.run_jobwith anystagingentry.CalledProcessError(exit 12) at the workspace-push step.Workaround (currently required)
Add a
setupstep to the job spec to install rsync before staging:~10 s of pod time; works, but is boilerplate noise in every spec targeting a lean image.
Suggested fix (pick one)
--transfer-mode scp|tarfallback for images without rsync.Found while running a one-shot LoRA sweep (prompt-injection-portfolio Lane 1).