communication connection_error ai_generated true

MQTT connection lost: keep-alive timeout

ID: communication/mqtt-connection-dropped

Also available as: JSON · Markdown
78%Fix Rate
82%Confidence
3Evidence
2023-01-01First Seen

Version Compatibility

VersionStatusIntroducedDeprecatedNotes
any active

Root Cause

MQTT client disconnected due to keep-alive timeout.

generic

Workarounds

  1. 88% success Set keep-alive interval to half the expected max idle time
  2. 90% success Implement automatic reconnection with exponential backoff

Dead Ends

Common approaches that don't work:

  1. Set keep-alive to 0 (disabled) 82% fail

    Broken connections never detected

  2. Reconnect without backoff 78% fail

    Server overwhelmed by reconnection storm