EPM Windows LCD - Analysing the error code in PASAgent logs
Objective
This is a guide on checking the relevant error traces in the PASAgent logs to determine the root cause why the Credentials Rotation is not working as expected.
Please note that if the issue is still not resolve despite following the general guidelines, you can open a Support Ticket to further investigate the issue.
Environment
26.5 Privileged Access Manager (PAM, self-hosted);EPM;Privilege Cloud Privilege Cloud Web Portal;Loosely-Connected devices;EPM Agent
Procedure
- Gather the Support Info logs from the endpoint machine.
https://docs.cyberark.com/epm/latest/en/content/policies/collecting%20agent%20support%20info.htm#CollectinformationonWindowsagents - Decrypt the Support Info logs if required.
https://docs.cyberark.com/epm/latest/en/content/installation/windows-agentcommands.htm#Decryptthesupportinfofile - In the decrypted logs, proceed to trace folder >> PAS folder >> PASAgentLog.txt
Open the PASAgentLog.txt.x (x representing numbers) to search for older entries. - Proceed with the following steps when encountering the relevant error entries.
More error traces will be included in the table below. - If required, you can run the manual rotation command line to verify if the issue is resolved.
https://docs.cyberark.com/epm/latest/en/content/installation/windows-agentcommands.htm#ActivateaCredentialRotationprocess
| Error trace in PASAgentLog.txt | Possible issue(s) | Steps to resolve issue(s) |
| ERROR LCDHandler: (RetrieveEndpointPassword) Extra information: Protocol error, Response body: {"ErrorCode":"CAWS00001E","ErrorMessage":"PASWS154E Secret key is invalid."} | Secret key stored in SharedAuth_Internal Safe does not match the value from Credentials Rotation policy |
1. Log on to the PrivateArk client with a user that belongs to the Vault Admins group. 2. Open the SharedAuth_Internal Safe. 3. Update object EPM_PAS_Gateway with the correct value derived from the Credentials Rotation policy. |
| ERROR LCDHandler: (RetrieveEndpointPassword) Extra information: Protocol error, Response body: {"ErrorCode":"ITATS053E","ErrorMessage":"Object EPM_PAS_Gateway doesn't exist."} | Object EPM_PAS_Gateway is not created in SharedAuth_Internal Safe |
1. Log on to the PrivateArk client with a user that belongs to the Vault Admins group. 2. Open the SharedAuth_Internal Safe. 3. From the File menu, select New >> File >> PrivateArk Protected Object. 4. Create the new password object with the following details: |
|
ERROR LCDHandler: (RetrieveEndpointPassword) Received web error: The remote server returned an error: (401) Unauthorized. ERROR LCDHandler: (RetrieveEndpointPassword) Extra information: Protocol error, Response body: {"ErrorCode":"CAWS00001E","ErrorMessage":"PASWS152E You are not authorized to perform this action."} | EPMCertificateValidationSubject property in PVWA is set to FQDN but certificate is not valid. |
1. Log on to the PVWA with a user that belongs to the Vault Admins group. 4. Save the change. |
|
ERROR LCDHandler: (RetrieveEndpointPassword) Received web error: The remote server returned an error: (503) Server Unavailable. ERROR LCDHandler: (RetrieveEndpointPassword) Extra information: Protocol error, Response body: The service is unavailable. ERROR ResponseParser (Parse): Failed to parse JSON. Error: Unexpected character encountered while parsing value: T. Path '', line 0, position 0. | PVWA Server is not reachable or service is down. | Check if the PVWA Server is running. If it is running, ensure that the endpoint is able to reach the PVWA URL too. |
|
ERROR LCDHandler: (RetrieveEndpointPassword) Received web error: Remote server returned an error: (405) Forbidden method. ERROR LCDHandler: (RetrieveEndpointPassword) Extra information: Protocol error, Response body: {"Message":"The requested resource does not support http method 'GET'."} | EPM Agent is unable to send POST API calls to PVWA. |
Ensure that the following prerequisites are met for LCD to function:
|
| ERROR LCDHandler: (RetrieveEndpointPassword) Extra information: Protocol error, Response body: {"Details":[{"ErrorCode":"PASWS168E","ErrorMessage":"Input parameter for [inputParams] value is invalid","ParameterName":"inputParams"}],"ErrorCode":"PASWS167E","ErrorMessage":"There are some invalid parameters"} | Targeted admin username contains non-ASCII encoding characters. | Change the targeted admin username to contain ASCII encoding characters instead in both PVWA account and Windows users and groups. |
|
ERROR LCDHandler: (RetrieveEndpointPassword) Received web error. Error: The remote name could not be resolved: 'XXX' ERROR LCDListener: (Attach) Communication error. probably cannot connect to the internet. Error: The remote name could not be resolved: 'XXX' | The endpoint is not connected to the internet at the specific timestamp. |
Ensure that the endpoint is connected to the internet, and the credentials rotation will occur.
Ensure that the endpoint is able to reach the PVWA URL too. |
|
ERROR LCDListener: (ChangeAccountPassword) The Server service is not started. | The Windows "Server" service is not running on the endpoint. |
On the endpoint, make sure that the Windows "Server" service has not been disabled, and that it is running. |
|
ERROR LCDListener: (ChangeAccountPassword) The account is controlled by external policy and cannot be modified. | Endpoint is managed by either a GPO or local password policy that prevents local password change, LAPS is enabled or password requirements are not matching between endpoint and LCD platform. |
If LAPS is enabled, disable it as it does not work with LCD. |