> ## Documentation Index
> Fetch the complete documentation index at: https://docs.deepest.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Troubleshoot a Deepest task

> Isolate the failing layer, preserve the original Machine and request, and resolve access, limit, SSH, Preview, Desktop, and Vault errors.

Start by checking the exact Machine ID, current Account entitlement, and the failing layer. A Computer can be `running` while a web server isn't listening, a short-lived Viewer link has expired, or a mutation's outcome is `UNKNOWN`. Diagnose the failing layer before stopping, deleting, or recreating Machines.

> [!WARNING]
>
> If the last mutation returned `UNKNOWN` (`retry: "query-first"`), keep the original ID, target, and `idempotency_key` (where supported) and follow [Reliability and recovery](https://docs.deepest.dev/api-and-sdk/reliability.md) before making another write.

## Sign-in, activation, and credentials

| Symptom | Check | Recovery |
| - | - | - |
| Signed in but cannot create (`ENTITLEMENT_REQUIRED`) | `resources.get()` entitlement status, Memory, and Storage | Redeem an Invite in the Console; Beta has no Free plan and signing in grants no compute |
| Invite fails (`INVITE_UNAVAILABLE`, `RATE_LIMITED`, `RESOURCE_CONFLICT`) | Code accuracy (`XXXX-XXXX`), active entitlement, or HTTP 429 wait timer | See [Access and retention](https://docs.deepest.dev/account/access-and-retention.md); wait `retry_after_seconds` on `RATE_LIMITED` |
| Agent Key gets `401 UNAUTHORIZED` | Control API URL (`https://console.deepest.dev` default), key revocation, and Human-only endpoints | Test `resources.get()`; use a Human session in the Console for `agentKeys.*`, `invites.redeem`, and `assistance.begin/touch/complete` |
| Human session check fails (`AUTH_UNAVAILABLE`) | Transient identity-provider check (`retry: "safe"`) | Retry safely after recovery; do not replace Machines |

Signing out of the Console does not revoke Agent API Keys, and runtime links (Preview, Share, Viewer) cannot authenticate control API requests.

## Machine and resource problems

Read `resources.get()` and the original Computer or Sandbox. Never add `reserved + pending` to `total` (they are already included in `total`), and never treat missing `network` or `resident` fields as `0`.

| Symptom | Meaning & next step |
| - | - |
| `LIMIT_EXCEEDED` | Inspect `error.limit.dimension`: `memory`, `persistent_computers` (stopped Computers still count until Delete), `reserved_intents`, `share_records`, or `secret_grants` |
| `SANDBOX_NOT_ENABLED` | Account entitlement excludes Sandboxes (for example Starter); use a Computer or eligible plan |
| `STORAGE_LIMIT_EXCEEDED` | Clean disposable files and obsolete snapshots; existing Computer Start remains permitted for cleanup when eligible and Memory fits |
| Guest `df` looks free but Account Storage stays high | Snapshots or shared blocks retain allocation; follow [Storage Reclaim](https://docs.deepest.dev/computers/storage-reclaim.md) and re-read `resources.get()` |
| Resize returns `restart_required` | Running change was not applied; explicitly Stop → Resize → Start when interrupting work is approved |
| Snapshot / Clone / Reclaim returns `STOPPED_REQUIRED` | Explicitly Stop the exact Computer after saving application state |
| `RUNTIME_UNAVAILABLE` despite Account headroom | Host capacity is distinct from Account entitlement; preserve original Machine/intent |
| Sandbox missing after deadline | Hard 24-hour TTL permanently deletes it; `touch()`, `idle.set({})`, and Stop never extend lifetime |

See [Account resources](https://docs.deepest.dev/concepts/account-resources.md) and [Choose a Machine](https://docs.deepest.dev/concepts/choose-a-machine.md).

## SSH, SFTP, and IDE connections

Refresh the SSH endpoint from the running Computer with an authorized public key, and use all returned `host`, `port`, and `user` values while keeping your private key local:

* **`Permission denied (publickey)`:** Match the `-i` private key to the public key fingerprint authorized on that specific Computer ID.
* **Connection refused or timed out:** Verify `state === "running"`, active entitlement, and refresh `ssh.endpoint()` before editing keys.
* **Host Key changed warning:** Stop and investigate before deleting `known_hosts` entries—never disable host-key checking.
* **SFTP works but VS Code Remote SSH fails:** The SSH path is healthy; inspect VS Code's Remote SSH output log, Guest architecture, disk, and Memory.
* **Local port forward refuses traffic:** Confirm the service is listening inside the Computer first, then check local `-L` bind and port conflicts.

See [SSH](https://docs.deepest.dev/connect/ssh.md), [SFTP](https://docs.deepest.dev/connect/sftp.md), [Port forwarding](https://docs.deepest.dev/connect/port-forwarding.md), and [VS Code](https://docs.deepest.dev/connect/vscode.md).

## Private Preview and Share

Verify the application inside the Computer first:

```sh theme={null}
curl --show-error --max-time 5 http://127.0.0.1:<APP_PORT>/<HEALTH_PATH>
```

| Runtime symptom | Check next |
| - | - |
| `PREVIEW_UNAVAILABLE` | Confirm the port and a reachable listener on Guest `127.0.0.1` (or Docker `127.0.0.1` publish) |
| Share returns `503` | Guest service is not reachable; start/diagnose the app without replacing the valid link |
| Share returns `409` | Computer is stopped; opening a Share never auto-starts it |
| Share returns `410` | Distinguish expired vs. revoked on the page; issue a new Share only if intended |
| Share returns `403` | Owner's Account entitlement is no longer active |
| Share returns `404` | Link never existed or retained metadata expired; check `shares.list()` |
| App login behaves differently via Share | Share strips incoming `Cookie`, `Authorization`, and `Referer` headers; use Private Preview if needed |

See [Private Preview](https://docs.deepest.dev/network/private-preview.md) and [Share](https://docs.deepest.dev/network/share.md). Never paste capability URLs into public bug reports.

## Desktop and human assistance

A Desktop Viewer URL is a short-lived runtime entry to the same Computer. Reopen Desktop from the signed-in Console when a Viewer expires; closing the Viewer tab never stops Chromium or the Computer.

When `assistance.get()` returns to `agent`, inspect the actual browser state before continuing—the 120-second idle handback, 1-hour expiry, or Viewer reconnect never guarantees that a login or 2FA challenge succeeded. See [Desktop](https://docs.deepest.dev/desktop/overview.md) and [Human assistance](https://docs.deepest.dev/desktop/human-assistance.md).

## Tools, Docker, and outbound requests

* **Tools:** Command availability (`tools.inspect` / `--version`) is separate from model-provider authentication. On download errors, verify Guest DNS and HTTPS reachability before retrying `tools.install`.
* **Docker:** Separate daemon/socket checks, image architecture (`uname -m`), Memory pressure, and Account Storage.
* See [Agent tools](https://docs.deepest.dev/environment/agent-tools.md), [Docker and Dev Containers](https://docs.deepest.dev/environment/docker-and-dev-containers.md), and [Outbound networking](https://docs.deepest.dev/network/outbound-and-bandwidth.md).

## Vault

Inspect `vault.get()` and `computer(id).secretGrants.list()` / `sandbox(id).secretGrants.list()`. Verify exact `allowed_hosts` DNS names, `env_name` placeholder, HTTPS usage, and TLS verification. Never paste raw secret values into the Guest to bypass a `restart_required` disposition—schedule an explicit Stop → Start instead. See [Vault](https://docs.deepest.dev/security/vault.md).

## Reporting an issue

Include the operation, timestamp (UTC), affected Machine ID, `idempotency_key` (if any), `error.code`, `retry`, and minimal before/after observations. **Redact** all Agent API Keys, Human tokens, invite codes, Private Preview / Share / Viewer URLs, raw Secret values, and private browser session data, and preserve the original asset while outcomes remain uncertain.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.