EPM Windows LCD - Analysing the error code in PASAgent logs

EPM Windows LCD - Analysing the error code in PASAgent logs

116
Created On 11/10/26 11:03 AM - Last Modified 11/10/26 15:55 PM


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


  1. Gather the Support Info logs from the endpoint machine.
    https://docs.cyberark.com/epm/latest/en/content/policies/collecting%20agent%20support%20info.htm#CollectinformationonWindowsagents
  2. Decrypt the Support Info logs if required.
    https://docs.cyberark.com/epm/latest/en/content/installation/windows-agentcommands.htm#Decryptthesupportinfofile
  3. 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.
  4. Proceed with the following steps when encountering the relevant error entries.
    More error traces will be included in the table below.
  5. 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.txtPossible 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.
Found in EPM Console >> Policies >> Change drop down menu to Credentials rotation policies >> relevant LCD 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:
Object Name: EPM_PAS_Gateway
Password: Security key found in EPM Console >> Policies >> Change drop down menu to Credentials rotation policies >> relevant LCD policy.

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.
2. In the Administration > Configuration Options page, click "Endpoint Privilege Manager Integration".
3. Select Credential Rotation, and in the EPMCertificateValidationSubject property, change the setting to None.
OR
Update to the valid certificate.

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:

  1. .NET 4.6.2 or higher
  2. On the endpoint, make sure that the Windows "Server" service has not been disabled, and that it is running.
  3. For LCD credential rotation, the EPM must be able to make the following internal REST API calls to PVWA:
    POST https://<IIS_Server_Ip>/PasswordVault/API/EPM/NotifyEndpointPasswordChange
    POST https://<IIS_Server_Ip>/PasswordVault/API/EPM/RetrieveEndpointPassword
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.
Run the manual rotation command line if required.

 

Ensure that the endpoint is able to reach the PVWA URL too.
Edit the EPM policy and update the correct PVWA URL if the value used is incorrect.
Found in EPM Console >> Policies >> Change drop down menu to Credentials rotation policies >> relevant LCD policy.

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.
Refer to this KB for more information:
https://community.cyberark.com/s/article/FAQ-Understanding-the-Server-Service

ERROR LCDListener: (ChangeAccountPassword) The account is controlled by external policy and cannot be modified.

ERROR LCDListener: (HandleResponse) Change password failed. Error: Change password for user: XXX failed.. 

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.
Disable the relevant GPO or local password policy that prevents local password changes in endpoint.
Ensure endpoint's Windows password policy matches the LCD platform in PVWA (E.g. Password length, special characters, etc).

 



Actions
  • Print
  • Copy Link

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