Common symptoms
- The sandbox appears to be created but immediately fails or is deleted
- Requests to the sandbox return a
404 Not Founderror
Root cause
The template does not have a functional entrypoint that keeps the sandbox API running. Even when your container runs commands on demand, the sandbox API must remain active for the sandbox to work.Configure the entrypoint
Always copy the sandbox API binary into your custom image:RUN instruction:
sandbox-api, wait for it to become available, and then start other processes through the /process API. End the script with wait so the container remains alive.
Additional considerations
For templates designed to run commands on demand:- Keep a process running to maintain the sandbox API connection
- Run commands with
sandbox.process.execwhile the entrypoint remains active - Remember that a sandbox snapshots its entire VM state, including memory, filesystem data, and running processes, when it enters standby
- Expect the sandbox to restore from standby in under 25 ms
Sandbox overview
Learn how Blaxel sandboxes run and manage workloads.
Sandbox processes
Learn how to execute and manage sandbox processes.