Skip to main content

Overview

Comprehensive troubleshooting guide for the MCP Server with LangGraph. This guide covers common issues, diagnostic techniques, and step-by-step solutions.
Always check logs first: kubectl logs -f <pod-name> or docker compose logs -f

Quick Diagnostic Commands

Authentication Issues

Symptom:
Causes:
  1. Token expired
  2. Invalid token format
  3. Wrong signing key
  4. Token not in request
Solutions:
Code fix:
Symptom:
Solution:
Symptom:
Debug:
Fix:
Symptom:
Solution:

Authorization Issues

Symptom:
Debug:
Fix:
Symptom:
Debug:
Fix:
Symptom: User has role in Keycloak but no permissions in OpenFGADebug:
Fix:

Database Issues

Symptom:
Debug:
Fix:
Symptom:
Debug:
Fix:
Symptom:
Debug:
Fix:

LLM Issues

Symptom:
Solution:
Symptom:
Debug:
Fix:
Symptom:
Debug:
Fix:

Performance Issues

Symptom: Requests taking > 5 secondsDebug:
Common fixes:
Symptom: Pods being OOMKilledDebug:
Fix:
Symptom: Slow performance, high CPU usageDebug:
Fix:

Kubernetes Issues

Debug:
Common fixes:
Debug:
Fix:
Debug:
Fix:

Observability & Debugging

Enable Debug Logging

Distributed Tracing

Health Checks

Getting Help

Collect Debug Information

Community Support

Include in support requests:
  1. Debug information bundle
  2. Kubernetes/Docker version
  3. Python version
  4. Steps to reproduce
  5. Expected vs actual behavior

Next Steps

Architecture

Understand system architecture

Observability

Set up monitoring

Production Checklist

Pre-deployment verification

Security Best Practices

Secure your deployment

Debugging Made Easy: Systematic troubleshooting gets you back online quickly!