Deploy & Operateπ©Ί Troubleshooting
Troubleshooting
First checks
- Run
docsgpt doctor(orpython -m docsgpt doctorin a source checkout). It checks the settings file, PostgreSQL, Redis, the model provider, the default model and the decision model, and, while conversation analytics is on, whether a worker takes theanalyticsqueue. See the CLI reference. - Read the API and worker logs. With
docsgpt up, rundocsgpt logs -f. With Docker Compose, rundocker compose logs -f backend workerwith the same-ffile and--env-fileyou started it with. On Kubernetes, see Kubernetes troubleshooting. - Check that a worker is running. The API hands query embeddings, ingestion and every background job to the Celery worker, so most βnothing happensβ problems start there.
Common symptoms
| Symptom | Likely cause | Fix |
|---|---|---|
| Searches wait about a minute or fail at once, and answers ignore your documents, with no error | No worker is consuming the embeddings queue | Start a worker. A worker started with -Q must list embeddings. To run without one, set EMBEDDINGS_DELEGATE_TO_WORKER=false or EMBEDDINGS_BASE_URL. See Where the model runs. |
| Uploads never finish, or fail after parsing | No worker, or INTERNAL_KEY differs between the API and the worker, or the worker canβt reach the API | Set the same INTERNAL_KEY on both, and check that the worker can reach the API at WORKER_API_URL (or API_URL when that is unset). See Secrets to set before going live. |
| Scheduled agent runs and source syncs never fire | No Celery beat scheduler is running | Run the worker with -B, or run docsgpt beat. See Background jobs. |
| The Insights pages stay at Analyzing conversations with none analyzed | No worker consumes the analytics queue: a worker with its own -Q that leaves it out, or the solo-pool docsgpt worker on macOS or Windows without docsgpt worker --analytics next to it | docsgpt doctor warns when the queue backs up. See The analytics queue. |
| Notifications never appear, a dropped answer doesnβt resume, a paired device never receives commands, or artifact downloads return 404 | The API runs under flask run, which leaves out the ASGI routes | Serve docsgpt.asgi:asgi_app, as docsgpt api and the Docker images do. See ASGI-only features. |
| Notifications still donβt arrive under ASGI | Redis, the event stream or the client | Follow the SSE notifications runbook. |
| Other machines canβt open DocsGPT | The ports are published on 127.0.0.1 only | See Decide who can reach it for the setting each install uses. |
| Everyone is signed out after a container is recreated | JWT_SECRET_KEY isnβt set, so each container generates its own | Set JWT_SECRET_KEY on every API and worker process. See Secrets to set before going live. |
A chat fails with Model '<id>' is not available or Refusing to send a <provider> request to <host> | The model has no endpoint of its own, or a key would reach a host it wasnβt configured for, so DocsGPT refused to send it | Set the modelβs key (for example DEEPSEEK_API_KEY) or pick another model. See Keys stay with their provider. |
| Answers come from the wrong provider, or the model list is empty | LLM_PROVIDER, LLM_NAME or the providerβs key doesnβt match | docsgpt doctor reports the resolved default model. See Cloud providers or Local inference. |
Guides with their own troubleshooting
- Development environment
- Kubernetes
- SSO with OIDC
- PostgreSQL for user data
- MCP tools
- Connectors: Google Drive, SharePoint / OneDrive, Confluence
- Prompts
If none of these fit, ask on Discord or open an issue on GitHub with the docsgpt doctor output and the relevant log lines.
Edit this page on GitHub
Last updated on
π PostgreSQL for User Data
PostgreSQL is the user-data store for DocsGPT. Covers auto-bootstrap, production hardening, and the one-shot migration from legacy MongoDB deployments.
π‘ SSE Notifications Runbook
Diagnose missing notifications, a bell badge that never lights up, a stuck Activity count, upload toasts that hang and chat answers that don't reconnect - Redis checks, the symptom map, failure modes and the realtime event settings.