# 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. | Message | Fix | |---|---| | `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](https://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 found` | Run 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 ```bash $ 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. | Result | Fix | |---|---| | `✗ api key: no key on this computer` | Run `fdtn auth`. | | `! api key` | The key has the wrong format. Copy it again and run `fdtn auth --replace`. | | `✗ dns: cannot resolve api.sbx.fdtn.dev` | Check your VPN or DNS filter. Unset `FDTN_DOMAIN`. | | `✗ tls` | Correct the system clock, or set `NODE_EXTRA_CA_CERTS` to your proxy's CA file. | | `✗ key accepted: request failed` | Allow `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 5xx` | Try again in a minute, then contact support. | | `✗ sandbox round trip` | Read the detail. See [Create fails or waits](#create). | ## Keys and sign-in | Message | Fix | |---|---| | `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.dev` | Run `fdtn doctor`. | ## Workspace and billing These come with `403` on create or resume. See [Limits and billing](https://fdtn.dev/docs/limits.md). | Message | Fix | |---|---| | `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 symptom | Fix | |---|---| | Create shows nothing for a long time | The first start of a template on a machine can take up to a minute. `fdtn sandbox logs ` shows logs. | | `httpx.ReadTimeout` (Python) or `TimeoutError` (TypeScript) after 60 seconds | The create waits in the queue longer than the SDK waits. Set `request_timeout=1800` (Python) or `requestTimeoutMs: 1_800_000` (TypeScript). | | `404 template_not_available` | Use a template name that the message lists. | | `404`: `Template "" 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_full` | 200 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 resume | Try 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_gib` | Remove them. The template sets the size. | | `Cannot use import statement outside a module` | Name the file `.mjs`, or set `"type": "module"` in `package.json`. | ## Running sandboxes | Symptom | Fix | |---|---| | `No sandbox has the name ...` right after a create | Wait a few seconds, or use the ID that `fdtn create -d` printed. | | A command prints `Killed` or exits with `137` | The sandbox ran out of memory. `base` has 512 MiB. Build a template with more memory (`fdtn template create --memory-mb 2048`). [Templates](https://fdtn.dev/docs/templates.md) | | `Cannot copy through the symbolic link /tmp` | On 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 job | The lifetime ended (default 300 seconds). Set a longer `timeout`, or extend it with `set_timeout`. | | Running sandboxes become paused | A spending limit or failed payment. Fix it on the Billing page, then resume. | | A paused sandbox is gone | Paused sandboxes are deleted after 72 hours. Resume before then, or save a snapshot. | | Pause or snapshot fails with `429` | You hold more than 100 GiB of paused memory. Kill paused sandboxes or delete snapshots. | | A port URL returns `403` | Send the traffic token in the `e2b-traffic-access-token` header, or create with `--public`. | | Mail does not send | Ports 25, 465 and 587 are blocked. Use an email API over HTTPS. | | Commands fail after a good start | Allow `*.sbx.fdtn.dev` on port 443; wildcard DNS must resolve. | ## Templates | Symptom | Fix | |---|---| | A build fails | Read the log that `fdtn template create` prints, or run `fdtn template build logs `. | | `413` on file upload | A file layer is over 1 GiB. Split the files, or download large files in a build step. | Harbor errors: [Evals with Harbor](https://fdtn.dev/docs/harbor.md#errors). ## 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 - [**Limits and billing**: Running and spending limits.](https://fdtn.dev/docs/limits.md) - [**FAQ**: Short answers to questions.](https://fdtn.dev/docs/faq.md) - [**CLI reference**: The main commands and their options.](https://fdtn.dev/docs/cli.md) Source: https://fdtn.dev/docs/troubleshooting/