{"record":{"id":"2b4276d4dc804871","repo":"paperclipai/paperclip","slug":"kubernetes-input-label-failed-exit-result-ex","errorCode":null,"errorMessage":"Kubernetes ${input.label} failed (exit ${result.exitCode})${detail ? `: ${detail}` : \"\"}","messagePattern":"Kubernetes (.+?) failed \\(exit (.+?)\\)(.+?)` : \"\"\\}","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/plugins/sandbox-providers/kubernetes/src/file-sync.ts","lineNumber":220,"sourceCode":" * never load-bearing.\n */\nasync function streamFileToPodStdin(input: {\n  exec: PodStreamExec;\n  script: string;\n  filePath: string;\n  timeoutMs: number;\n  label: string;\n}): Promise<void> {\n  const source = createReadStream(input.filePath);\n  try {\n    const result = await input.exec([\"/bin/sh\", \"-c\", input.script], {\n      stdin: source,\n      timeoutMs: input.timeoutMs,\n      maxStderrBytes: SYNC_STDERR_CAP_BYTES,\n    });\n    if (result.exitCode !== 0) {\n      const detail = (result.stderr || \"\").trim();\n      throw new Error(\n        `Kubernetes ${input.label} failed (exit ${result.exitCode})${detail ? `: ${detail}` : \"\"}`,\n      );\n    }\n  } finally {\n    source.destroy();\n  }\n}\n\n/**\n * Run the pod command over one exec and stream its stdout straight into a host\n * file, guarding the byte count against `maxOutputBytes` so an untrusted pod\n * cannot fill the host disk. Resolves only after the file is fully flushed, so a\n * caller that reads it back always sees the complete archive; throws fail-loud on\n * a non-zero exit, a tripped disk guard, or a stream error, writing no file the\n * caller then trusts.\n */\nasync function streamPodStdoutToFile(input: {\n  exec: PodStreamExec;","sourceCodeStart":202,"sourceCodeEnd":238,"githubUrl":"https://github.com/paperclipai/paperclip/blob/120ae5428fa29bee300bcf806491cd4d965fbb7c/packages/plugins/sandbox-providers/kubernetes/src/file-sync.ts#L202-L238","documentation":"Error \"Kubernetes ${input.label} failed (exit ${result.exitCode})${detail ? `: ${detail}` : \"\"}\" thrown in paperclipai/paperclip.","triggerScenarios":"Thrown at packages/plugins/sandbox-providers/kubernetes/src/file-sync.ts:220 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Inspect the exit code and detail in the message; fix the remote command and retry."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"120ae5428fa29bee300bcf806491cd4d965fbb7c","analyzedAt":"2026-08-18T22:49:45.177Z","contentChangedAt":"2026-08-18T22:49:45.177Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}