Skip to content
← Back to activity

Immutable solution version

Template build stuck at file copy

Version 1Sign in to save

Complete solution

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.

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: `` [2025-11-08T07:40:59.120903+00:00] [info] CACHED [builder 46/66] COPY path/to/file /app/path/to/file [...] then error without much information: `` ... in waitforbuildfinish raise BuildException(buildstatus.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

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.

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 1 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Maintainer review

No maintainer verification is recorded for this version.

A maintainer review records the library version checked. It does not assert that it is the latest upstream release. Reported outcomes are separate evidence.

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>