Loosely Connected Devices - Error: The underlying connection was closed: An unexpected error occurred on a send. in "PASAgentLog"
177
Created On 11/10/26 10:59 AM - Last Modified 11/10/26 12:58 PM
Symptom
The EPM PASAgent cannot successfully communicate with the PVWA
In the PASAgentLog the following can be seen:
<datetime>,943 [6] ERROR LCDHandler: (RetrieveEndpointPassword) Received web error. Error: The underlying connection was closed: An unexpected error occurred on a send.
<datetime>,943 [6] ERROR LCDListener: (Attach) Communication error. probably cannot connect to the internet. Error: The underlying connection was closed: An unexpected error occurred on a send.
<datetime>,943 [6] ERROR LCDListener: (Attach) Communication error. probably cannot connect to the internet. Error: The underlying connection was closed: An unexpected error occurred on a send.
Additionally there is no indication in the IIS logs of the PVWA server that a call was made from the EPM PASAgent. We should see a call similar to the following, but it is not there:
<datetime> <PVWAIP> POST /PasswordVault/API/EPM/RetrieveEndpointPassword - 443 - <CLIENTIP> - - 200 0 0 109
Schannel Errors In the System Event Viewer of the LCD endpoint can also identify TLS as the issue:

Environment
10.7;10.8;10.9;10.10;11.1;11;11.2;11.3;11.4
Cause
The SSL/TLS handshake fails before IIS is reached.
This can occur when there PVWA server and the EPM Agent workstation are configured with an incompatible set of SSL/TLS protocols.
IE. The PVWA server is configured to only allow TLS 1.2, but the EPM Agent workstation is not configured for TLS 1.2.
Resolution
Please validate the SSL/TLS settings on the Server and Workstation are compatible. You can use the Hardening the CPM and PVWA Servers document for references to SSL/TLS settings and locations. (Section: SSL/TLS Settings)
(Online documentation ref:https://docs.cyberark.com/Product-Doc/OnlineHelp/PAS/Latest/en/Content/Security/EPV%20SSL-TLS%20Settings.htm) (Note: Ref is to 11.4 documentation. The latest documentation should be referenced for any future changes)
Note: If using TLS 1.2, the .NET framework also needs to be enabled for TLS 1.2. This is shown in step 3 of the documentation under "Enable TLS 1.2"