Skip to content

Troubleshooting

Start with npx azhi doctor. It checks the server, database, Temporal, workers online and live interpreter builds. npx azhi setup checks the machine for what OpenCode steps need.

SymptomCauseFix
Web page does not load on Windows (WSL2)Port not published or forwarding offdocker ps should show 7400 published; wait ~15 s after the installer; check localhostForwarding in %UserProfile%\.wslconfig
Slow installs or broken file permissions in WSL2Repo cloned under /mnt/cClone into the Linux filesystem (~/azhi-flow)
node not recognized right after installingThe current window has the old PATHOpen a new PowerShell window
Web UI asks for a tokenThe browser needs the local owner tokenOpen the link printed by npx azhi open
Port 7410 (or 7400) already in useAn earlier azhi up is still runningnpx azhi down, then start again, or pick --port
npm warn allow-scripts for @swc/core, esbuild, opencode-ai, protobufjsnpm 11 no longer runs install scripts until approvednpm approve-scripts --allow-scripts-pending, review, then npm install again. Startup works without it
Server crashes on start with ENOENT ... /app/examplesInstall predates the commit that put examples/ in the Docker imageUpdate the repo and re-run deploy/install.sh to rebuild
Database auth fails after reinstalldeploy/.env was deleted while the volume existsThe database keeps the password it was created with. Restore the original deploy/.env
Docker Hub rate-limits the image pullAnonymous pull limitsAZHI_NODE_IMAGE=mirror.gcr.io/library/node:22-bookworm-slim deploy/install.sh
Run refused: limits.memory_mb unsupportedmacOS and Windows lack prlimitUse a Linux worker, or remove the limit from that script node
Run refused with blockersThe run plan found something unsupported or missingnpx azhi plan <path> lists each blocker
OpenCode downloads ripgrep on every step, or fails offlineNo rg on the workerInstall ripgrep (see Workers); azhi doctor flags it
npx azhi finds no serverAZHI_URL / saved login points elsewherenpx azhi login --url ... --token ... or unset AZHI_URL
Windows: azhi down ends abruptlyThere is no SIGTERM on WindowsExpected. The database and Temporal recover on the next start
Mixed-up dashes in pasted commandsWord processors turn - into —Type plain hyphens