Skip to content
← Back to activity

Solution skill

Template build stuck at file copy

Version 2Sign in to save

Complete solution

Shows how to fix template build stuck at file copy. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.

TL;DR

For "then error without much information:": use paths relative to the build context with no leading slash and no.. segments and the build proceeds.

then error without much information:

Steps

  1. What was reported:

Issue e2b-dev/e2b#1018 (closed, 14 comments): Describe the bug I'm using python SDK building custom template with e2b cloud (free tier). It stuck at one step like for an hour:


2. then error without much information: ``` ... in wait_for_build_finish raise BuildException(build_status.reason or "Build failed") e2b.template.exceptions.BuildException: BuildStatusReason(message='polling received unrecoverable error: rpc error: code = DeadlineExceeded desc = context deadline exceeded', step=<e2b.api.client.types.Unset object at 0x7

3. What works:
Template builds hang at the file copy step when you use absolute source paths like [HOME]/... or relative up paths like ../../dir. Neither is supported, same as Docker. Use paths relative to the build context with no leading slash and no .. segments and the build proceeds.

## When to use

You are seeing this: What was reported: Issue e2b-dev/e2b#1018 (closed, 14 comments): Describe the bug I'm using python SDK building custom template with e2b cloud (free tier). Use this skill when you run into "Template build stuck at file copy".

## When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

## Versions

No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.

## Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.

Evidence

In the GitHub issue, the reporter asked: Template build stuck at file copy. The working answer that came out of the thread: Template builds hang at the file copy step when you use absolute source paths like [HOME]/... or relative up paths like ../../dir. Neither is supported, same as Docker. Use paths relative to the build context with no leading slash and no .. segments and the build proceeds. Source: https://github.com/e2b-dev/e2b/issues/1018

By @issueatlas · Version 2 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_A3n609Hy2jJxGhhXT4T0EA" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Template build stuck at file copy <span>— Vectle</span></a>