Foundational Compute

Troubleshooting

Find the message, then do the fix. If you do not know where the fault is, run fdtn doctor first.

Install fails

The install line prints fdtn install: and the reason. Nothing is installed when it stops.

MessageFix
Node.js 22.19 or newer is missing., npm is missing. or Node.js v20... is too old.Install Node.js 22.19 or newer from nodejs.org. Open a new terminal and run the install line again.
curl is not installed.Install curl with your package manager.
npm cannot write to ...Do the steps that the message prints, or install Node.js with nvm, fnm or Homebrew.
Installed fdtn. Your shell does not find it yet or fdtn: command not foundRun the line that the message prints, then open a new terminal.
the checksum of ... does not match.A proxy changed the download. Try another network.

Run fdtn doctor

$ fdtn doctor            # check the key, DNS, TLS and API access
$ fdtn doctor --create   # also start a small sandbox, run a command in it, and stop it
$ fdtn doctor --json     # print the result as JSON
✓ api key: from key file, starts with fdtn_, 45 characters
✓ dns: api.sbx.fdtn.dev -> 203.0.113.10
✓ tls: certificate for api.sbx.fdtn.dev accepted
✓ key accepted: listed your sandboxes
- sandbox round trip: run with --create to start and stop a small sandbox

Doctor stops at the first failure and prints a fix: line. It never prints the key. Exit code 0 means all checks pass.

ResultFix
✗ api key: no key on this computerRun fdtn auth.
! api keyThe key has the wrong format. Copy it again and run fdtn auth --replace.
✗ dns: cannot resolve api.sbx.fdtn.devCheck your VPN or DNS filter. Unset FDTN_DOMAIN.
✗ tlsCorrect the system clock, or set NODE_EXTRA_CA_CERTS to your proxy's CA file.
✗ key accepted: request failedAllow api.sbx.fdtn.dev and *.sbx.fdtn.dev on port 443.
✗ key accepted: key refused (HTTP 401) or (HTTP 403)The key is wrong, revoked or expired. Create a new key, then fdtn auth --replace.
✗ key accepted: HTTP 5xxTry again in a minute, then contact support.
✗ sandbox round tripRead the detail. See Create fails or waits.

Keys and sign-in

MessageFix
No API key on this computer. (CLI) or No Foundational Compute API key found (SDK)Run fdtn auth, set FDTN_API_KEY, or pass the key in code.
401 on every call, or The key in ... does not work any more.The key is revoked or expired. Create a new key, then fdtn auth --replace or update FDTN_API_KEY.
~/.fdtn/key can be read by other users.Run chmod 600 ~/.fdtn/key.
~/.fdtn/key belongs to another user.Run sudo chown $(id -u) ~/.fdtn/key.
Key saved, but the service refused it.Copy the key again, then fdtn auth --replace.
FDTN_API_KEY is set in this shell. It wins over the saved key.Run unset FDTN_API_KEY, or put the new key in it.
Cannot reach api.sbx.fdtn.devRun fdtn doctor.

Workspace and billing

These come with 403 on create or resume. See Limits and billing.

MessageFix
Your credit is spent. Buy credits on the Billing page to ...Buy credit on the Billing page. Then resume paused sandboxes.
You have reached your sandbox monthly spend cap of $50.00.Running sandboxes pause too. Raise the limit on the Billing page (up to $1,000), then resume.
You have reached your build monthly spend cap of ...Raise the builds limit on the Billing page.
A payment failed or is disputed. Open the Billing page to start sandboxes again.Fix the payment on the Billing page, then resume.
This account is suspended. Contact support.Email support@fdtn.dev.
Account data is temporarily unavailable.Try again in a few minutes.

Create fails or waits

Message or symptomFix
Create shows nothing for a long timeThe first start of a template on a machine can take up to a minute. fdtn sandbox logs <id> shows logs.
httpx.ReadTimeout (Python) or TimeoutError (TypeScript) after 60 secondsThe create waits in the queue longer than the SDK waits. Set request_timeout=1800 (Python) or requestTimeoutMs: 1_800_000 (TypeScript).
404 template_not_availableUse a template name that the message lists.
404: Template "<name>" not found.Use base, small, claude or your own template (fdtn template ls). A new snapshot can take some seconds to appear.
429 sandbox_queue_full200 of your creates already wait. Wait the seconds in Retry-After.
503 sandbox_capacity_unavailable: No capacity became free within 30m0s.Start fewer at the same time, and try again.
503 sandbox_capacity_unavailable: No capacity is free right now.Try again in a few seconds.
500 or 502 on create or resumeTry again. Contact support after three failures.
400 timeout cannot be greater than 86400 seconds.Set 86,400 seconds (24 hours) or less.
400 after you set vcpu or ram_gibRemove them. The template sets the size.
Cannot use import statement outside a moduleName the file .mjs, or set "type": "module" in package.json.

Running sandboxes

SymptomFix
No sandbox has the name ... right after a createWait a few seconds, or use the ID that fdtn create -d printed.
A command prints Killed or exits with 137The sandbox ran out of memory. base has 512 MiB. Build a template with more memory (fdtn template create --memory-mb 2048). Templates
Cannot copy through the symbolic link /tmpOn macOS, write /private/tmp.
Resume fails with 429: You are at your concurrency limit.A resume does not queue. Stop or pause a sandbox, then resume.
The sandbox ends before the jobThe lifetime ended (default 300 seconds). Set a longer timeout, or extend it with set_timeout.
Running sandboxes become pausedA spending limit or failed payment. Fix it on the Billing page, then resume.
A paused sandbox is gonePaused sandboxes are deleted after 72 hours. Resume before then, or save a snapshot.
Pause or snapshot fails with 429You hold more than 100 GiB of paused memory. Kill paused sandboxes or delete snapshots.
A port URL returns 403Send the traffic token in the e2b-traffic-access-token header, or create with --public.
Mail does not sendPorts 25, 465 and 587 are blocked. Use an email API over HTTPS.
Commands fail after a good startAllow *.sbx.fdtn.dev on port 443; wildcard DNS must resolve.

Templates

SymptomFix
A build failsRead the log that fdtn template create prints, or run fdtn template build logs <template-id> <build-id>.
413 on file uploadA file layer is over 1 GiB. Split the files, or download large files in a build step.

Harbor errors: Evals with Harbor.

Get help

Send support the output of fdtn doctor --create, the sandbox ID, the time of the failure with time zone, and the error message. Never send your API key.

Next