Troubleshooting
Start with atlas dev --status (what is running and in what state) and atlas version. Logs for every service are in <project>/.logs/.
Install and update#
| Symptom | Cause and fix |
|---|---|
atlas: command not found after installing | Open a new shell: atlas install edits your shell’s startup file. Check ~/.atlas/bin is on PATH. |
macOS kills the binary (zsh: killed) | The binary is not signed. Release builds are Developer ID signed (ad-hoc when built without the signing secrets, as forks are); for a binary you built, run codesign -f -s - target/release/atlas. A browser download may also need xattr -d com.apple.quarantine ./atlas. |
atlas update says to run brew upgrade | The binary lives under a Homebrew prefix; update it with Homebrew. |
atlas update refuses to run | You are using a linked dev build (atlas link). Run atlas unlink first. |
| The update prompt is in the way | ATLAS_NO_UPDATE_PROMPT=1, or answer n (silences that version for 24 hours). |
atlas dev and the stack#
| Symptom | Cause and fix |
|---|---|
atlas dev needs an interactive terminal (exit 2) | stdin or stdout is not a TTY. From scripts and agents use atlas dev --status, --ci, --headless or --detach. |
atlas dev is already running (pid N) | One instance per project directory. Attach with atlas dev, check with atlas dev --status, stop with atlas down. |
atlas.yaml: services.web.helth: unknown field | A typo. Unknown keys are errors at every depth; the message suggests the right name. Run atlas config check. |
A service stays starting forever | It is waiting on its port, health URL or ready_log. The sidebar note says what (waiting for :3001 (12s)). After start_timeout (default 60 s) a warning is logged; the service keeps trying. Fix the probe or the port. |
A service is failed with dependency X failed | A dependency failed, exited non-zero or gave up restarting. Fix X first; its dependents start by themselves once their conditions hold, or restart them. |
gave up after N restarts | The restart budget (max_restarts, default 5) is spent. Read the service log, fix the cause, restart it from the menu (m) or with atlas_restart_service. |
| A service is green but not answering | A service without port, health or ready_log counts as running after 2 s alive. Add a probe. |
EADDRINUSE | Something else holds the port. Atlas looks it up before each start, so the service shows port N held by PID P (cmd, cwd …): stop it yourself (kill P) or change the service port (sidebar, service log, atlas dev --status, MCP port_conflict): read that instead of the log, then stop the process yourself (kill P) or change the service port. Atlas cleans only what it started itself (from .logs/.pids) and never kills by port, not even when asked. |
A service is unhealthy | The process is alive but missed failure_threshold (default 3) liveness probes in a row, each health_timeout (default 2 s) long: it is hung or too slow. atlas dev --status, atlas_status and the sidebar show since when and its last output (unhealthy_lines); read the log, then restart it. If the probe is just too tight for a slow dev server, raise health_timeout or failure_threshold. Set on_unhealthy: restart to have Atlas restart a hung service itself (same max_restarts budget). It clears by itself when the service answers again. |
A service is degraded | It answers its health/port probe, but its ready: probe fails or the same error line repeated 3 times in 60 s. The reason is in probe_error / the note under the row in atlas dev --status (GET /ready → 503, connection refused, `cmd` exited 1: …, repeating error: …). Fix the dependency it reports; it returns to running once the probe passes or the error stops. A healthy dependent still waits for running. |
atlas.yaml: services.api.ready: set exactly one of http (path or URL) or command | A ready: block needs http or command, not both and not neither. |
ready http '/ready' needs the service port | A bare-path ready.http is resolved against the service port; add port, or use a full http:// URL. |
EADDRINUSE | Something else holds the port, often an orphan of an earlier run. Atlas cleans only what it started itself (from .logs/.pids) and never kills by port. Find the process with lsof -iTCP:<port> -sTCP:LISTEN and stop it yourself. |
| Browsers, dev servers or caches left running or on disk after an agent run, or the Mac slows down indexing worktrees | atlas doctor --hygiene lists orphaned processes Atlas started, disk per project and heavy folders Spotlight indexes; --fix ends the orphans and frees what Atlas owns (never target/, node_modules or worktrees). The same is in Settings > Workspaces > Hygiene. See sessions and hygiene. |
docker compose failed and a docker alert shows | The daemon was not reachable within 15 s. Start Docker or OrbStack; app services still start. |
| Quitting leaves containers running | By design: Atlas never runs docker compose down. Stop them with docker compose down. |
pre_command failed toast | The dependency install failed; services start anyway. Read .logs/setup.log. |
Stale .logs/atlas.sock after a crash | Harmless; the next run replaces it. |
| Colors look wrong or text cannot be selected | M releases the mouse so your terminal can select; hold ⌥ while dragging otherwise. |
MCP and agents#
| Symptom | Cause and fix |
|---|---|
| The atlas tools are missing in the agent | atlas is not on the agent’s PATH (GUI apps often lack your shell PATH). Re-run atlas setup <agent> --apply from a shell where which atlas works so the absolute path is written. In omp: /mcp test atlas. |
atlas dev is not running; start it in a terminal | Control tools need a runner: atlas dev, atlas dev --detach or --headless. --ci does not serve control. |
atlas_status says running: false but the TUI is open | The agent is looking at a different project directory. Compare --dir or cwd. |
atlas_wait_ready is cut off after 30 s | The client timeout is shorter than timeout_s. Keep timeout_s ≤ 25 or raise the client timeout. |
The agent still runs atlas dev | The omp hook loads at session start: restart omp and check omp plugin list. /reload-plugins refreshes skills and MCP only. |
| Codex ignores the hooks | Trust them once with /hooks in Codex. |
CONFLICT … an atlas entry not created by atlas | You have your own atlas server entry. Rename it, or re-run with --force. |
The full table is in Agent setup and MCP.
Atlas Desktop#
| Symptom | Cause and fix |
|---|---|
atlas desktop cannot download the app | Check your connection and that the release for your CLI version exists. atlas desktop --status shows what is installed; atlas desktop --install --latest reinstalls. |
bun or node not found inside the app (exit 127: sh: 1: bun: not found in the stack setup) | An app opened from Finder, the Dock or a Linux menu entry gets a bare environment. Atlas reads your login shell’s environment at launch (as an interactive login shell, so ~/.bashrc, ~/.zshrc and ~/.config/fish/config.fish count); the setup error shows the PATH Atlas used; Settings → Integrations → Shell & links → Shell for your projects shows what it found and has Reload. Restart a running stack after changing it. |
| Terminals use the classic renderer with GPU on, and Settings says the terminal host is from an older Atlas | The daemon predates the app and could not be replaced live. Click Restart terminal host in Settings → Terminal when no terminal is busy. |
| A terminal is blank right after opening | Turn off Fast terminal (GPU) in Settings → Terminal to compare with the xterm.js renderer, and file an issue with atlas desktop debug logs output. |
| A worktree was not deleted with its branch | The branch is unmerged, so Atlas keeps it (a toast says so). Delete it with git branch -D when you are sure. |
atlas wt or atlas term says the app is not running | They use ~/.atlas/desktop.sock; open Atlas Desktop first. atlas term falls back to the local hostd when the app is closed. |
| The app and CLI versions differ | atlas update brings both to the latest; Update CLI and app in the app does the same. Running stacks keep their version until atlas down && atlas dev --detach. |
Linux: lag, freezes or stale frames#
Atlas Desktop on Linux paints through WebKitGTK and draws terminals with xterm.js. On some setups, most often NVIDIA, WebKitGTK and the graphics driver disagree. Atlas sets none of the WebKit variables itself (forcing them helps one machine and slows another, see Tauri’s Linux graphics page), so try them yourself, in this order, one at a time, from a terminal:
# 0. What Atlas saw: session, display servers, NVIDIA driver and every WEBKIT_/GDK_/GSK_ variable set.
grep "linux graphics" ~/.atlas/desktop/app.log | tail -1
# What GTK, WebKit and its web processes printed (blank window, EGL, GStreamer), also in "Copy details".
# Kept when Atlas starts from the launcher or `atlas desktop` (2 MiB, then the previous one is stderr.log.1);
# from a terminal it prints there instead.
tail -50 ~/.atlas/desktop/stderr.log
# 1. Wayland + NVIDIA ("Error 71 (Protocol error)", blank window): costs nothing in speed.
__NV_DISABLE_EXPLICIT_SYNC=1 atlas desktop
# 2. A flickering or blank window, "AcceleratedSurfaceDMABuf was unable to construct a complete framebuffer":
WEBKIT_DISABLE_DMABUF_RENDERER=1 atlas desktop
# 3. Last resort (the window dies on resize): turns accelerated compositing off. Slow: every change repaints the window.
WEBKIT_DISABLE_COMPOSITING_MODE=1 atlas desktop
Variables you set are left alone. Include the linux graphics line and which of the three helped when you report it.
Debugging a debug build#
atlas desktop debug info
atlas desktop debug logs --level csp # CSP violations
atlas desktop debug shot /tmp/x.png
Reporting a bug#
If the CLI panics it prints a path such as crash-<unix_ms>-<pid>.toml (the newest 20 are kept) under ~/Library/Application Support/atlas/crashes/ ($XDG_DATA_HOME/atlas/crashes on Linux). A crash of the process itself (a segmentation fault inside WebKit, a graphics driver or Atlas) writes crash-native-<unix_ms>-<pid>.toml in the same directory, so it no longer depends on coredumpctl being there. Crash reports stay on your machine and are never uploaded. Tokens are redacted and your home directory is written as ~, but review one before attaching it.
Atlas Desktop tells you at its next start: if a crash report (or the terminal host dying on its own) is newer than the last one you dismissed, a card in the bottom-right corner says Atlas closed unexpectedly last time with Report (the usual report screen, redacted, nothing sent until you press Report issue) and Dismiss. Dismissing remembers the time in ~/.atlas/desktop/crash-ack, so the card does not come back for that crash; the first launch only looks at the last 7 days.
Open an issue at github.com/codeatlasdev/atlas/issues with the whole output of atlas version (it names the exact build), your OS, what you ran and the relevant lines of .logs/<service>.log (redact secrets). Security problems go through SECURITY.md, not public issues.