S
Sheba ISP ERPDOCS
Operations & Runbooks

Production Troubleshooting Matrix

Problem, possible cause, diagnosis steps, solution, and verification matrix for operational incidents.

Production Troubleshooting Matrix

IMPLEMENTED

Quick-reference diagnostic matrix for operational incidents.

ProblemPossible CauseHow to DiagnoseSolutionVerification
HTTP 403 "Tenant not resolved"Missing or incorrect HTTP Host headerInspect Nginx / Traefik logs for incoming Host headerEnsure domain is registered in TenantDomain table under an active Tenantcurl -H "Host: isp.shebafi.xyz" http://localhost:8000/api/v1/health-check/ returns 200
HTTP 401 UnauthorizedExpired or invalid tokenCheck Authorization: Token <token> header in requestRe-authenticate via /api/v1/auth/login/ and update stored tokenTest /api/v1/auth/me/ with new token
Subscriber Cannot Connect via PPPoESecret disabled or password mismatchQuery MikroTik /ppp/secret/print for subscriber usernameTrigger customer status toggle in /customers to force resync of credentialsSubscriber router connects and receives IP from pool
Payment SMS Received But Not CreditedSMS payload format mismatch or TrxID unparsedCheck InboundPaymentEvent table in DB for status UNMATCHEDNavigate to /payments and manually allocate payment to subscriber accountCustomer due_amount decreases and expiry_date extends
Router Marked "OFFLINE"Firewall blocking port 8728/443 or changed router passwordTest telnet <router-ip> 8728 from backend hostVerify management IP route, unblock firewall, and re-enter credentials in /routersClick "Sync Telemetry" in UI and confirm status turns Green (Online)
Database Locks Stalling RequestsUnreleased distributed lock or long transactionCheck Redis KEYS lock:* and PostgreSQL pg_stat_activityTerminate blocking backend PID or delete stale Redis lock keyAPI response times normalize under 100ms

On this page