Inspect health and logs
Start with the failed operation
Section titled “Start with the failed operation”Record the request time, endpoint, HTTP status, and non-secret error message. Distinguish “cannot connect,” “request rejected,” and “generation is slow.”
For an existing WSL service:
systemctl status devsecops-ai ollamajournalctl -u devsecops-ai -n 100 --no-pagerFor the terminal lab, inspect the terminal output and logs/ai_backend.log beneath the working directory. Current logs can include user input and credential information; do not publish them without redaction.
What to measure
Section titled “What to measure”| Signal | Interpretation |
|---|---|
/health responds | API and knowledge-store count are reachable |
| Ollama registry responds | Model server can list installed models |
| Query returns a nonempty answer | Inference succeeded for that request |
Known document appears in sources | Retrieval succeeded for that sample |
| Disk and memory usage | Resource pressure may explain failures |
df -h .free -hollama psAutomation limits
Section titled “Automation limits”Monitoring scripts exist, but configuration variables in an example file are not proof that a timer, alert, or restart policy is installed. Check the actual service/timer configuration. The backend currently performs blocking operations inside async handlers, so a long inference can delay other requests on the same worker.
Next: Troubleshoot by symptom.