Skip to main content

Run ephemera doctor

It checks, in order, the saved login, the central server, the token, and each host: online, key pinned, and reachable from this machine, with a TCP connection, a small request and a larger one, so a firewall and an MTU problem get different fixes. For the first check that fails, it prints what’s wrong and how to fix it, and exits 1. --json prints the same checks for scripts.

Errors

The token was revoked, or this machine was never signed in to this server. Sign in again:
If EPHEMERA_TOKEN or EPHEMERA_SERVER is set in your shell, it overrides the saved login. Check with env | grep EPHEMERA.
When every host in your account is offline, ephemera run and ephemera dev say which, and when it was last seen:
ephemera login prints the same note when it signs you in, so you find out before the first run. ephemera hosts lists every host with when it was last seen. On the host, check the agent is running:
A host that says connection to central server lost; reconnecting keeps trying, waiting up to a minute between tries. A host the central server has no record of, because it was removed, says so in its log: join it again with a new code.If a host is online but the error is none of this account's hosts is connected with room for a sandbox, every online host is full. Destroy a sandbox (ephemera ls, ephemera rm), or raise the host’s --capacity.
Your laptop sends files and reads output straight from the host, at the address the host gave when it joined (ephemera hosts lists it). The host’s connection to the central server can be fine while your laptop can’t reach it. ephemera doctor tries the host in three steps, and says which one failed:The MTU problem is most common on a VPN or tunnel; WSL2’s eth0, for one, can have an MTU of 1280. It also makes SSH hang at key exchange, which is a quick way to recognise it.If you can SSH into the host, you can also skip the network: run ephemera on the host itself. See Use it over SSH.
The host presented a different key from the one this CLI pinned. If you rebuilt the host or joined it again, that’s expected; accept the new key:
If you didn’t, don’t: something may be between you and the host.
That’s the default. The end of the run names what was blocked:
Add the host with --allow registry.npmjs.org. With an allow list that doesn’t have it yet, the reason reads registry.npmjs.org:443 is not on the sandbox's allow list. If the summary shows nothing at all, the program ignores proxy settings; Node.js’s built-in fetch needs --env NODE_USE_ENV_PROXY=1. See Network access.
The host runs the Docker backend, which is for building ephemera only. Run the host with --backend firecracker; the installer does.
The token has a limit on sandboxes at once or on sandbox-minutes a day:
ephemera usage shows the token’s use and limits. To change them, make a new token with other limits in the dashboard and revoke the old one, or, on a server you run, use ephemera-server token limits. See Tokens and CI.
A sign-in code from ephemera login works for 10 minutes. Run ephemera login again and approve the new code.
125 means ephemera itself failed before or around your command: the message above it says why. Your command’s own exit codes pass through untouched; 124 means --timeout stopped it.

Still stuck

Open an issue on GitHub with the output of ephemera doctor and ephemera version. Neither prints your token.