paperclipai/paperclip · error
Kubernetes ${input.label} failed (exit ${result.exitCode})${
Error message
Kubernetes ${input.label} failed (exit ${result.exitCode})${detail ? `: ${detail}` : ""} What it means
Error "Kubernetes ${input.label} failed (exit ${result.exitCode})${detail ? `: ${detail}` : ""}" thrown in paperclipai/paperclip.
Source
Thrown at packages/plugins/sandbox-providers/kubernetes/src/file-sync.ts:220
* never load-bearing.
*/
async function streamFileToPodStdin(input: {
exec: PodStreamExec;
script: string;
filePath: string;
timeoutMs: number;
label: string;
}): Promise<void> {
const source = createReadStream(input.filePath);
try {
const result = await input.exec(["/bin/sh", "-c", input.script], {
stdin: source,
timeoutMs: input.timeoutMs,
maxStderrBytes: SYNC_STDERR_CAP_BYTES,
});
if (result.exitCode !== 0) {
const detail = (result.stderr || "").trim();
throw new Error(
`Kubernetes ${input.label} failed (exit ${result.exitCode})${detail ? `: ${detail}` : ""}`,
);
}
} finally {
source.destroy();
}
}
/**
* Run the pod command over one exec and stream its stdout straight into a host
* file, guarding the byte count against `maxOutputBytes` so an untrusted pod
* cannot fill the host disk. Resolves only after the file is fully flushed, so a
* caller that reads it back always sees the complete archive; throws fail-loud on
* a non-zero exit, a tripped disk guard, or a stream error, writing no file the
* caller then trusts.
*/
async function streamPodStdoutToFile(input: {
exec: PodStreamExec;View on GitHub (pinned to 120ae5428f)
Solutions
- Inspect the exit code and detail in the message; fix the remote command and retry.
When it happens
Trigger: Thrown at packages/plugins/sandbox-providers/kubernetes/src/file-sync.ts:220 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of paperclipai/paperclip@120ae5428f (2026-08-18).
Data as JSON: /api/errors/2b4276d4dc804871.
Report an issue: GitHub.