Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Question

Why has my client been disconnected ungracefully?

Answer

Statement

Client ID: UNKNOWN, IP:x.x.x.x disconnected ungracefully.

Meaning

This statement occurs when the TCP connection is closed, before an MQTT CONNECT packet was ever sent. Therefore the clientID is UNKNOWN. Typically these log statements are caused by TCP based load balancer health checks.
These statements can be ignored and avoided by using the Heartbeat Extension.


Statement

Client ID: abc, IP:x.x.x.x disconnected ungracefully.

Meaning

If you see this statement without a corresponding, additional line, it means that the TCP connection was lost and the broker did not actively initiate this disconnect.


Statement

Client ID: abc, IP:x.x.x.x was disconnected. reason: Client was idle for too long.
Client ID: abc, IP:x.x.x.x disconnected ungracefully.

Meaning

When you see this message, the client got disconnected by the broker because no packet was received within one and a half time the specified keepAlive value for this connection.
See MQTT specification.

If the Keep Alive value is non-zero and the Server does not receive a Control Packet from the Client within one and a half times the Keep Alive time period, it MUST disconnect the Network Connection to the Client as if the network had failed

This indicates that there was a connection loss between client and broker. Isolated or rate incidents of this log statement are no cause for concern.


Statement

Client ID: abc, IP:x.x.x.x was disconnected. reason: Another client connected with the same clientId.
Client ID: abc, IP:x.x.x.x disconnected ungracefully.

Meaning

This means that the broker initiated the disconnected based on the Client Take-Over Mechanism.
Typically this is caused by a client losing its connection and re-connecting before the broker was able to detect the same connection loss.

  • No labels