Error 1052 – Socket Not Connected During EPM Agent Connectivity

Error 1052 – Socket Not Connected During EPM Agent Connectivity

459
Created On 11/10/26 10:54 AM - Last Modified 11/10/26 15:56 PM


Symptom


EPM agents fail to establish an initial network connection to the EPM cloud services (AWS IoT backend). The agent is completely unable to open a network socket, and the connection attempt fails at the very first step. The following error is found in the agent logs:

channel tore down with error code 1052(aws-c-io: AWS_IO_SOCKET_NOT_CONNECTED, socket not connected.)



Environment


EPM Mac Agent;Windows Agent;EPM Agent

Cause


Error 1052 (AWS_IO_SOCKET_NOT_CONNECTED) indicates a fundamental network routing or access failure (Layer 3/Layer 4). Unlike TLS or MQTT timeouts, this error means the agent is blocked from reaching the target endpoint before any security handshake can even begin.

 

This issue, typically caused by perimeter firewalls outright dropping the outbound traffic, missing proxy configurations on the local endpoint, or DNS resolution failures preventing the agent from finding the route to the internet.



Resolution


1. Verify Outbound Firewall Rules Ensure the endpoint's network segment is allowed to route outbound internet traffic to EPM and AWS IoT endpoints. Verify that traffic is permitted over TCP port 443 (and port 8883, if standard MQTT is required by your configuration). If a firewall silently drops the TCP SYN packets, the socket connection will fail.

 

2. Validate Agent Proxy Configuration If your corporate environment requires a proxy or Secure Web Gateway for outbound internet access, ensure the EPM agent is correctly configured to utilize it. If the agent is unaware of the proxy requirement or cannot resolve the OS-level PAC (Proxy Auto-Configuration) file, its traffic will hit a dead end at the local router.

 

3. Confirm DNS Resolution Check that the endpoint can successfully resolve the required EPM backend URLs (e.g., agents-<region>.epm.cyberark.com). Network-level DNS sinkholing or local DNS misconfigurations will prevent the agent from resolving the AWS IP addresses, resulting in an immediate socket failure.

 

4. Check Host-Based Firewalls Verify that local host firewalls (e.g., Windows Defender Firewall or macOS Application Firewall) are not explicitly blocking the EPM agent service executable (such as vfagent.exe) from making outbound network connections.



Actions
  • Print
  • Copy Link

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