PTA - Suspend and termination are not functioning with 401 Unauthorized error

PTA - Suspend and termination are not functioning with 401 Unauthorized error

162
Created On 11/10/26 11:00 AM - Last Modified 11/10/26 16:10 PM


Symptom


When PTA tried to suspend/terminate the session, it will get the token from PVWA and send REST API to PVWA to initial the request. However, in Load Balance condition, there is a possibility that the token request and API sent are handle by different PVWA. So, it means the request was redirected to different PVWA, then you will see the error "The session token is missing, invalid or expired." after '401 Unauthorized: [no body]'

Here is the example in diamond.log in PTA:

LOG | [2024-09-01|08:54:29.860|UTC] | ERROR |... - GNL0161E :: Unexpected exception during rest service to 'https://[PVWA]/PasswordVault/api/LiveSessions/[session ID]/suspend'. reason: '401 Unauthorized: [no body]'
LOG | [2024-09-01|08:54:29.868|UTC] | ERROR |... - GNL0162E :: EPV 'mitigationAction' action failed. failure message: '401 Unauthorized: [no body]'
LOG | [2024-09-30|08:54:30.221|UTC] | ERROR |... - GNL0161E :: Unexpected exception during rest service to 'https://[PVWA]/PasswordVault/api/Accounts/?search=XXXXXX'. reason: '401 Unauthorized: "{"ErrorCode":"PASWS006E","ErrorMessage":"The session token is missing, invalid or expired."}"'

 



Environment


13.0;13.2;14.0;14.2 Privilege Threat Analytics (PTA) PTA

PTA 13.0/13.2/14.0/14.2

 



Cause


The issue is related to Load balancer not sticky the API request to the same PVWA.

 



Resolution


There are two suggestions can be performed:

  1. Run "pasConfiguration.sh" and using only one node PVWA URL instead of share FQDN URL when pop up "Enter PVWA address". Or this can also be done by modified "epv_host=[PVWA FQDN]" in LOCALPARM. PTA service restarted is required by using the command "service appmgr restart".
  2. Recommend configuring the load balancer to ensure that API calls go to a single specific PVWA IIS server. 

 



Actions
  • Print
  • Copy Link

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