In short.
E2B’s Reboot on resume is a guide for developers restarting paused sandboxes from saved disk state, but recovery loses memory-only state and unflushed writes. It documents how connect() can bypass a problematic memory snapshot, including one captured while a sandbox was unresponsive. Ordinary memory restoration remains the default and is documented as faster. Developers must pause again to preserve the rebooted state, and older self-hosted control planes can silently ignore the option. No code, recovery behavior or performance was tested.
Researched and written by an AI model and checked by a second AI model. How it works
Coverage includes the complete selected page at [https://docs.e2b.dev/sandbox/resume-without-memory.md], including its examples, comparison table, notes, warnings, failure behavior and self-hosting caveats. The documentation index and related links are references only; their destinations are excluded. No code was executed. Recovery outcomes, application consistency, compatibility and performance were not independently assessed; financial costs and reuse rights remain unknown.
The overview
Identity
The resource is E2B’s documentation page titled Reboot on resume at [https://docs.e2b.dev/sandbox/resume-without-memory.md]. It teaches a specific sandbox persistence feature through explanations, a restore-versus-reboot comparison and JavaScript/TypeScript and Python examples.
Assessment
The guide is useful when recovering files matters more than continuing the previous running session. Its strongest contribution is explaining the tradeoff: bypassing a problematic memory image can make recovery possible, but it cannot recover work that existed only in RAM.
A practical fit therefore depends on whether important data was flushed to disk and whether the application can restart without its previous processes, caches and connections. The page does not establish successful application recovery in every failure scenario.
Users
The main audience is developers managing E2B sandbox lifecycles through JavaScript/TypeScript or Python. It is particularly relevant to people handling out-of-memory incidents, unresponsive sandboxes or snapshots created by automatic pausing.
Beginners get an explanation of what survives on disk versus in memory. Experienced developers get exact API options, error identifiers, lifecycle edge cases and self-hosting caveats.
Capabilities
A reboot resume skips the saved memory image and boots from disk. The page describes this as a recovery route when restoring memory would bring back out-of-memory pressure and potentially hang. It also applies to memory-inclusive snapshots created by automatic pausing on timeout.
For a sandbox paused while unresponsive, ordinary connect() is refused with HTTP 409 and error code sandbox_snapshot_guest_agent_unresponsive. The page identifies reboot as the available resume route and says this recovery is available to every team without enablement. Self-hosted deployments have separate compatibility caveats.
Using it
Requirements
The examples require an existing sandbox identifier and the e2b JavaScript/TypeScript or Python SDK. A reboot actually drops saved memory only when the sandbox is paused with a memory-inclusive snapshot. SDK installation and authentication instructions are not provided.
SDK 2.63.0 and later expose the unresponsive-snapshot refusal as GuestUnresponsiveError in JavaScript or GuestUnresponsiveException in Python. This version statement concerns those named exceptions; the page does not establish a minimum SDK version for the reboot option itself.
Self-hosted deployments need a control plane that both understands and enables the option. The minimum compatible control-plane release is unspecified.
Mechanism
Normal restoration reloads the saved RAM state. Reboot instead mounts the saved disk and starts the sandbox again, so previous processes, caches and in-sandbox connections do not return.
The page describes crash-recovery behavior comparable to a sudden power loss. Filesystem metadata is repaired during mounting, but unflushed writes are discarded. Files may be partially written, and a database may need to replay its recovery log. A file written without sync should be assumed lost.
Connections from clients outside the sandbox drop when it pauses and must be re-established after either kind of resume. Bypassing memory leaves the snapshot untouched; if reboot fails to boot, the sandbox remains paused and the snapshot can be retried or restored normally.
Setup
In JavaScript or TypeScript, import Sandbox from e2b and call await Sandbox.connect(sandboxId, { onResume: 'reboot' }). In Python, use from e2b import Sandbox and call Sandbox.connect(sandbox_id, on_resume="reboot"). Omitting the option uses restore, the existing memory-restoration behavior.
If the sandbox is already running, pause it before connecting with the reboot option. If a start is already in progress, let it finish, then pause and request reboot. These are documented usage instructions; the examples were not executed.
Example
The page’s recovery example connects with reboot, reads /home/user/important.txt through sbx.files.read(), and then pauses the sandbox. JavaScript awaits these operations; the Python example uses synchronous calls. The read can recover saved file contents only to the extent that those contents were flushed before the original pause.
Pausing again records a new snapshot of the recovered state. The page says the original snapshot’s memory is no longer reachable once the rebooted sandbox is running. If it later reaches its timeout without being paused, the rebooted state is discarded and the sandbox reverts to the original snapshot, including its memory.
Killing the sandbox removes its resume path. The page specifically warns that exiting a Python sandbox context manager kills it, so that lifecycle behavior matters when trying to retain recovered work.
Assessment & evidence
Limitations
The option is ignored for an already-running sandbox. connect() also does not shorten its lifetime: expiry becomes the later of its existing expiry and the current time plus the supplied timeout.
A reboot that would drop memory is refused while another start is in progress. Automatic resume triggered by inbound traffic can create this situation without an explicit connect() call from the developer.
On a self-hosted control plane that recognizes the option but has it disabled, a request that would drop memory fails explicitly. An older control plane may instead ignore the option, restore memory and return success. A successful connection alone therefore does not establish that reboot occurred.
Reasoning
The feature’s practical value comes from making the recovery choice at resume time. A developer can bypass memory in an existing snapshot, including one created automatically, without having chosen a disk-only snapshot beforehand.
This makes reboot a plausible fit for applications that can restart from durable files. Ordinary restoration better matches work that depends on live process state or unsaved memory. The reboot option is documented as a recovery mechanism, not a speed improvement.
Alternatives
The direct alternative is the default restore mode, which brings back memory, running processes and unflushed writes from the snapshot. It is documented as faster, but it can also restore the memory pressure that caused trouble.
Filesystem-only snapshots make a different choice when pausing: they never capture memory and already reboot on every resume. Passing the reboot option to one changes nothing and is documented as harmless. Details beyond this page’s comparison, and alternatives from other providers, were not assessed.
Evidence
The evidence is the complete documentation page at [https://docs.e2b.dev/sandbox/resume-without-memory.md], identified by source revision sha256:8b4b9526f34695d10d8411d47f76bb1bb189dc8b10e91a635e8ebc62d98597f8. It contains explanations, API examples, state comparisons and operational warnings.
No execution results, independent recovery measurements or application-specific consistency checks accompany the page. Its linked documentation was not assessed, so claims here are limited to what this page itself establishes.
Access & freshness
Costs
Prices, billing units, storage charges and plan limits are not given. The financial cost of rebooting, retaining snapshots or running the recovered sandbox is unknown.
For latency, the documentation estimates a memory restore at about one second and a reboot at roughly the time of a fresh boot. These are source claims, not measured results; no workload-specific timing or cost comparison is available.
Rights
The selected page provides no explicit documentation licence, code-example licence or redistribution grant. Permission to redistribute the page or its examples is therefore not established by this evidence. Broader SDK licences and service terms were not assessed.
Freshness
The page was captured on 15 November 2026 at 04:49:27.188 UTC. It provides no publication date or last-updated date, so its release chronology and any changes after capture are unknown.
The explicit SDK version reference is 2.63.0 for named unresponsive-guest exceptions. It does not establish the latest SDK release or identify the first compatible self-hosted control-plane version.
Actions
Before choosing reboot, determine whether the application can tolerate losing its previous memory and processes. For future pauses, flush important writes to disk; for an already-paused snapshot, assume unflushed data will be lost through reboot.
After reboot, recover needed files, restart application processes and re-establish connections as required. Pause again before timeout to retain the recovered state.
For self-hosted deployments, establish control-plane compatibility before relying on the option. Because older control planes can report success after ignoring it, verification needs to establish that memory was actually skipped.
