Skip to content

Troubleshooting

Sergey Gerasimov edited this page Oct 22, 2026 · 1 revision

Troubleshooting

Symptom Fix
Port 8501 is already in use Stop the other process or set DERIVLAB_PORT=8502
First Docker build is slow Native build tools are isolated in a builder stage; later builds use the cache
App shows “Synthetic fallback” Cache and seed are missing and the network failed; refresh or restore the seed
Refresh returns 429 Yahoo is rate-limiting; keep the existing cache and retry later
“Below one lot” warning Increase capital or pick a cheaper asset; the warning offers a one-click fix
Dev Container permission error Rebuild the container; post-create recreates the cache with the developer UID
AI Arena shows local model names No live key is configured; the local models are intentional and fully functional
OpenAI returns 404 for gpt-5 Your organization is not verified for that model. Use gpt-4.1 / gpt-4.1-mini or another available model
OpenAI returns 400 for max_tokens The client retries with max_completion_tokens; if a model rejects another parameter, it falls back locally
Key in .env is ignored Restart/recreate the container, or check that the variable name is exact; shell variables take priority
LLM critic falls back to local Open Model stack: the tab shows the timeout/JSON/section error; keep the local fallback or switch models
LLM costs are higher than expected Disable “Use configured LLM for critique and news” or keep LLM trade decisions off
removeChild / NotFoundError in the browser This was a browser auto-translation/DOM mutation issue in older builds; 1.0.1+ sets notranslate markers and stable chart identities. Hard-refresh and disable auto-translation
Want to reset the demo data docker compose down -v then up --build
Need LAN access DERIVLAB_BIND_ADDR=0.0.0.0 docker compose up -d and put it behind an authenticated proxy
CodeQL check is missing on a PR The workflow runs on pull_request; confirm Actions are enabled and the workflow is present on the branch
Wiki link opens a missing page The Wiki pages are maintained in the repository Wiki; use the sidebar or ensure the page name matches the link

Diagnostic commands

docker compose logs -f derivlab-app
docker inspect derivlab-app --format '{{.State.Health.Status}}'
curl -fsS http://127.0.0.1:8501/_stcore/health
pytest -q
ruff check .

OpenAI 404 verification detail

If the API response says:

Your organization must be verified to use the model gpt-5.

that is an account/eligibility restriction, not a DerivLab bug. The app reports the error in Model stack and uses the local critic. Use a model available to your organization, for example gpt-4.1 and gpt-4.1-mini.

See AI Model Guide and Getting Started.

Clone this wiki locally