BrainDocs

Troubleshooting

Common self-host failures and how to fix them.

SymptomLikely causeFix
Chat fails with ECONNREFUSED 127.0.0.1:4274eve did not startCheck production start logs; ensure scripts/start-production.mjs ran and port 4274 is free
/setup blocked in productionMissing bootstrap tokenSet BRAIN_BOOTSTRAP_TOKEN and enter it on /setup
OAuth callback mismatchWrong public originAlign BRAIN_PUBLIC_URL / BETTER_AUTH_URL with the browser URL
Schedules never fireMissing internal tokenSet BRAIN_INTERNAL_TOKEN (+ BRAIN_INTERNAL_URL)
“Chat unavailable”No modelsSet COMMAND_CODE_API_KEY or add custom models
Users re-auth every deploy.eve/ not persistedMount / restore .eve/ across releases
Invite email never arrivesSMTP unsetConfigure BRAIN_SMTP_* or copy the invite link
Attached-repo / coding tools failSandbox runtime unavailableHost needs microsandbox (Linux+KVM or Apple Silicon). Install platform tools / set MSB_PATH if required; coding is Agent-only
Company SSO blockedDomain unverifiedPublish DNS TXT and Verify DNS — see SSO
Workspace BYOA save rejectedLicenseNeed BYOA entitlement — or save on Entire host / env

Health check:

curl -sS https://<your-host>/eve/v1/health