Error 5151 – MQTT CONNACK Timeout During EPM Agent Connectivity

Error 5151 – MQTT CONNACK Timeout During EPM Agent Connectivity

371
Created On 11/10/26 10:53 AM - Last Modified 11/10/26 15:50 PM


Symptom


EPM agents fail to connect to the EPM cloud services (specifically related to Endpoints UI page in the console). The agent attempts to establish a connection, but the request times out before receiving a response from the server. The following errors are found in the agent logs:

 

CvfAwsIotComm::AWS_COM_KIT: mqtt5-client: emitting connection failure lifecycle event with error code 5151(libaws-c-mqtt: AWS_ERROR_MQTT5_CONNACK_TIMEOUT, Remote endpoint did not respond to a CONNECT request before timeout exceeded) CvfAwsIotComm::AWS_COM_KIT: mqtt5-client: shutting down channel due to CONNACK timeout CvfAwsIotComm::AWS_COM_KIT: NG_IOT: CONNECTION_FAILURE



Environment


EPM EPM Console;Windows Agent;EPM Agent

Cause


Error 5151 (AWS_ERROR_MQTT5_CONNACK_TIMEOUT) occurs when the agent sends a connection request to the EPM service, but the remote endpoint does not respond within the allocated timeframe.

 

While this appears as a timeout, the root cause is frequently a network appliance or security software (such as Zscaler, FortiGate, or other SSL-inspecting proxies) that is intercepting or delaying the TLS handshake. Because EPM utilizes certificate pinning for its MQTT communication, any attempt to inspect, re-sign, or "man-in-the-middle" (MITM) this traffic will result in a dropped connection or a silent timeout.



Resolution


1. Identify Traffic Interception

Check if the organization uses a cloud security platform (e.g., Zscaler) or an on-premise firewall with SSL Inspection (Deep Packet Inspection) enabled.

2. Configure SSL Inspection Exclusions

Ensure that all EPM-related traffic is completely excluded from SSL/TLS inspection. The traffic must pass through the network un-modified. Essential URLs to exclude include:

3. Verify Proxy/Firewall Latency

In some cases, a high-latency proxy or an overloaded firewall can cause a response delay that exceeds the CONNACK timeout. Ensure that the path to Idira endpoints is optimized and not subject to significant packet queuing or delay.

4. Check Local Security Software

Verify if local EDR, DLP, or Antivirus solutions on the endpoint are performing "Web Protection" or local port monitoring that could be interfering with the MQTT protocol (Port 443).



Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj0000000jjVCAQ&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail