Common Issues
Port Already in Use
Symptom: docker compose up -d fails with an error like Bind for 0.0.0.0:3000 failed: port is already allocated.
Solution:
- Identify which process is using the port:
lsof -i :3000 - Either stop the conflicting process, or change the port used by RAG-DocBot by setting
DOCKER_PORTin.envto an available port, then re-rundocker compose up -d.
Backend Fails to Start / Database Migration Error
Symptom: The backend container exits immediately. Logs show a database connection error or migration failure.
Solution:
- Check the backend logs:
docker compose logs backend - Ensure the
postgresservice is healthy before the backend starts:docker compose ps - If
postgresis not running, start it explicitly and wait for it to become healthy:docker compose up -d postgres
docker compose logs -f postgres - Once
postgresis healthy, start the backend:docker compose up -d backend
License Key Rejected
Symptom: The UI shows a license error, or POST /api/license returns a 400 or 422 error.
Solution:
- Verify the
license.keyfile is in the same directory asdocker-compose.yml. - Ensure the file content has not been truncated or modified (e.g. by a text editor adding a trailing newline or changing encoding).
- Contact your vendor if the key continues to be rejected — the key may be expired or issued for a different host.
Cannot Pull Images (Authentication Error)
Symptom: docker compose pull fails with unauthorized: authentication required or similar.
Solution:
- Log in to the private container registry with your vendor-provided credentials:
docker login <registry-url> - Enter your registry username and token/password when prompted.
- Retry
docker compose pull.
If your credentials have expired, contact your vendor for a new token.
Inference Service Keeps Restarting
Symptom: docker compose ps shows the inference service in a restart loop. Logs show a model loading error.
Solution:
- Check the inference logs:
docker compose logs inference - Verify the model file exists and is named correctly:
ls -lh ./models/modelfile.gguf - Common causes:
- The model file is missing or has the wrong name — it must be
modelfile.gguf. - The model requires more RAM than is available. Try a smaller or more heavily quantised variant (e.g. Q4_K_M instead of Q8_0).
- The model file is corrupted — re-download it from the source.
- The model file is missing or has the wrong name — it must be
- After fixing the issue, restart the inference service:
docker compose up -d inference