CPM - Accounts discovery service is not running 404 error after communicate successful with PVWA
Symptom
Scanner service running (sometimes not stay running), but log show success communication with PVWA. After connect, it disconnect with 404 error
user=CACPMScanner | Communication with the PVWA server has succeeded
user=CACPMScanner | TasksManager | MainLoop | Start
user=CACPMScanner | Level: Info, Message: WSC001I Starting method [HubCon_StateChanged]
user=CACPMScanner | Level: Info, Message: WSC008I Connection state changed from [Connecting] to [Disconnected].
user=CACPMScanner | Level: Info, Message: WSC001I Ending method [HubCon_StateChanged]
user=CACPMScanner | Level: Info, Message: WSC003I Connection closed. Attempting to reconnect
user=CACPMScanner | Level: Error, Message: WSC011E Failed to connect to socket. Error: [Microsoft.AspNet.SignalR.Client.HttpClientException: StatusCode: 404, ReasonPhrase: 'Not Found', Version: 1.1, Content: System.Net.Http.StreamContent, Headers:
{
Pragma: no-cache
X-XSS-Protection: 1; mode=block
Content-Security-Policy: frame-ancestors 'self';
Strict-Transport-Security: max-age=31536000;includeSubdomains;
X-Content-Type-Options: nosniff
Referrer-Policy: strict-origin-when-cross-origin
Access-Control-Expose-Headers: Warning
Cache-Control: no-store, must-revalidate, no-cache
Date: xxxx GMT
Server: Microsoft-IIS/10.0
Content-Length: 1245
Content-Type: text/html
}
at Microsoft.AspNet.SignalR.Client.Http.DefaultHttpClient.<>c__DisplayClass5_0.<Get>b__1(HttpResponseMessage responseMessage)
at Microsoft.AspNet.SignalR.TaskAsyncHelper.TaskRunners`2.<>c__DisplayClass3_0.<RunTask>b__0(Task`1 t)
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at CyberArk.Infra.WebSocketsClient.HubConnectionManager.<Start>d__16.MoveNext()]
Environment
12.1;12.2;12.6 Privileged Access Manager (PAM, self-hosted) Central Policy Manager (CPM)
Central Policy Manager (CPM)
Cause
API throttling
Resolution
In the PVWA web.config file:
Change:
<APIThrottling>
<section name="APIThrottling" type="System.Configuration.NameValueSectionHandler" />
</APIThrottling>
To:
<APIThrottling>
</APIThrottling>
After that, restart IIS and restart scanner service